についてコンソールのようなアプリケーションの開発しますPalm OS用にこのコードをコンパイルしてみましょう。は、グラフィカルなC++開発はそれほど困難であるため私は、私はPalm OS用のアプリのようなコンソールを開発することができるかどうかを知りたい、私はC++を学んだけど、私が唯一のコンソールアプリケーションを開発するのPalm OS
// ClientFille.cpp
// Cria um arquivo sequencial.
#include <iostream>
using std::cerr;
using std::cin;
using std::cout;
using std::endl;
using std::ios;
#include <fstream> // Fluxo de arquivos
using std::ofstream; // Gera a saída do fluxo do arquivo
#include <cstdlib>
using std::exit; // Sai do protótipo de funcão
int main()
{
// Construtor ofstream abre arquivo
ofstream outClientFile("Clients.dat", ios::out);
// Fecha o programa se não conseguir criar o arquivo
if (!outClientFile) // Operador ! sobrecarregado
{
cerr << "File could not be opened" << endl;
exit(1);
} // Fim do if
cout << "Enter the account, name, and balance." << endl
<< "Enter end-of-file to end the input.\n? ";
int account;
char name[ 30 ];
double balance;
// Lê conta, nome e saldo a partir de cin, então coloca no arquivo
while (cin >> account >> name >> balance)
{
outClientFile << account << ' ' << name << ' ' << balance << endl;
cout << "? ";
} // Fim do while
return 0; // Destruitor ofstream fecha o arquivo
} // Fim de main
ありがとう!
自分のOSを開発して1分、自分の次のコンパイラ。そして今、PalmにC++アプリケーションを書く!ネイサンと決して鈍い瞬間はありません。私は認めなければなりません。 –