Search:

Type: Posts; User: Whizza

Search: Search took 0.00 seconds.

  1. Replies
    4
    Views
    948

    Why not just download a macro? Saves time and...

    Why not just download a macro?
    Saves time and allows all the keypresses u could want.
    C++ isnt too convienient in this area!
  2. Replies
    13
    Views
    1,759

    Uhhuh in what sense???

    Uhhuh in what sense???
  3. Replies
    13
    Views
    1,759

    Generally it applies to Windows based...

    Generally it applies to Windows based applications but an alternate console.h libary is normally used in its stead for those who dont support conio (normally macs)
  4. Replies
    2
    Views
    861

    a suggestion would be to attempt the problem...

    a suggestion would be to attempt the problem first
    then we can give you some pointers
  5. Replies
    13
    Views
    1,759

    use clrscr(); for clearscreen (libary conio.h) ...

    use clrscr(); for clearscreen (libary conio.h)


    clock_t start_time;
    start_time = clock ();
    while ((clock()-start_time)<5*CLOCKS_PER_SEC) {}
    for time delay, fiddle with the 5 to change the secs...
  6. Thread: strings

    by Whizza
    Replies
    6
    Views
    998

    Or you could use plain cout

    Or you could use plain
    cout<<endl;
    OR cout<<"/n";
    The first is suggested since it also clears the stream
  7. Replies
    3
    Views
    1,745

    What he means is would check A==B and give a...

    What he means is
    would check A==B and give a '1' for true or a '0' for false and
    then test if '1'==C
  8. Replies
    7
    Views
    1,126

    int Employee::calculatePayValues() { cout

    int Employee::calculatePayValues()

    {
    cout << " empId * payRate * hoursWorked";
    return( payRate * _hoursWorked);
    //Presuming that you dont want to multiply _empId
    //which is what you have...
  9. Replies
    17
    Views
    1,943

    Great solution, I didn't go into ss because...

    Great solution, I didn't go into ss because bluntly I'm kinda ingnorant about it and it was meant to be a thought code, just the simple concept (i don't believe it!! im making excuses for my...
  10. Replies
    17
    Views
    1,943

    It would be simpler to have Class employee {...

    It would be simpler to have

    Class employee
    {
    char name[20];
    bool isboss;
    char bossname[20];
    float salary;
    float getsalary(){
    int salarytotal;
  11. Replies
    9
    Views
    1,354

    Never mind according to this link, ...

    Never mind according to this link,
    http://www.freescale.com/files/soft_dev_tools/doc/ref_manual/MSLCRM.pdf ,
    there is a conjagate function for conio.h on macs, its called console.h
    it does both...
  12. Replies
    9
    Views
    1,354

    Damn I thought there might have been a quick...

    Damn I thought there might have been a quick compisate function
  13. Replies
    9
    Views
    1,354

    I'm sorry man but that dosen't help

    I'm sorry man but that dosen't help
  14. Replies
    9
    Views
    1,354

    portable functions

    does anyone know the metroworks codewarrior equivalent for getch(); and clrscr();
    I'm doing an school assignment and the prob is that it has to compile using the school's out of date software. AND...
  15. Replies
    3
    Views
    2,725

    ok, Thx man would there be anyway to find out...

    ok, Thx man

    would there be anyway to find out its code in a program?
    like

    char a = getch();
    string thing=((oct)a);
    cout<<thing;
    and maby converting back to ascii?
  16. Replies
    3
    Views
    2,725

    Ascii code for direction keys

    Would anyone happen to know the ascii code in octal for the up, down, left and right keys?
  17. Replies
    11
    Views
    1,478

    ok thx for your help guys but I have decided to...

    ok thx for your help guys but
    I have decided to skirt around the problem
  18. Replies
    11
    Views
    1,478

    item item_list[6]= {"Helm", 50*(boss_beaten+1),...

    item item_list[6]=
    {"Helm", 50*(boss_beaten+1), 0, 25*(boss_beaten+1), -5*(boss_beaten+1),-5*(boss_beaten+1), 0,
    "Steel plate", 100*(boss_beaten+1), 0, 50*(boss_beaten+1),...
  19. Replies
    11
    Views
    1,478

    Sorry man it still gives me a "Declaration syntax...

    Sorry man it still gives me a "Declaration syntax error"
  20. Replies
    11
    Views
    1,478

    int on end of a char array

    I'm trying to add an int to the end of an char array.
    I've tried it this way and well I can't get it to work.
    Any help is apprecated!


    char boss=(boss_beaten+1);//where boss_beaten is a int...
Results 1 to 20 of 21