No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
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 tried to put data in txt … |
|
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 tried to put data in txt … |
|
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 ? [code]#include "stdafx.h" #include <iostream> #include <string> using namespace std; class classroom { public: string studentName; void classroom::createStudent(string); }; void classroom::createStudent(string … |
|
Hello! I want to pass array of struct to a function. After from that function to pass it to another function. I made some efforts but without result. Those are some parts of my code i create the structure to my main function [code]airplane ticket[numberOfTickets];[/code] from main function i pass … |
|
Hello, In some functions of my program this code doesn`t work normally [code] string w1; string w2; cout<<"1st msg: Enter 2 words: "; getline(cin,w1); cout<<endl; cout<<"2nd msg: Enter 2 words: "; getline(cin,w2); cout<<endl; cout<<endl<<"w1: "<<w1<<endl; cout<<"w2: "<<w2<<endl<<endl;[/code] But when i run it is some functions(except main and some others) of … |
|
Those some parts of my program. I write the problem at the buttom [CODE]void main() { string option; warehouse car[2]; car[0].inputCar("lamborgini",true); car[0].showCar(); car[1].inputCar("ferrari",false); car[1].showCar(); //display the choices of the user cout<<"a) Show number of modified"<<endl; cout<<"b) Show list of modified"<<endl; cin>> option; switch (option[0]) { case 'a': countModified(); break; case … |