int main(int argc, char *argv[]) { const char *hello; hello = get_hello(); print_hello(hello); print_hello(get_hello()); return 0; }
int main(){ print_hello(); std::cout << std::endl; std::cout << "YOLO" << std::endl; std::cout << "The factorial of 5 is " << factorial(5) << std::endl; return 0; }
int main(int argc, char *argv[]) { MPI_Init (&argc, &argv); MPI_Comm_rank (MPI_COMM_WORLD, &rank); MPI_Comm_size (MPI_COMM_WORLD, &size); fr = fopen("testfile.txt", "rt"); char line[FILE_LINE_LENGTH]; while( (fgets(line,FILE_LINE_LENGTH,fr)!=NULL) && (flag) ){ MPI_Bcast( &line, FILE_LINE_LENGTH, MPI_CHAR, 0, MPI_COMM_WORLD ); int source_pos=0, word_count=0, max_len=0, result_pos=0, iter; char tmp[LENGTH*size+1]; for(source_pos=0;source_pos<strlen(line);source_pos++){ for(max_len=1;max_len<LENGTH;max_len++){ word_count++; if (word_count % size == 0) { tmp[result_pos]='\0'; MPI_Bcast( &tmp, strlen(tmp), MPI_CHAR, 0, MPI_COMM_WORLD ); print_hello(tmp); result_pos=0; } if (source_pos+max_len>strlen(line)) break; for(iter=0;iter<max_len; iter++){ tmp[result_pos++] = line[source_pos+iter]; } tmp[result_pos++]='\t'; } } } close(fr); MPI_Finalize(); return 0; }
int main(int argc, char *argv[]){ print_question(); if(calculate = 1){ print_hello(); return EXIT_SUCCESS; } else return EXIT_FAILURE; }
int main(int argc, char *argv[]) { // Define external from a separate library // Defined in something.o from a compiled // assembly program extern print_hello(); // Call external assembly function print_hello(); }
int main(int argc, const char* argv[]) { printf("please input two number\n"); int a ,b,c; scanf("%d%d",&a,&b); print_hello(); c = compere(a,b); printf("max = %d\n",c); return 0; }
int main() { //decrypt crypt_it(print_hello, hello_sz, 0xab); print_hello(); //crypt again crypt_it(print_hello, hello_sz, 0xab); return 0; }
int main(){ print_hello(); cout << endl; cout << "The factorial of 5 is " << factorial(5) << endl; return 0; }
int main(){ print_hello(); std::cout <<"This is just sm change to test Makefile"<< std::endl; std::cout << "The factorial of 5 is " << factorial(5) << std::endl; return 0; }
int main(int argc, char **argv) { print_hello(); }
int main (void) { print_hello (); }
int main(){ print_hello(); printf("The factorial of 5 is %d\n", factorial(5)); return 0; }
void main(void) { print_hello(); print_love(); print_birthday(); }
int main(void){ int i=0; print_hello(); return 0; }
/* Основная функция */ int main() { # define ACTION(str) if (!strcmp(#str, action)) setlocale(LC_ALL, "Ru"); BookDB* db = NULL; char filename[MAX_STRING_LENGTH] = "\0"; char action[MAX_STRING_LENGTH]; print_hello(); /* Цикл обработки событий */ forever { printf("<! "); scanf("%s", action); ACTION(help) { print_help(); continue; } ACTION(exit) { if (db) { close_db(db, filename); db = NULL; filename[0] = '\0'; } break; } ACTION(close) { if (db) { close_db(db, filename); db = NULL; filename[0] = '\0'; output("База данных закрыта!\n"); } else db_not_loaded_error(); continue; } ACTION(create) { if (db) { close_db(db, filename); filename[0] = '\0'; db = NULL; } int n = 0; output("Предполагаемая размерность Базы Данных\n"); input("%d", &n); db = create_db(n); output("База данных для %i элементов создана!\n", n); continue; } ACTION(load) { if (db) { close_db(db, filename); filename[0] = '\0'; db = NULL; } do { output("Имя файла базы данных\n"); input("%s", filename); } while (strlen(filename) < 1); db = load_db(filename); if (!db) { output("Неверное имя файла!\n"); filename[0] = '\0'; } else { output(">> База данных успешно загружена!\n"); } continue; } ACTION(save) { if (db) { save_db_dialog(db, filename); output(">> База данных успешно сохранена!\n"); } else db_not_loaded_error(); continue; } ACTION(list) { if (db != 0) { list_db(db); } else db_not_loaded_error(); continue; } ACTION(find) { if (db) { find_dialog(db); } else db_not_loaded_error(); continue; } ACTION(new) { if (db) { new_dialog(db); } else db_not_loaded_error(); continue; } ACTION(delete) { if (db) { delete_dialog(db); } else db_not_loaded_error(); continue; } ACTION(size) { if (db) { output("Книг в базе данных - %d\n", db->count); } else db_not_loaded_error(); continue; } ACTION(sort) { if (db) { sort_dialog(db); } else db_not_loaded_error(); continue; } printf("!! Неизвестная команда \"%s\"\n", action); } # undef ACTION return 0; }
int main(){ print_hello(); std::cout << std::endl; std::cout << "The factorial of 10 is " << factorial(10) << std::endl; return 0; }
int main(int argc, char *argv[]) { print_devices(); print_hello(); return 0; }
int main(void) { print_hello(); return 0; }
static int niitm_init (void) { print_hello(); return 0; }