![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
N
CCodes
这个作者很懒,什么都没留下…
展开
-
nestclas.cpp
#include class Outer { public: Outer(void) { cout outer_data = 2002; }; class Inner { public: Inner(void) { cout inner_data = 1001; };原创 2007-11-08 19:18:00 · 317 阅读 · 0 评论 -
needvals.cpp
#include #include #include #include class Book { public: Book(char *title, char *author, char *publisher, float price); Book(void); void show_title(void) { cout float get_price(void原创 2007-11-08 19:17:00 · 298 阅读 · 0 评论 -
new_type.c
#include #include void main(int argc, char *argv[]) { char line[255]; // Line read from the file FILE *fp; if (fp = fopen(argv[1], "r")) { while (fgets(line, sizeof(line), fp)原创 2007-11-08 19:21:00 · 319 阅读 · 0 评论 -
no_ind.c
原创 2007-11-08 19:27:00 · 405 阅读 · 0 评论 -
no_recur.c
原创 2007-11-08 19:28:00 · 409 阅读 · 0 评论 -
ntensity.c
原创 2007-11-08 19:31:00 · 527 阅读 · 0 评论 -
num_els.c
原创 2007-11-08 19:31:00 · 408 阅读 · 0 评论 -
near_far.c
#include void main(void) { char *near_title = "Jamsa/s C/C++ Programmer/s Bible"; char far *far_title = "Jamsa/s C/C++ Programmer/s Bible"; printf("The book/s title: %Ns/n", near_titl原创 2007-11-08 19:16:00 · 250 阅读 · 0 评论 -
newchdir.c
#include #include #include #include void main(int argc, char *argv[]) { char directory[MAXPATH]; if (argc == 1) // Display the current directory { getcwd(directory, MAXPATH);原创 2007-11-08 19:19:00 · 292 阅读 · 0 评论 -
new_far.cpp
#include void main(void) { char far *pointer; do { pointer = new far char[10000]; if (pointer) cout else cout } while (pointer); }原创 2007-11-08 19:20:00 · 375 阅读 · 0 评论 -
new_hand.cpp
#include #include extern void (*_new_handler)();void no_memory(void) { cerr exit(0); }void main(void) { _new_handler = no_memory; char *ptr; do { ptr = new char[10000];原创 2007-11-08 19:21:00 · 332 阅读 · 0 评论 -
no_catch.cpp
#include void main(void) { cout try { cout cout } catch(int i) { cout cout } cout }原创 2007-11-08 19:25:00 · 349 阅读 · 0 评论 -
no_cont.c
#include void main(void) { int counter; printf("/nEven values/n"); for (counter = 1; counter { if (!(counter % 2)) // Even printf("%d ", counter); } printf("/nO原创 2007-11-08 19:26:00 · 584 阅读 · 0 评论 -
no_free.cpp
原创 2007-11-08 19:27:00 · 388 阅读 · 0 评论 -
no_stdio.c
原创 2007-11-08 19:29:00 · 432 阅读 · 0 评论 -
no_redir.c
原创 2007-11-08 19:28:00 · 505 阅读 · 0 评论 -
nostderr.c
#include void main(void) { if (freopen("STANDARD.ERR", "w", stderr)) fputs("stderr has been redirected", stderr); else printf("Error in reopen/n"); }原创 2007-11-08 19:25:00 · 374 阅读 · 0 评论 -
no_space.c
原创 2007-11-08 19:29:00 · 466 阅读 · 0 评论 -
number.c
原创 2007-11-08 19:31:00 · 480 阅读 · 0 评论 -
neat_mbr.cpp
#include enum Days { Monday, Tuesday, Wednesday, Thursday, Friday };class NeatClass { public: int *lucky_number; enum Days lucky_day;};void main(void) { NeatClass wow; int lucky = 1原创 2007-11-08 19:17:00 · 316 阅读 · 0 评论 -
newarray.cpp
#include void main(void) { char *array = new char[256]; int i; for (i = 0; i array[i] = A; for (i = 0; i cout }原创 2007-11-08 19:18:00 · 765 阅读 · 0 评论 -
new_copy.cpp
#include void main(void) { char *array = new char[256]; char *target, *destination; int i; target = new char[256]; for (i = 0; i { array[i] = A; target[i] = B; }原创 2007-11-08 19:19:00 · 372 阅读 · 0 评论 -
nice_tex.cpp
#include void main(void) { cout.precision(4); cout.width(10); cout cout.width(10); cout.fill(-); cout cout.width(10); cout cout.width(10); cout.setf(ios::left); cout }原创 2007-11-08 19:22:00 · 369 阅读 · 0 评论 -
nochange.c
#include void display_and_change(int first, int second, int third) { printf("Original function values %d %d %d/n", first, second, third); first += 100; second += 100; third += 100;原创 2007-11-08 19:22:00 · 447 阅读 · 0 评论 -
nooutput.c
#include void main(void) { // printf ("This line does not appear"); /* This is a comment printf ("This line does not appear either"); */ }原创 2007-11-08 19:23:00 · 413 阅读 · 0 评论 -
noproto.cpp
void main(void) { printf("This wont compile under C++/n"); }原创 2007-11-08 19:23:00 · 319 阅读 · 0 评论 -
noprtscr.c
#include #include #include int count = 0;void interrupt handler(void) { count++; }void main(void) { void interrupt (*original_handler)(); int old_count = 0; original_handler = _dos_g原创 2007-11-08 19:24:00 · 411 阅读 · 0 评论 -
nostatic.c
#include void main(void) { extern int tip_count; extern char *title; void show_title(void); printf("The number of tips is %d/n", tip_count); printf("The book/s title is %s/n", titl原创 2007-11-08 19:24:00 · 355 阅读 · 0 评论 -
no_print.c
原创 2007-11-08 19:27:00 · 327 阅读 · 0 评论 -
no_temp.cpp
原创 2007-11-08 19:30:00 · 426 阅读 · 0 评论