I'm New...=(

This is a discussion on I'm New...=( within the C++ Programming forums, part of the General Programming Boards category; Watch out for one thing - functions, unlike labels and goto, stack on each other. So the more functions in ...

  1. #46
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,173
    Watch out for one thing - functions, unlike labels and goto, stack on each other. So the more functions in a row you call, the higher that stack grows. That stack isn't infinite, so eventually you will run out of space and your program crash.
    Everything is properly cleaned up once a function exits, so you should avoid calling functions like you've done so far.
    If you need something to repeat, then you use a loop.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.
    For information on how to enable C++11 on your compiler, look here.
    よく聞くがいい!私は天才だからね! ^_^

  2. #47
    Registered User
    Join Date
    May 2008
    Posts
    18
    wow... ok so i'm done writing stuff until i read more, cuz i understand alot of it, sorta, but i never woulda been able to use it, like the vector, or bool, or nething...

    i agree i need some loops, just when i was writing it, i UNDERSTOOD 100% how to get goto's to work, so i used those. i will start using better c++ coding rules and syntax and everything as i get more logical and knowledgeable of the language

    than you all for you input!
    Last edited by thisisurlife08; 05-13-2008 at 05:15 PM.

Page 4 of 4 FirstFirst 1234
Popular pages Recent additions subscribe to a feed

Tags for this Thread


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