C++ Console App (Strings)

Discussion in 'Programming General' started by jasonfish4, Jan 20, 2012.

C++ Console App (Strings)
  1. Unread #1 - Jan 20, 2012 at 5:41 PM
  2. jasonfish4
    Joined:
    Jan 20, 2012
    Posts:
    30
    Referrals:
    1
    Sythe Gold:
    0

    jasonfish4 Member

    C++ Console App (Strings)

    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...
     
  3. Unread #2 - Feb 7, 2012 at 4:15 AM
  4. jason41188
    Joined:
    Feb 7, 2012
    Posts:
    1
    Referrals:
    0
    Sythe Gold:
    0

    jason41188 Newcomer

    C++ Console App (Strings)

    thank you very much to share this information
    Debra Fine
     
< Need a coder to make something (paying) | C program problem >

Users viewing this thread
1 guest


 
 
Adblock breaks this site