Thread: Im a newb help!

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Jun 2004
    Posts
    52

    Im a newb help!

    I am 15 and have been foolin around/ half ..........in with a few compilers. I am taking an actual computer programming class next year and I am really interested in it. I was wondering if any of u can help me. I have read a bunch of recommended books and I need help putting them into action.

    I can do really simple basic stuff but I dont know much else.
    If you could help me that would be great. If you have aim u can reach me at DragonSlayerTMO.

    I just need explanation.
    Thanks.

    This is a really simple example of what im trying to do tell me why its not working.
    Code:
    #include <iostream.h>					//this is just a simple
    										//explanation of what it
    int main()								//is that I am trying to do.
    {										//if any could help me that
    	int a;								//would be great!
    		cout << "testing!" << endl;		//Basically I am trying to 
    		cin >> a;						//make it so the program does
    		cout << "testing 2!" << endl;	//both functions...i think thats
    										//the right word anywaz! I cant
    		return a;						//seem to get it to work 
    };										//correctly. Again any help would
    										//be glady appreciated!
    { // this is line 13
    	int b;
    	cout << "testing b!" << endl;
    	cin >> b;
    	cout << "testing b 2!" << endl;
    
    	return 0;
    }
    
    /* Here is the error it gives me.
    On line 13,  error c2447: missing function header*/
    Last edited by Siggy; 06-27-2004 at 06:20 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Newb Question Character Counting
    By Wilder in forum C Programming
    Replies: 13
    Last Post: 06-22-2008, 11:37 PM
  2. Dogpile the newb!
    By lindy in forum A Brief History of Cprogramming.com
    Replies: 5
    Last Post: 05-23-2008, 08:17 AM
  3. Total newb directx invisable geometry question
    By -pete- in forum Game Programming
    Replies: 5
    Last Post: 08-13-2006, 01:45 PM
  4. Newb C++ Programmer
    By Philandrew in forum C++ Programming
    Replies: 8
    Last Post: 10-19-2004, 08:44 PM
  5. if your not newb you can help me
    By Klinerr1 in forum C++ Programming
    Replies: 6
    Last Post: 05-05-2002, 12:09 AM