No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
I have this class : int br=0; // br is counter how much records i hold in my vector [CODE]class racunalo{ public: void upis(string naziv, string velicinaRam, string velicinaHDD, string brzina, string proizvodac); void upisKomp(); string getNaziv(int s) const; void pregled(); void upisDat(); void pregledNaziv(); void pregledProizvodac(); void brisanjeRac(); string … |
|
Re:
Hey you guys i have a major problem here basically im a begginer c++ program student and i am trying to get use to vectors and functions so i made this program like a mad lib game or a bear hunt as you say. The program basically have vectors (duh) … |
|
Hello, i have one question for reading from file. I get data from file ulaz.txt and i want to data in there would be stored like [CODE]some text;1934 text 2;2342[/CODE] for now its stored like [CODE]sometext 1934 text2 2342[/CODE] so i want to be able to use space between text … |
|
[CODE]void slova(string datoteka){ ifstream coban; coban.open(datoteka.c_str()); string polje[200]; string linija; int brojac=0; while(!coban.eof()){ getline(coban,linija); polje[brojac]=linija; brojac++; } string rec=polje[1]; int brojac2=0; for(int i=0;i<rec.length();i++){brojac2++;} cout<<brojac2<<endl; if(rec[0]==rec[brojac2]){cout<<"same letters"<<endl;} else{cout<<"letters are not same"<<endl;} }[/CODE] This is my code, it should test if 1st and last letter in string are same, but i can't … |