- 博客(7)
- 收藏
- 关注
原创 Print the macro number
#define NUMBER 10if you want to print the number 10 on the screen, the code is: printf(“%d“,NUMBER); - END -
2004-08-23 22:59:00 616
原创 No return value when using recrusion
The following code will pass the complie, but with wring message in Borland C++Builder 6.0: [C++ Wring] EX14PG197.c(99): W8070 Function should return a valueWhat shall I do to remove the message?
2004-08-23 22:32:00 907 1
原创 Shall I keep the previous version?
If I have found something wrong with my code, I try to modify it. After doing that, shall I keep the previous for refrence? If the answer is true, how could I do it properly? (e.g. record the mod
2004-08-23 08:19:00 593
原创 The last Node of Link List
The Last node should pointer to itself, as following: Node *z = new Node; z->Next = z;That could display the records N rather than N+1.The display condition should be written as:
2004-08-20 11:03:00 623
原创 Something about float divide
The experession fVolume = CalculateCylinderVolume(fRadius,fHeight) / 3;will be all right, while: fVolume = (1/3) * CalculateCylinderVolume(fRadius,fHeight) ;will be wrong, the result is 0.00-E
2004-08-19 21:10:00 618
原创 The Program Extention
Problem Description: A manufactured item can have one of the solid shapes cone, cylinder or rectangle and can be made from one of a number of materials,
2004-08-18 22:06:00 566
原创 Grid Table Style Print
If you want print a report as following:Staff no. Hours Worked Pay rate Gross paydddd dd dd ddThe code is:printf("/nStaff no. Hours Worked Pay rate Gross pay"
2004-08-10 21:33:00 548
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人