![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
D
CCodes
这个作者很懒,什么都没留下…
展开
-
dyn_out.cpp
#include #include void main(void) { char * p; ostrstream outs; outs outs outs p = outs.str(); cout delete p; }原创 2007-11-08 13:43:00 · 321 阅读 · 0 评论 -
datetime.c
#include void main(void) { printf("Beta Testing: Last compiled %s %s/n", __DATE__, __TIME__); }原创 2007-11-08 13:22:00 · 330 阅读 · 0 评论 -
dyn_cast.cpp
// NOTE: You must compile this program with your compilers Generate RTTI option enabled.#include #include class Base1{ virtual void f(void) { /* A virtual function makes the class polymorphic *原创 2007-11-08 13:42:00 · 607 阅读 · 0 评论 -
dup.c
#include #include #include #include void main(void) { int handle; int duplicate_handle; char title[] = "Jamsa/s C/C++ Programmer/s Bible!"; char section[] = "Files"; if ((handle =原创 2007-11-08 13:41:00 · 461 阅读 · 0 评论 -
draw_shapes.h
#define IDM_EXIT 100#define IDM_TEST 200#define IDM_ABOUT 301LRESULT CALLBACK WndProc (HWND, UINT, WPARAM, LPARAM);LRESULT CALLBACK About (HWND, UINT, WPARAM, LPAR原创 2007-11-08 13:38:00 · 470 阅读 · 0 评论 -
draw_bitmap.h
#define IDM_EXIT 100#define IDM_TEST 200#define IDM_ABOUT 301LRESULT CALLBACK WndProc (HWND, UINT, WPARAM, LPARAM);LRESULT CALLBACK About (HWND, UINT, WPARAM, LPAR原创 2007-11-08 13:36:00 · 256 阅读 · 0 评论 -
draw_2_boxes.h
#define IDM_EXIT 100#define IDM_ABOUT 301LRESULT CALLBACK WndProc (HWND, UINT, WPARAM, LPARAM);LRESULT CALLBACK About (HWND, UINT, WPARAM, LPARAM);原创 2007-11-08 13:36:00 · 354 阅读 · 0 评论 -
dostime.c
#include #include void main(void) { struct time curr_time; gettime(&curr_time); printf("Current time %02d:%02d:%02d.%02d/n", curr_time.ti_hour, curr_time.ti_min, curr_time.ti_sec, cur原创 2007-11-08 13:34:00 · 428 阅读 · 0 评论 -
display_res_icon.cpp
#include #include "Display_Res_Icon.h" #if defined (WIN32) #define IS_WIN32 TRUE#else #define IS_WIN32 FALSE#endif#define IS_NT IS_WIN32 && (BOOL)(GetVersion() #define IS_WIN32S IS_WIN32原创 2007-11-08 13:31:00 · 313 阅读 · 0 评论 -
destruct.cpp
#include #include #include class Book { public: char title[256]; char author[64]; float price; Book(char *title, char *author, char *publisher, float price); ~Book(void); void原创 2007-11-08 13:30:00 · 395 阅读 · 0 评论 -
def_cons.cpp
#include #include class MagicNumbers { public: MagicNumbers(int a = 1, int b = 2, int c = 3) { MagicNumbers::a = a; MagicNumbers::b = b; MagicNumbers::c = c; }; v原创 2007-11-08 13:25:00 · 280 阅读 · 0 评论 -
default.cpp
#include void show_values(int one = 1, int two = 2, int three = 3) { cout } void main(void) { show_values(1, 2, 3); show_values(100,原创 2007-11-08 13:24:00 · 409 阅读 · 0 评论 -
defdlgp.h
#define IDM_EXIT 100#define IDM_TEST 200#define IDM_ABOUT 301#define IDC_CHECKBOX 101#define IDC_RADIO1 102#define IDC_RADIO2 103LRESULT CALLBA原创 2007-11-08 13:25:00 · 283 阅读 · 0 评论 -
dynclass.cpp
#include #include #include class Book { public: void show_title(void) { cout void show_book(void) { show_title(); show_publisher(); }; Book(char *title, char *author,原创 2007-11-08 13:42:00 · 472 阅读 · 0 评论 -
dtoutf.c
#include #include void main(void) { struct date curr_date; struct time curr_time; FILE *output; getdate(&curr_date); gettime(&curr_time); if ((output = fopen("DATETIME.OUT", "w")原创 2007-11-08 13:40:00 · 358 阅读 · 0 评论 -
dtin.c
#include #include #include #include void main(void) { struct date curr_date; struct time curr_time; int handle; if ((handle = open("DATETIME.OUT", O_RDONLY)) == -1) fprintf(stderr,原创 2007-11-08 13:39:00 · 582 阅读 · 0 评论 -
dosdate.c
#include #include void main(void) { struct date curr_date; getdate(&curr_date); printf("Current date: %d-%d-%d/n", curr_date.da_mon, curr_date.da_day, curr_date.da_year); }原创 2007-11-08 13:34:00 · 329 阅读 · 0 评论 -
doscopy.c
#include #include #include void main(int argc, char *argv[]){ char buffer[1024]; int input, output; // file handles unsigned bytes_read, bytes_written; // actual num原创 2007-11-08 13:33:00 · 308 阅读 · 0 评论 -
dlgbox.cpp
#include #include "DlgBox.h" #if defined (WIN32) #define IS_WIN32 TRUE#else #define IS_WIN32 FALSE#endif#define IS_NT IS_WIN32 && (BOOL)(GetVersion() #define IS_WIN32S IS_WIN32 && (BOOL)原创 2007-11-08 13:33:00 · 307 阅读 · 0 评论 -
display_res_icon.h
#define IDM_EXIT 100#define IDM_TEST 200#define IDM_ABOUT 301LRESULT CALLBACK WndProc (HWND, UINT, WPARAM, LPARAM);LRESULT CALLBACK About (HWND, UINT, WPARAM, LPAR原创 2007-11-08 13:32:00 · 296 阅读 · 0 评论 -
difftime.c
#include #include void main(void) { time_t start_time; time_t current_time; time(&start_time); printf("About to delay 5 seconds/n"); do { time(¤t_time); } while (原创 2007-11-08 13:31:00 · 322 阅读 · 0 评论 -
destmult.cpp
#include class One { public: One(void) { cout ~One(void) { cout };class Two { public: Two(void) { cout ~Two(void) { cout };class Three { public: Three(void) { cout ~Three(void) { cout原创 2007-11-08 13:29:00 · 233 阅读 · 0 评论 -
delline.c
#include void main(void) { int line; clrscr(); for (line = 1; line cprintf("This is line %d/r/n", line); cprintf("Press a key to Continue: "); getch(); gotoxy(1, 12); f原创 2007-11-08 13:27:00 · 511 阅读 · 0 评论 -
delay_5.c
#include #include void main(void) { time_t current_time; time_t start_time; printf("About to delay 5 seconds/n"); time(&start_time); // Get starting time in seconds do {原创 2007-11-08 13:26:00 · 307 阅读 · 0 评论 -
dbl_glink.cpp
#include #include #include template class dblinkob { public: DataT info; dblinkob *next; dblinkob *previous; dblinkob() { info = 0; next = NULL; previous = NULL; } dbl原创 2007-11-08 13:23:00 · 413 阅读 · 0 评论 -
dblinkl.cpp
#include #include #include class list_object { public: char info; list_object *next; list_object *previous; list_object(void) { info = 0; next = NULL; previous = NULL; }原创 2007-11-08 13:23:00 · 267 阅读 · 0 评论 -
dup2.c
#include #include void main(void) { dup2(2, 1); // stdout is handle 1 stderr is handle 2 printf("This message cannot be redirected!/n"); }原创 2007-11-08 13:41:00 · 338 阅读 · 0 评论 -
draw_hollow.h
#define IDM_EXIT 100#define IDM_TEST 200#define IDM_ABOUT 301LRESULT CALLBACK WndProc (HWND, UINT, WPARAM, LPARAM);LRESULT CALLBACK About (HWND, UINT, WPARAM, LPAR原创 2007-11-08 13:37:00 · 348 阅读 · 0 评论 -
draw_hollow.cpp
#include #include "Draw_Hollow.h" #if defined (WIN32) #define IS_WIN32 TRUE#else #define IS_WIN32 FALSE#endif#define IS_NT IS_WIN32 && (BOOL)(GetVersion() #define IS_WIN32S IS_WIN32 && (原创 2007-11-08 13:37:00 · 319 阅读 · 0 评论 -
draw_bitmap.cpp
#include #include "Draw_Bitmap.h" #if defined (WIN32) #define IS_WIN32 TRUE#else #define IS_WIN32 FALSE#endif#define IS_NT IS_WIN32 && (BOOL)(GetVersion() #define IS_WIN32S IS_WIN32 && (原创 2007-11-08 13:36:00 · 368 阅读 · 0 评论 -
draw_2_boxes.cpp
#include #include "Draw_2_Boxes.h" #if defined (WIN32) #define IS_WIN32 TRUE#else #define IS_WIN32 FALSE#endif#define IS_NT IS_WIN32 && (BOOL)(GetVersion() #define IS_WIN32S IS_WIN32 &&原创 2007-11-08 13:35:00 · 508 阅读 · 0 评论 -
do_menu.c
#include #include #include #include void main(void) { char letter; do { printf("A Display directory listing/n"); printf("B Change system time/n"); printf("C Change system date/n原创 2007-11-08 13:35:00 · 269 阅读 · 0 评论 -
dlgbox.h
#define IDM_EXIT 100#define IDM_TEST 200#define IDM_ABOUT 301#define IDC_EDIT1 101#define IDC_EDIT2 102LRESULT CALLBACK WndProc (HWND, UINT, WPARA原创 2007-11-08 13:33:00 · 378 阅读 · 0 评论 -
diskfree.c
#include #include void main(void) { struct dfree diskinfo; long disk_space; getdfree(3, &diskinfo); disk_space = (long) diskinfo.df_avail * (long) diskinfo.df_bsec * (long) diskinfo.df_s原创 2007-11-08 13:31:00 · 295 阅读 · 0 评论 -
diffname.cpp
#include #include struct Msg { char message[256]; void show_message(void); };struct UpperMsg { char message[256]; void show_message(void); };void Msg::show_message(void) { cout }voi原创 2007-11-08 13:30:00 · 353 阅读 · 0 评论 -
deq_arr.cpp
#ifdef __BCPLUSPLUS__#include #else#include #endif#include using namespace std;typedef deque CHARDEQUE;void print_contents(CHARDEQUE deque, char*);void main(void) { CHARDEQUE a; // creat原创 2007-11-08 13:28:00 · 289 阅读 · 0 评论 -
delete.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 13:26:00 · 494 阅读 · 0 评论 -
dec_int.cpp
#include void main(void) { cout for (int count = 0; count cout cout }原创 2007-11-08 13:24:00 · 276 阅读 · 0 评论 -
dta.c
#include #include #include void main(void) { char far *dta; dta = getdta(); printf("Current DTA is %lX/n", dta); if (MK_FP(_psp, 0x80) == dta) printf("DTA is at same location as c原创 2007-11-08 13:38:00 · 366 阅读 · 0 评论 -
dtbits.c
#include #include #include void main(int argc, char *argv[]){ struct Date { unsigned int day:5; unsigned int month:4; unsigned int years:7; } date; struct Time {原创 2007-11-08 13:39:00 · 452 阅读 · 0 评论