noob at programming, i have some questions

This is a discussion on noob at programming, i have some questions within the C++ Programming forums, part of the General Programming Boards category; hello, i have never done any type of programming before, but i want to learn. i tried learning c++ before ...

  1. #1
    Registered User
    Join Date
    Jun 2011
    Posts
    4

    noob at programming, i have some questions

    hello, i have never done any type of programming before, but i want to learn. i tried learning c++ before but it confused me. im trying to learn again now, i will proabably learn if i keep trying. i had some questions though. im interested mostly in game programming, and i want to know if its possible to import 3d models/ 2d sprites, and their animations, into c++. and how long does it usuallly take to make a game? i would have posted this in the game section but i need help running the hello world program (im such a noob lol). here is the code i wrote, i tried to do it from memory.

    Code:
    #include <windows.h>
    #include <iostream>
    using namespace std;
    int main () {
    
    cout << "hello world";
    waitkey ();
    END_OF_MAIN }
    my compiler tells me that the error is in the waitkey line, i tried doing several things to that line but i dont know what i am doing wrong.

    and what would be a good way to improve my logical thinking?

  2. #2
    Registered User
    Join Date
    Jun 2011
    Posts
    2

    Answer

    Hey there,
    Replace the line w

  3. #3
    Registered User
    Join Date
    Jun 2011
    Posts
    2

    Oops

    Sorry about my missclick,
    Replace the line with a error with
    cin.get();

  4. #4
    Registered User
    Join Date
    Jun 2011
    Posts
    4
    thanks tht worked , waitkey was from another language. but now "hello world" wont show.

  5. #5
    Registered User
    Join Date
    Oct 2006
    Posts
    2,266
    it should after you press enter, but you won't see it unless you actually have a console window (assuming you're running in a gui environment) open and you typed the command. cout's output stream isn't getting flushed. try the following:

    Code:
    cout << "hello world" << endl;

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. noob here with questions
    By rllove37 in forum C++ Programming
    Replies: 12
    Last Post: 03-02-2010, 02:32 PM
  2. Few more noob questions
    By SlpCtrl in forum C Programming
    Replies: 12
    Last Post: 10-14-2008, 04:32 PM
  3. 2 very noob questions
    By chasingxsuns in forum C Programming
    Replies: 20
    Last Post: 05-07-2006, 11:04 PM
  4. Noob Questions...
    By Firemagic in forum C++ Programming
    Replies: 4
    Last Post: 04-19-2006, 03:57 PM
  5. Noob-like simple Questions
    By Stan100 in forum Networking/Device Communication
    Replies: 3
    Last Post: 10-22-2003, 09:24 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21