Tablica typu char i porównywanie wyrazów
Ostatnio zmodyfikowano 2009-09-27 22:15
manfred |
» 2009-09-27 18:40:17 Fanaela, panie, eee... malan ;P //k - tz |
|
manfred |
» 2009-09-27 22:15:33 const int BUF_SIZE = 64; char buffer[ BUF_SIZE ]; int count = 0; while( cin.getline( buffer, BUF_SIZE, ' ' ) && strcmp( buffer, "gotowe" ) && ++count );
cout << count << " words entered\n"; O to chodzi? |
|
1 « 2 » |