My first "real" program.......is really smal is mostly for practice.

This is a discussion on My first "real" program.......is really smal is mostly for practice. within the C++ Programming forums, part of the General Programming Boards category; Go ahead critize and maybe just maybe congratuale on the effort made....

  1. #1
    left crog... back when? incognito's Avatar
    Join Date
    Oct 2001
    Posts
    1,427

    My first "real" program.......is really smal is mostly for practice.

    Go ahead critize and maybe just maybe congratuale on the effort made.
    Attached Files Attached Files
    There are some real morons in this world please do not become one of them, do not become a victim of moronitis. PROGRAMMING IS THE FUTURE...THE FUTURE IS NOW!!!!!!!!!

    "...The only real game I thank in the world is baseball..." --Babe Ruth

    "Life is beautiful"-Don Corleone right before he died.

    "The expert on anything was once a beginner" -Baseball poster I own.


    Left cprog on 1-3-2005. Don't know when I am coming back. Thanks to those who helped me over the years.

  2. #2
    left crog... back when? incognito's Avatar
    Join Date
    Oct 2001
    Posts
    1,427
    oh yeah it only goes up to four grading periods or terms.
    There are some real morons in this world please do not become one of them, do not become a victim of moronitis. PROGRAMMING IS THE FUTURE...THE FUTURE IS NOW!!!!!!!!!

    "...The only real game I thank in the world is baseball..." --Babe Ruth

    "Life is beautiful"-Don Corleone right before he died.

    "The expert on anything was once a beginner" -Baseball poster I own.


    Left cprog on 1-3-2005. Don't know when I am coming back. Thanks to those who helped me over the years.

  3. #3
    Registered User
    Join Date
    Dec 2001
    Posts
    206

    It's nice :)

    But at the end after it prints the GPA you will need it exits because there is nothing to ask(it flashes it then exits) :/


    how did you change the color of that text?

  4. #4
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,796
    Not bad, but we can't see the source and comment on that? I promise not to burn you too badly.

    >how did you change the color of that text?
    That was done with a nonstandard Borland function called textcolor() defined in conio.h. I'm taking a wild guess, but somehow I get the feeling that I'm right.

    -Prelude
    My best code is written with the delete key.

  5. #5
    left crog... back when? incognito's Avatar
    Join Date
    Oct 2001
    Posts
    1,427
    I think it actually waits for the user to press any key to exit.......code yeah I'll post it.....without the formula my friend helped with he's freaked out about me posting it.....as soon as I can find it......I will.
    There are some real morons in this world please do not become one of them, do not become a victim of moronitis. PROGRAMMING IS THE FUTURE...THE FUTURE IS NOW!!!!!!!!!

    "...The only real game I thank in the world is baseball..." --Babe Ruth

    "Life is beautiful"-Don Corleone right before he died.

    "The expert on anything was once a beginner" -Baseball poster I own.


    Left cprog on 1-3-2005. Don't know when I am coming back. Thanks to those who helped me over the years.

  6. #6
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,796
    >without the formula my friend helped
    Formula for calculating a GPA? I've got bad news for your friend, but that formula has been around for a while now.

    -Prelude
    My best code is written with the delete key.

  7. #7
    Registered User
    Join Date
    Dec 2001
    Posts
    206
    maybe my conio.h is outdated??? i have MSDEV VC++ 4.0 and the conio.h included does not definde textcolor()

  8. #8
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,796
    >maybe my conio.h is outdated???
    You don't have it! I'm tired of saying that conio.h is nonstandard. Compilers don't have to include lame functions like textcolor and gotoxy, they don't have to clear the screen, they don't even have to include conio at all! So please stop asking how to change the color of your text, it doesn't matter what color the text is as long as the program works. No one cares whether your text is white or green or pink or flashing neon pastels, just get the program working and users will be happy. That's it, end of story. This rant brought to you by a very annoyed programmer.

    -Prelude
    My best code is written with the delete key.

  9. #9
    Registered User
    Join Date
    Dec 2001
    Posts
    206
    actually. I DO have conio.h. so WTF r u ranting about? dont ........ me off im happy listening to rants but when u say i dont have conio.h and i do ur just bein plain stupid. now tell me without ranting. what is wrong with my version of conio.h?

  10. #10
    left crog... back when? incognito's Avatar
    Join Date
    Oct 2001
    Posts
    1,427
    [EDIT] codes off, takes up too much space [/edit]
    Last edited by incognito; 03-20-2002 at 01:04 PM.
    There are some real morons in this world please do not become one of them, do not become a victim of moronitis. PROGRAMMING IS THE FUTURE...THE FUTURE IS NOW!!!!!!!!!

    "...The only real game I thank in the world is baseball..." --Babe Ruth

    "Life is beautiful"-Don Corleone right before he died.

    "The expert on anything was once a beginner" -Baseball poster I own.


    Left cprog on 1-3-2005. Don't know when I am coming back. Thanks to those who helped me over the years.

  11. #11
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,796
    >what is wrong with my version of conio.h?
    Nothing, it works fine. I wasn't saying you don't have conio, I was saying that you don't have textcolor. Here's how it is with something nonstandard: One compiler will have a function, but that function probably will not be on another compiler, the person who writes the compiler decides what nonstandard stuff to put in. Borland is full of nonstandard functions, but MSVC++ only has these:
    _cgets(char *);
    _cprintf(const char *, ...);
    _cputs(const char *);
    _cscanf(const char *, ...);
    _getch(void);
    _getche(void);

    _inp(unsigned short);
    _inpw(unsigned short);
    _inpd(unsigned short);

    _kbhit(void);

    _outp(unsigned short, int);
    _outpw(unsigned short, unsigned short);
    _outpd(unsigned short, unsigned long);

    _putch(int);
    _ungetch(int);

    /* Non-ANSI names for compatibility */

    cgets(char *);
    cprintf(const char *, ...);
    cputs(const char *);
    cscanf(const char *, ...);

    inp(unsigned short);
    inpw(unsigned short);

    getch(void);
    getche(void);
    kbhit(void);

    outp(unsigned short, int);
    outpw(unsigned short, unsigned short);

    putch(int);
    ungetch(int);

    That's it, nothing else.

    -Prelude
    My best code is written with the delete key.

  12. #12
    Registered User
    Join Date
    Dec 2001
    Posts
    206

    thank you

    thanks. do you have the textcolor() code or know where to get it? so i could include it into my conio.h of course! also liek the backdrop for text and clear screen and other goodies wold be nice too ^_^ ty :P

  13. #13
    left crog... back when? incognito's Avatar
    Join Date
    Oct 2001
    Posts
    1,427
    This might have been made shorter with Function pointers but I am just starting so that was a litte hard.
    There are some real morons in this world please do not become one of them, do not become a victim of moronitis. PROGRAMMING IS THE FUTURE...THE FUTURE IS NOW!!!!!!!!!

    "...The only real game I thank in the world is baseball..." --Babe Ruth

    "Life is beautiful"-Don Corleone right before he died.

    "The expert on anything was once a beginner" -Baseball poster I own.


    Left cprog on 1-3-2005. Don't know when I am coming back. Thanks to those who helped me over the years.

  14. #14
    left crog... back when? incognito's Avatar
    Join Date
    Oct 2001
    Posts
    1,427
    just download DevC++ it should have it.....that's what I used to compile it.
    There are some real morons in this world please do not become one of them, do not become a victim of moronitis. PROGRAMMING IS THE FUTURE...THE FUTURE IS NOW!!!!!!!!!

    "...The only real game I thank in the world is baseball..." --Babe Ruth

    "Life is beautiful"-Don Corleone right before he died.

    "The expert on anything was once a beginner" -Baseball poster I own.


    Left cprog on 1-3-2005. Don't know when I am coming back. Thanks to those who helped me over the years.

  15. #15
    Registered User
    Join Date
    Dec 2001
    Posts
    206
    could ya do me a favor plz? go into ur conio.h and place the code here? thx ^_^

Page 1 of 3 123 LastLast
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 4
    Last Post: 02-21-2008, 10:39 AM
  2. Using variables in system()
    By Afro in forum C Programming
    Replies: 8
    Last Post: 07-03-2007, 01:27 PM
  3. BOOKKEEPING PROGRAM, need help!
    By yabud in forum C Programming
    Replies: 3
    Last Post: 11-16-2006, 11:17 PM
  4. My program, anyhelp
    By @licomb in forum C Programming
    Replies: 14
    Last Post: 08-14-2001, 11:04 PM

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