![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
A
CCodes
这个作者很懒,什么都没留下…
展开
-
asm_demo.cpp
#include void main(void) { cout asm { MOV AX,0x0200 MOV DL,7 INT 0x21 }; cout }原创 2007-11-08 00:17:00 · 412 阅读 · 0 评论 -
alertable_io.cpp
#include "CmnHdr.H"#include #include #include #include #include #include #include "Resource.H"//////////////////////////////////////////////////////////////////////HANDLE CreateNewCompletionPort(D原创 2007-11-08 00:10:00 · 505 阅读 · 0 评论 -
afxres.h
// This is a part of the Microsoft Foundation Classes C++ library.// Copyright (C) 1992-1995 Microsoft Corporation// All rights reserved.//// This source code is only intended as a supplement to the原创 2007-11-08 00:09:00 · 2658 阅读 · 0 评论 -
add_del.cpp
#include #include "DelMenu.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 00:08:00 · 544 阅读 · 0 评论 -
1_TO_100
#include void main(void) { int i; for (i = 1; i cout }原创 2007-11-07 23:52:00 · 355 阅读 · 0 评论 -
atexit.c
#include #include void first(void) { printf("First function registered/n"); }void second(void) { printf("Second function registered/n"); }void main(void) { atexit(first); atexit(second原创 2007-11-08 00:17:00 · 439 阅读 · 0 评论 -
arr_find.cpp
#ifdef __BCPLUSPLUS__#include #include #else#include #include #endifusing namespace std ;void main(void) { const int ARRAY_SIZE = 8; int IntArray[ARRAY_SIZE] = { 1, 2, 3, 4, 4, 5, 6, 7 };原创 2007-11-08 00:15:00 · 428 阅读 · 0 评论 -
arrparam.c
#include void show_array(int values[], int number_of_elements) { int i; printf("About to display %d values/n", number_of_elements); for (i = 0; i printf("%d/n", values[i]); }void mai原创 2007-11-08 00:15:00 · 418 阅读 · 0 评论 -
arrfunct.c
#include void show_array(int values[], int number_of_elements) { int i; for (i = 0; i printf("%d/n", values[i]); }void main(void) { int scores[5] = {70, 80, 90, 100, 90}; show_ar原创 2007-11-08 00:14:00 · 403 阅读 · 0 评论 -
allfiles.c
#include #include #include #include #include #include void show_directory(char *directory_name) { DIR *directory_pointer; struct dirent *entry; unsigned attributes; if ((directory_poi原创 2007-11-08 00:11:00 · 446 阅读 · 0 评论 -
ambig_cl.cpp
// This program contains three errors and will not compile.#include class base { public: int i; };class derived1 : public base { public: int j; };class derived2 : public base { public: i原创 2007-11-08 00:12:00 · 453 阅读 · 0 评论 -
asciinum.c
#include #include void main(void) { int int_result; float float_result; long long_result; int_result = atoi("1234"); float_result = atof("12345.678"); long_result = atol("1234567L");原创 2007-11-08 00:16:00 · 403 阅读 · 0 评论 -
arr_des.cpp
#include #include class loc { int longitude, latitude; public: loc(void) {} // Used to construct temporaries ~loc(void); loc (int lg, int lt) { longitude = lg;原创 2007-11-08 00:15:00 · 361 阅读 · 0 评论 -
add_del.h
#define IDM_EXIT 100#define IDM_ITEM1 200#define IDM_ITEM2 201#define IDM_ITEM3 202#define IDM_ABOUT 301LRESULT CALLBACK WndProc (HWND, UINT, WPARAM,原创 2007-11-08 00:08:00 · 472 阅读 · 0 评论 -
acc_decl.cpp
#include class base { int i; // private in base class public: int j, k; void seti(int x) {i = x;} int geti(void) {return i;} };class derived : private base { public:原创 2007-11-08 00:07:00 · 320 阅读 · 0 评论 -
arr_over.cpp
#include class sometype { int a[3]; public: sometype(int i, int j, int k) { a[0] = i; a[1] = j; a[2] = k; } int operator[](int i) {return a[i];} };void main(void){ s原创 2007-11-08 00:16:00 · 371 阅读 · 0 评论 -
arr_arrw.cpp
#include #include ostream &ra(ostream &stream) { stream "; return stream; }ostream &la(ostream &stream) { stream return stream; }void main(void) { char str[80]; ostrstream outs(st原创 2007-11-08 00:15:00 · 463 阅读 · 0 评论 -
arrclass.cpp
#include class Employee { public: Employee(void) { cout void show_employee(void) { cout private: char name[256]; long id; }; void main(void) { Employee workers[5]; //原创 2007-11-08 00:14:00 · 429 阅读 · 0 评论 -
arraysiz.c
#include void main(void) { int scores[100]; float salaries[100]; char string[100]; printf("Bytes used to hold int scores[100] is %d bytes/n", sizeof(scores)); printf("Bytes used原创 2007-11-08 00:13:00 · 365 阅读 · 0 评论 -
arrayasn.cpp
#include #include class Employee { public: Employee(void); void show_employee(void) { cout private: char name[256]; long id; }; Employee::Employee(void) { static int index =原创 2007-11-08 00:13:00 · 309 阅读 · 0 评论 -
arrayadd.c
#include void main(void) { int count[10]; float salaries[5]; long distances[10]; printf("Address of the array count is %x/n", count); printf("Address of the array salaries is %x/n", sa原创 2007-11-08 00:13:00 · 383 阅读 · 0 评论 -
argv_ptr.c
#include void main(int argc, char **argv) { while (*argv) printf ("%s/n", *argv++); }原创 2007-11-08 00:13:00 · 362 阅读 · 0 评论 -
arr_get.cpp
#include #include void main(void) { char str[] ="abcdefghijklmnop"; istrstream ins(str); char ch; while(!ins.eof()) { ins.get(ch); cout } }原创 2007-11-08 00:16:00 · 409 阅读 · 0 评论 -
array_io.cpp
#include #include void main(void) { char iostr[80]; strstream ios(iostr, sizeof(iostr), ios::in | ios::out); char str[80]; int a, b; ios ios >> a >> b >> str; cout }原创 2007-11-08 00:14:00 · 365 阅读 · 0 评论 -
arraytwo.c
#include void main(void) { int count[10]; float salaries[5]; long distances[10]; printf("Address of the array count is %x &count is %x/n", count, &count); printf("Address of the a原创 2007-11-08 00:14:00 · 406 阅读 · 0 评论 -
anonym.cpp
#include void main(void) { union { int my_data; float his_data; }; my_data = 3; cout his_data = 1.2345; cout }原创 2007-11-08 00:12:00 · 422 阅读 · 0 评论 -
alloca.c
#include #include void some_function(size_t size) { int i; char *pointer; char stack_fix[1]; stack_fix[0] = NULL; if ((pointer = alloca(size)) == NULL) printf("Error allocating %原创 2007-11-08 00:11:00 · 376 阅读 · 0 评论 -
alias.cpp
#include void main(void) { int a = 1001; int& a_alias = a; float price = 39.95; float& price_alias = price; cout cout a_alias++; cout }原创 2007-11-08 00:10:00 · 479 阅读 · 0 评论 -
addvalue.c
#include #include int add_values(int value, ...) { va_list argument_ptr; int result = 0; if (value != 0) { result += value; va_start(argument_ptr, value); wh原创 2007-11-08 00:08:00 · 599 阅读 · 0 评论 -
address.c
#include void main(void) { int count = 1; float salary = 40000.0; long distance = 1234567L; printf("Address of count is %x/n", &count); printf("Address of salary is %x/n", &salary);原创 2007-11-08 00:07:00 · 346 阅读 · 0 评论 -
arr_rand.cpp
#include #include void main(void) { char name[]="Jamsas C/C++ Programmers Bible"; char iostr[80]; strstream ios(iostr, sizeof(iostr), ios::in | ios::out); char ch; ios ios.seekg(7原创 2007-11-08 00:16:00 · 457 阅读 · 0 评论 -
ascii_to.c
#include #include void main (void) { int int_value; float flt_value; long long_value; int_value = atoi("12345"); flt_value = atof("33.45"); long_value =atol("12BAD"); printf("int原创 2007-11-08 00:17:00 · 334 阅读 · 0 评论 -
anon_un.cpp
#include #include void main(void) { // define anonymous union union { long l; double d; char s[4]; }; // now, your program can reference elements directly l = 100000; cout原创 2007-11-08 00:12:00 · 508 阅读 · 0 评论 -
allupper.cpp
#include #include void main(void) { char string[256]; while (cin.getline(string, sizeof(string), /n)) cout }原创 2007-11-08 00:12:00 · 404 阅读 · 0 评论 -
alltypes.c
#include #include double add_values(char *str, ...){ va_list marker; double result = 0.0; va_start(marker, str); // mark first additional argument while (*str) // e原创 2007-11-08 00:11:00 · 426 阅读 · 0 评论 -
add_new.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 00:09:00 · 534 阅读 · 0 评论 -
add_new.cpp
#include #include "Add_New.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 00:09:00 · 407 阅读 · 0 评论 -
a_thru_j.c
#include void main(void) { char string[256]; int i; for (i = 0; i string[i] = A + i; string[10] = NULL; printf ("The string contains %s/n", string); }原创 2007-11-08 00:18:00 · 366 阅读 · 0 评论 -
aux_echo.c
#include #include void main(void) { char line[255]; // Line of text read while (fgets(line, sizeof(line), stdin)) { fputs(line, stdout); strcat(line, "/r"); fputs(l原创 2007-11-08 00:18:00 · 343 阅读 · 0 评论 -
autoinfo.c
#include #include #include #include #include void main(void) { int handle; struct stat buffer; if ((handle = open("//AUTOEXEC.BAT", O_RDONLY)) == -1) printf("Error opening //AUTOEX原创 2007-11-08 00:18:00 · 485 阅读 · 0 评论