Page 4 of 4 FirstFirst ... 234
Results 31 to 32 of 32

Thread: C++

  1. #31
    Junior Member
    Join Date
    Aug 2002
    Posts
    2
    if for windows, use
    system("cls");

    but plz include the #windows.h header filez firs

  2. #32
    Junior Member
    Join Date
    Jul 2002
    Posts
    19
    I belive if you want to use system() then you need to include stdlib.h, not windows.h.

    For strings, you can also do it this way:

    #include <iostream>
    using namespace std;

    int main()
    {
    char *username;
    cout << "enter your name: ";
    cin >> username;
    cout << endl << "hello " << username << " you are very cool";
    return 0;
    }
    If this doesn't work... Someone tell me. I haven't programmed in C++ for a while and I might have forgotten something .
    ~TOXIC-RAM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •