L
CCodes
这个作者很懒,什么都没留下…
展开
-
ldexp.c
原创 2007-11-08 18:39:00 · 313 阅读 · 0 评论 -
list_dir.cpp
#include #include "List_Dir.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 && (BOO原创 2007-11-08 18:43:00 · 361 阅读 · 0 评论 -
loadstrg.h
#define IDM_EXIT 100#define IDM_TEST 200#define IDM_ABOUT 301#define IDS_STRINGBASE 100LRESULT CALLBACK WndProc (HWND, UINT, WPARAM, LPARAM);LRESULT CALLBACK Ab原创 2007-11-08 18:45:00 · 360 阅读 · 0 评论 -
localtim.c
#include #include void main(void) { struct tm *current_date; time_t seconds; time(&seconds); current_date = localtime(&seconds); printf("Current date: %d-%d-%d/n", current_date->原创 2007-11-08 18:47:00 · 408 阅读 · 0 评论 -
longout.c
#include void main(void) { long int one_million = 1000000; printf ("One million is %ld/n", one_million); printf ("One million is %d/n", one_million); }原创 2007-11-08 18:50:00 · 400 阅读 · 0 评论 -
loopfact.c
#include int factorial(int value) { int result = 1; int counter; for (counter = 2; counter result *= counter; return(result); }void main(void) { int i; for (i = 1; i原创 2007-11-08 18:51:00 · 302 阅读 · 0 评论 -
lower.c
#include #include // Contains the tolower prototypevoid main(void) { int letter; for (letter = getchar(); ! feof(stdin); letter = getchar()) putchar(tolower(letter)); }原创 2007-11-08 18:52:00 · 394 阅读 · 0 评论 -
leftjust.c
原创 2007-11-08 18:39:00 · 332 阅读 · 0 评论 -
lfind.c
#include #include int compare_int(int *a, int *b) { return(*a - *b); }int compare_float(float *a, float *b) { return((*a == *b) ? 0: 1); }void main(void) { int int_values[] = {1, 3, 2, 4原创 2007-11-08 18:40:00 · 522 阅读 · 0 评论 -
list_dir.h
#define IDM_EXIT 100#define IDM_TEST 200#define IDM_ABOUT 301#define IDC_DIRECTORY 101#define IDC_LIST 102LRESULT CALLBACK WndProc (HWND, UINT, WPARAM, LPARAM)原创 2007-11-08 18:44:00 · 426 阅读 · 0 评论 -
locking.c
#include #include #include #include #include void main(void) { int handle; if ((handle = sopen("//AUTOEXEC.BAT", O_RDONLY, SH_DENYNO)) == -1) printf("Error opening AUTOEXEC.BAT/n"); el原创 2007-11-08 18:48:00 · 449 阅读 · 0 评论 -
list_are.cpp
#ifdef __BCPLUSPLUS__#include #else#include #endif#include using namespace std;typedef list LISTINT;void main(void){ LISTINT listOne; LISTINT listAnother; LISTINT::iterator i; //原创 2007-11-08 18:43:00 · 475 阅读 · 0 评论 -
lcl_val.c
原创 2007-11-08 18:38:00 · 593 阅读 · 0 评论 -
log_10.c
#include #include void main(void) { printf("Log10 of 100 is %f/n", log10(100.0)); printf("Log10 of 10000 is %f/n", log10(10000.0)); }原创 2007-11-08 18:49:00 · 411 阅读 · 0 评论 -
library.cpp
#include #include #include class Book { public: void show_title(void) { cout void show_book(void) { show_title(); show_publisher(); }; void assign_members(char *, char *, char *, float原创 2007-11-08 18:40:00 · 464 阅读 · 0 评论 -
linecnt.c
#include void main(void) { char line[256]; // Line of redirected input long line_count = 0; while (fgets(line, sizeof(line), stdin)) line_count++; printf("The number of redirec原创 2007-11-08 18:42:00 · 344 阅读 · 0 评论 -
longjmp.c
#include #include #include jmp_buf location; // Global variablevoid function(void) { printf("About to longjmp/n"); longjmp(location, 1); // Return 1 }void main(void) { if (setjmp原创 2007-11-08 18:50:00 · 311 阅读 · 0 评论 -
lsearch.c
#include #include int compare_int(int *a, int *b) { return(*a - *b); }void main(void) { int int_values[10] = {1, 3, 2, 4, 5}; int *int_ptr, int_value = 1500, elements = 5, i; printf("原创 2007-11-08 18:53:00 · 510 阅读 · 0 评论 -
linecnst.c
#include void main(void) { printf("Successfully reached line %d/n", __LINE__); // Other statements here printf("Successfully reached line %d/n", __LINE__); }原创 2007-11-08 18:41:00 · 227 阅读 · 0 评论 -
list1.cpp
#ifdef __BCPLUSPLUS__#include #else#include #endif#include #include using namespace std;typedef list LISTSTR;// Try each of the four constructorsvoid main(void) { LISTSTR::iterator i; LISTST原创 2007-11-08 18:42:00 · 391 阅读 · 0 评论 -
loadstrg.cpp
#include #include "LoadStrg.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 && (BOO原创 2007-11-08 18:45:00 · 324 阅读 · 0 评论 -
localerr.c
#include void local_values(void) { int a = 1, b = 2, c = 3; printf("a contains %d b contains %d c contains %d/n", a, b, c); }void main(void) { printf("a contains %d b contains %d c conta原创 2007-11-08 18:46:00 · 383 阅读 · 0 评论 -
local_cl.cpp
#include void f(void);void main(void){ f();}void f(void){ class mylocalclass { int i; public: void put_i(int n) {i=n;} int get_i() {return i;} } ob; ob.put_i(10); cout }原创 2007-11-08 18:47:00 · 405 阅读 · 0 评论 -
lockauto.c
#include #include #include #include void main(void) { int handle; if ((handle = sopen("//AUTOEXEC.BAT", O_RDONLY, SH_DENYNO)) == -1) printf("Error opening AUTOEXEC.BAT/n"); else {原创 2007-11-08 18:48:00 · 443 阅读 · 0 评论 -
lowcopy.c
#include #include #include #include #include void main(int argc, char *argv[]) { int source, target; // file handles char buffer[1024]; // I/O buffer int bytes_read;原创 2007-11-08 18:51:00 · 317 阅读 · 0 评论