![]() |
|
#1
|
|||
|
|||
Another problem dealing with main() and driver functionI have another program dealing with a driver function. This is the problem: To see how main() works as a driver function, write main() as part of a complete program to call the function below:
CPP / C++ / C Code:
CPP / C++ / C Code:
CPP / C++ / C Code:
Why am I getting such strange outputs? And did I write the program correct? After all, I did write main() and it's calling the function draw_line. Thanks for any feedback. I am still trying to learn functions and writing them for the "Driver" functions. Tommy |
|||
|
#2
|
|||
|
|||
|
Quote:
You want Code:
the character 3 (0x03 hex) shows up as a heart on my Windows terminal. the character '3' (0x33 hex) shows up as the digit '3'. Dave |
|
#3
|
|||
|
|||
|
Quote:
|
|
#4
|
||||
|
||||
|
As dave said...
What you did is output the value 2 which is the character ☻ 3 is ♥ 4 is ♦ etc. These are in the lower 32 bytes of the ASCII table -- the CTRL characters __________________
The 3 Laws of the Procrastination Society: 1) Never do today that which can be put off until tomorrow 2) Tomorrow never comes |
|
#5
|
|||
|
|||
|
Quote:
By George, I think you've got it! Onward and upward!!!! Dave |
Recent GIDBlog
Install Adobe Flash - Without Administrator Rights by LocalTech
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The