Do you require the user to hit 'a', then press ENTER?
Or when user press 'a', program immediately print out
ADD RECORDS
Enter [N]ame
Enter [P]hone Number
[R]eturn To Main Menu.....
Perhaps...
Type: Posts; User: lchunr
Do you require the user to hit 'a', then press ENTER?
Or when user press 'a', program immediately print out
ADD RECORDS
Enter [N]ame
Enter [P]hone Number
[R]eturn To Main Menu.....
Perhaps...
> scanf("%c", &s1); //the first scanf
Let's change to scanf("%d", &s1);
if you declare s1 as int.
Or you keep scanf, but change the declaration
e.g. int name, number;
e.g. char s1,s2;
int...
How can I write the header file, when I include header file, I can use the function of inside lib.c?
Can this lib.c compile to *.lib wihout any code added?
How to avoid double call of header file?...
You can use _set_new_handler() to handle allocation failure.
#include <iostream>
using namespace std;
int Error_Handler()
Perhaps you should avoid use of this operator, e.g.
array_index = (array_size > MAX_array) ? first_array_index : last_array_index;
because you will get difficult to read and understand the...
I've try getch() that the program wait for user's input and cannot jump to
puts("After get ESC"); if no one hit keyboard.
How can I write an program that do not wait for user input?
The program...
How can I stop the loop when user enter ESC? When user enters ESC, the program prompts user for entering Y/N, if Y, stops the loop, otherwise, the loop continue.
int i = 0;
do
{
i++;
//...
> Who generates the interrupt?
I've to reprogram the PC timer interrupt to 10ms?
I've a control project that sends to and receives signal from electronics device via AD/DA card installed in PC computer. The CPU has to do many computations after receiving the signals. And the...