ตัวอย่างรหัสต้นฉบับสำหรับ Turbo C++ 3.0

ตัวอย่างรหัสต้นฉบับสำหรับ Turbo C++ 3.0
#include <stdio.h>
void main() {

printf("hello");
getchar();
}
Turbo C++ 3.0 
DOS> tcc  x.cpp
DOS> x
// AntiVir : DOS/Candy DOS virus 
// if this code have code: name:
#include <stdio.h> // printf, gets
#include <conio.h> // getch
void main(){
  char *code,*name,*address; 
  printf("code : "); gets(code); 
  printf("name : "); gets(name); 
  printf("address : "); gets(address); 
  printf("%s %s %s \n",code,name,address); 
  getch();
}

ไม่มีความคิดเห็น:

แสดงความคิดเห็น