Warning: Non-static method vBSEO_Storage::path() should not be called statically in ..../vbseo/includes/functions_vbseo_pre.php on line 387

Warning: Non-static method vBSEO_Storage::path() should not be called statically in ..../vbseo/includes/functions_vbseo_pre.php on line 387

Warning: Non-static method vBSEO_Storage::path() should not be called statically in ..../vbseo/includes/functions_vbseo_seo.php on line 337

Warning: Non-static method vBSEO_Storage::path() should not be called statically in ..../vbseo/includes/functions_vbseo_seo.php on line 339

Warning: Non-static method vBSEO_Storage::path() should not be called statically in ..../vbseo/includes/functions_vbseo_seo.php on line 341

Warning: Non-static method vBSEO_Storage::path() should not be called statically in ..../vbseo/includes/functions_vbseo_seo.php on line 343
Need Help

Results 1 to 3 of 3

Thread: Need Help

  1. #1
    Senior Member Divinity's Avatar
    Join Date
    Dec 2006
    Posts
    361

    Need Help

    Guys check this and tell me whats wrong with it :S

    Code:
    //my first program in C++
    
    #include <iostream>
    using namespace std;
    
    int main ()
    {
     cout << "Hello World!";
     return 0;
    }
    // my second program in C++
    
    #include <iostream>
    
    using namespace std;
    
    int main ()
    {
     cout << "Hello World! ";
     cout << "I&#39;m a C++ program";
     return 0;
    }

  2. #2
    Coders NightGhost's Avatar
    Join Date
    Apr 2006
    Posts
    658

    Re: Need Help

    What are the errors ?
    BTW (1) you may use the endl; after every line, so it will look like this:

    cout << "I&#39;m a C++ program" << endl;

    Which puts every thing on an own line :P

    BTW (2) Don&#39;t put 2 mains in 1 program, it will give an error like:
    "int main already has a body"

  3. #3
    Senior Member Divinity's Avatar
    Join Date
    Dec 2006
    Posts
    361

    Re: Need Help

    ok

Bookmarks

Posting Permissions

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