This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#define BUFFERSIZE 50 | |
// Integrated Development Environment | |
// Visual C++ | |
using namespace std; | |
// | |
bool bIsNumber(char _c); | |
bool FileProc(int* _numbers, char* _filename); | |
void SortNumbers(int* _numbers, int _length); | |
void PrintEven(int* _numbers, int _length); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <fstream> | |
#include <cstring> | |
// 緩衝區大小 | |
#define BUFFERSIZE 4096 | |
// 讀檔模式 | |
#define READ (ios_base::in) | |
#define WRITE (ios_base::out | ios_base::app) | |
#define REWRITE (ios_base::out | ios_base::trunc) | |
// Integrated Development Environment |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#define LENGTHCASE 26 | |
#define CHARLOWERCASE 'a' | |
#define CHARUPPERCASE 'A' | |
// Integrated Development Environment | |
// Visual C++ | |
using namespace std; | |
// | |
class CCase | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#define BUFFERSIZE 4096 | |
void process(char* &_pChar, char* _string); | |
int main(void) | |
{ | |
char InputBuffer[BUFFERSIZE]; | |
char* p = NULL; | |
while ( 1 ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <string> | |
#include <vector> | |
// Integrated Development Environment | |
// Visual C++ | |
using namespace std; | |
// 利用 STL vector | |
typedef vector<string> Vstr; | |
// | |
void main(int argc, char** argv) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
unsigned int TexiCounter(double distance); | |
void main(int argc, char** argv) | |
{ | |
double dis = 0.0; | |
printf("Input Texi distance: "); | |
scanf("%lf", &dis); | |
printf("Money = $%d.-\n", TexiCounter(dis));; | |
system("PAUSE"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#define BUFFERSIZE 1024 | |
// | |
void MyFile(const char* fn); | |
int main(void) | |
{ | |
MyFile("C:\\123.txt"); | |
// |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<stdio.h> | |
void ThisIsFunction(int number); | |
int main(void) | |
{ | |
int num; | |
printf("請輸入一個整數"); | |
scanf("%d",&num); | |
ThisIsFunction(num); | |
return 0; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<iostream> | |
#include<cstdlib> | |
#include<fstream> | |
#define BUFFERSIZE 1024 | |
using namespace std; | |
void main(int argc, char* argv[]) | |
{ | |
// 檔案名稱 | |
const char* fn = "123.txt"; | |
fstream f; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<iostream> | |
#include<cstdlib> | |
#include<cmath> | |
#define PI acos(-1.0) | |
#define Rad PI / 180.0 | |
using namespace std; | |
double hw1104(int n); | |
int main(int argc, char* argv[]) | |
{ | |
int uN = 0; |