u***i 发帖数: 489 | 1 1. Anything wrong with this code?
T *p = 0;
delete p;
2. How can you find the nodes with repetetive data in a linked list?
3. Write a prog to accept a given string in any order and flash error if any
of the character is different. For example : If abc is the input then abc,
bca, cba, cab bac are acceptable but aac or bcd are unacceptable. | g***j 发帖数: 1275 | 2 1 nothing wrong; it's absolutely safe to delete a null pointer.
2 no idea what does it mean
3 permutation?
any
,
【在 u***i 的大作中提到】 : 1. Anything wrong with this code? : T *p = 0; : delete p; : 2. How can you find the nodes with repetetive data in a linked list? : 3. Write a prog to accept a given string in any order and flash error if any : of the character is different. For example : If abc is the input then abc, : bca, cba, cab bac are acceptable but aac or bcd are unacceptable.
|
|