Adblock breaks this site

C++ Console App (Strings)

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

  1. jasonfish4

    jasonfish4 Member

    Joined:
    Jan 20, 2012
    Posts:
    30
    Referrals:
    1
    Sythe Gold:
    0
    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...
     
  2. jason41188

    jason41188 Newcomer

    Joined:
    Feb 7, 2012
    Posts:
    1
    Referrals:
    0
    Sythe Gold:
    0
    C++ Console App (Strings)

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


 
 
Adblock breaks this site