Results 1 to 6 of 6

Thread: Newbie Needs help

  1. #1
    Join Date
    Oct 2014
    Location
    Gillingham Kent
    Posts
    15

    Default Newbie Needs help

    hi guys Ive just been accepted for the course and am awaiting my material in the meantime Ive been checking out the forums and a lot of people have recommended the book http://ebooks.z0ro.com/ebooks/C_and_...rogramming.pdf by michael dawson as a great place to start.

    i am really finding it useful and am understanding a lot, the trouble is in the book he is using visual studio 2010 how ether my version is the new 2013 version and every example or code or exercise i try to copy or compile doesn't work and i get errors. the same happens for every piece of code i have tried to copy from books, or the internet.

    for example the very first program it teaches you in the book is this.

    Code:
    #include <iostream>
    
    int main()
    
    {
    
           std::cout << "Game Over!" << std::endl;
           return 0;
    
    }
    i understand the program and the code but when i try to run and compile it myself i get these errors

  2. #2

    Default

    You didn't include the errors
    [/url]

  3. #3

    Default

    try
    Code:
    #include <iostream>
    
    int main()
    
    {
    
    	std::cout << "Game Over!" << std::endl;
    	std::cin.get();
    	return 0;
    
    }

  4. #4

    Default

    Where were the errors?

  5. #5
    Join Date
    Oct 2014
    Location
    Gillingham Kent
    Posts
    15

    Default

    Sorry this was an old post I accidentally hit submit before I finished writing it. Thanks for all the replies but I figured out the problem. It was because on some express projects it automatically adds file headers for you which can cause linker and compiler errors I solved my issues by starting a completely blank new project. Anyway thanks for trying to help :-p
    You come to me with an idea, and I will bring it to life - Enigma

  6. #6

    Default

    Glad you got it sorted!

Similar Threads

  1. Newbie
    By Zaphraxe in forum Newbies Area
    Replies: 0
    Last Post: 11-20-2014, 09:02 PM
  2. Replies: 4
    Last Post: 03-29-2013, 09:45 AM
  3. Newbie
    By MrDorius in forum Newbies Area
    Replies: 1
    Last Post: 12-08-2011, 11:35 AM
  4. newbie
    By kerry in forum Newbies Area
    Replies: 4
    Last Post: 11-29-2011, 10:35 AM
  5. Not so newbie, newbie. Questions?
    By Foxtrick in forum Newbies Area
    Replies: 2
    Last Post: 02-26-2010, 10:47 PM

Posting Permissions

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