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; You might want to look a bit more closely then Piece of cake, but you will have to make use ...

  1. #31
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,796
    You might want to look a bit more closely then
    Piece of cake, but you will have to make use of the gotoxy function that is defined in the Cprogramming FAQ.
    -Prelude
    My best code is written with the delete key.

  2. #32
    Registered User
    Join Date
    Dec 2001
    Posts
    206
    oh, sorry..looks like im 4getting sumthin.. brain maybe? hehe .. btw u wouldnt know the ascii for enter + space would yah?

  3. #33
    Registered User
    Join Date
    Dec 2001
    Posts
    206
    why is this function hella crappin up my proggy?

    when i try to run it, in the middle of the program it gives me an error about system.c

    [code]
    tinput(char* path, char color1, char color2,char color3)
    {
    HANDLE h;
    h = GetStdHandle ( STD_OUTPUT_HANDLE );
    int j = 1;
    for (int i = 0;Text[i] != '\0';i++)
    {

    switch(j)
    {
    case 1:
    SetConsoleTextAttribute (h, color1);
    j = 2;
    break;
    case 2:
    SetConsoleTextAttribute (h, color2);
    j = 0;
    break;
    default:
    SetConsoleTextAttribute (h, color3);
    j = 1;
    break;
    }
    cin>>path[i];
    }
    return *path;
    }

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

Similar Threads

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

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