代码搜索结果

找到约 231,314 项符合 C 的代码

c

#include #include #include void main(void) { int letter; int count; time_t start_time, stop_time; time(&start_time); for (count = 0; co

c

#include int string_length(char *); void main(void) { char *title= "Jamsa's 1001 C/C++ Tips"; char *section = "Tools"; printf("Length of %s is %d\n", title, string_leng

c

#include #define SUM(x, y) ((x) + (y)) void main(void) { printf("Adding 3 + 5 = %d\n", SUM(3, 5)); printf("Adding 3.4 + 3.1 = %f\n", SUM(3.4, 3.1)); printf("Adding -100 +

c

#include #define MIN(x, y) (((x) < (y)) ? (x): (y)) #define MAX(x, y) (((x) > (y)) ? (x): (y)) void main(void) { printf("Minimum of 3 and 5 is %d\n", MIN(3, 5)); printf("Max

c

#include void main () { #ifdef __cplusplus printf("Using C++\n"); #else printf("Using C\n"); #endif }

c

#include void main () { printf("File %s: Successfully reached line %d\n", __FILE__, __LINE__); // Other statements here #line 100 "FILENAME.C" printf("File

c

#include void main () { printf("Successfully reached line %d\n", __LINE__); // Other statements here printf("Successfully reached line %d\n", __LINE__); }

c

#include void main () { printf("The file %s is under Beta testing\n", __FILE__); }

c

#include #define SQUARE(x) ((x) * (x)) #define CUBE(x) ((x) * (x) * (x)) void main(void) { printf("The square of 2 is %d\n", SQUARE(2)); printf("The cube of 100 is %f\n", CU

c

#include main () { #ifdef __STDC__ printf("ANSI C compliance\n"); #else printf("Not in ANSI C mode\n"); #endif }