Why not just download a macro?
Saves time and allows all the keypresses u could want.
C++ isnt too convienient in this area!
Type: Posts; User: Whizza
Why not just download a macro?
Saves time and allows all the keypresses u could want.
C++ isnt too convienient in this area!
Uhhuh in what sense???
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)
a suggestion would be to attempt the problem first
then we can give you some pointers
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...
Or you could use plain
cout<<endl;
OR cout<<"/n";
The first is suggested since it also clears the stream
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
int Employee::calculatePayValues()
{
cout << " empId * payRate * hoursWorked";
return( payRate * _hoursWorked);
//Presuming that you dont want to multiply _empId
//which is what you have...
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...
It would be simpler to have
Class employee
{
char name[20];
bool isboss;
char bossname[20];
float salary;
float getsalary(){
int salarytotal;
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...
Damn I thought there might have been a quick compisate function
I'm sorry man but that dosen't help
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...
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?
Would anyone happen to know the ascii code in octal for the up, down, left and right keys?
ok thx for your help guys but
I have decided to skirt around the problem
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),...
Sorry man it still gives me a "Declaration syntax error"
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...