• Nie Znaleziono Wyników

main parameters

N/A
N/A
Protected

Academic year: 2021

Share "main parameters"

Copied!
1
0
0

Pełen tekst

(1)

//============================================================== // Argumenty funkcji glownej - main;

// przyklad wykorzystania argumentu jako nazwy dla pliku; //

// ver data temat autor // 100 2005/10/12 Pierwszy projekt J. Malinowski // 101 2007/11/08 Cleanup JM // 102 2019/12/07 Cleanup, dodanie opisow JM //============================================================== #pragma hdrstop #include <conio.h> #include <stdio.h> #include <iostream> using namespace std; //============================================================== #pragma argsused

int main(int argc, char* argv[]) {

// argumenty main-a: // ile stringow;

cout << "\n\nargc= " << argc << endl<<endl; // stringi, ktore sa argumentami;

for(int i=0; i<argc; i++)

cout<<"argv["<<i<<"]= "<<argv[i]<<endl<<endl; getch();

// przyklad wykorzystania stringu (tutaj 2-giego), // jako nazwy dla pliku;

if(argc>1) {

FILE *pf=fopen(argv[1],"wt");

fprintf(pf, "Nazwa pliku: %s\n\n", argv[1]); fprintf(pf, "argc= %d\n\n", argc);

for(int k=0; k<argc; k++)

fprintf(pf, "argv[%d]= %s\n\n", k, argv[k]); fclose(pf); } getch(); return 0; } //==============================================================

Cytaty

Powiązane dokumenty

The development of hydrogen technology involves research and analysis covering various technological areas, including hydrogen generation, transportation, storage and use in power

Social Media Marketing (SMM) Companies Infor Xi Resellers Marketing Automation Consulting Providers Other Infor Resellers Marketing Strategy Agencies Microsoft

Observe that the signature of this general system consists entirely of relations between its objects (this systems has exactly one level, viz. the domain of the corresponding

żenie w stykającym się z nim kolejnym ziarnie jest na tyle wysokie, że przemienia się ono w fazę regularną, a związany z tym spadek stężenia tlenku magnezu w pierwszym ziarnie

Ostrowski, jako przybrany członek Towarzystwa Przyjaciół Nauk w Warszawie, przedłożył swój przekład „G iaura“ na po­ siedzeniu grudniowem 1829 roku Wydziału

In order to substantially enlarge the above explorations, we shall be concerned here and with giving up the full characterization up to isomorphism of weakly J(n)-rings, that are,

He was a student of the Main School of Music, the part of University.. The University’s oldest building was constructed

Plan Neutrinos in the Standard Model (SM) Main goals Left-chirality neutrino scattering on a polarized electron target Conclusions.. Możliwość łamania symetrii CP w rozpraszaniu