Loading
submit to reddit
May 25, 2013, 10:01:58 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Welcome!
 
   Forum Home   Help Search Forum Login Register  
Pages: [1]   Go Down
  Send this topic  |  Print  
Author Topic: Help Lesson 2 and 3  (Read 441 times)
C++man
Newbie
*
Posts: 1


« on: September 25, 2011, 07:06:15 PM »

Lesson 3:
#include <iostream>

int main()  {
   int iNumber;
   iNumber = 3;
   std::cout << iNumber << std::endl;
   iNumber = 10;
   std::cout << iNumber << std::endl;
   return 0;
}


Lesson 2:#include <iostream>

int main() {
    std::cout << "what is your favorite #?" << std::endl;
   int iNumber;
   std::cin >> iNumber;
   std::cout << "your favorite number is " << iNumber << std::endl;
   return 0;
}



I Appreciate whoever trys to help me
Logged
Michael Hall
Administrator
Hero Member
*****
Posts: 903



« Reply #1 on: September 25, 2011, 09:17:04 PM »

Compile and execute using (Ctrl + F5). That should do it for you.

Mike
Logged
Pages: [1]   Go Up
  Send this topic  |  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!