Ok, here is.
in the data.txt i have
A1 false Wella Trina
A2 false George Ali
A3 false Comina Riviera
My code is
Type: Posts; User: fukki
Ok, here is.
in the data.txt i have
A1 false Wella Trina
A2 false George Ali
A3 false Comina Riviera
My code is
I don`t have.
I tried getline(inFile, student[0].studentName);
but is wrong
Hello !
I have array of struct and i want
1] when i run the program to load the data from it.
2] when i make changes to be saved in the text file the same time or when i quit the program
I...
Hello !
I have array of struct and i want
1] when i run the program to load the data from it.
2] when i make changes to be saved in the text file the same time or when i quit the program
I...
I have read many topics regarding sort but i wasn`t able to sort them. I am new in C++. What changes i must do to sort the names alphabetically ?
#include "stdafx.h"
#include <iostream>...
Hello,
In some functions of my program this code doesn`t work normally
string w1;
string w2;
cout<<"1st msg: Enter 2 words: ";
getline(cin,w1);
It works with global variable, but i wanted to make it work with passigf the arguements..
I fix it and work with arguements now.
Just have to change
countModified(car);
and
void...
Thats my changed sourcecode
#include "stdafx.h"
#include <iostream>
#include <string>
using namespace std;
int i=0;
int total=0;
Thanks for you time darren78.
I tried to pass the parameters but again i got many more errors.
Those some parts of my program. I write the problem at the buttom
void main()
{
string option;
warehouse car[2];
car[0].inputCar("lamborgini",true);
car[0].showCar();