• Log in or sign up for an account here: https://www.sythe.org/login

C++ Console App (Strings)

jasonfish4

Member
Joined
Jan 20, 2012
Sythe Gold
0
Messages
30
Hi, I'll show you how to make strings in c++ :p

First open up a console application

First,
you want to include all this:

#include "stdafx.h"
#include <iostream>
#include <fstream>
#include <istream>
#include <string>
using namespace System;
using namespace std;
int main ();


Now time for the big daddy strings :P

string Jstring; //creates a string
Jstring = "Jasonfish4"; //tells what the string is
cout << Jstring << endl; // prints it out in the console

now lets do this

string JAstring; //creates string
JAstring = "2345"; // tells string what to do,
cout << &JAstring << endl; // now this is a bit different just watch as you debug it ;)

this is my description on strings....
Hope you enjoy, playing around with these...
 
Runescape Gamblingrunescape gambling
Back
Top