Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~424 People Reached
Favorite Forums
Favorite Tags
c++ x 5
Member Avatar for guystangr

How do I make C++ save the names entered by the user into another file on the computer??? [CODE][COLOR=#0000ff]#include[/COLOR][COLOR=#800000]<iostream>[/COLOR] [COLOR=#0000ff]#include[/COLOR][COLOR=#800000]<cstdlib>[/COLOR] [COLOR=#0000ff]#include[/COLOR][COLOR=#800000]<iomanip>[/COLOR] [COLOR=#0000ff]#include[/COLOR][COLOR=#800000]<string>[/COLOR] [COLOR=#0000ff]#include[/COLOR][COLOR=#800000]<fstream>[/COLOR] [COLOR=#0000ff]#include[/COLOR][COLOR=#800000]<vector>[/COLOR] [COLOR=#0000ff]using [/COLOR][COLOR=#0000ff]namespace[/COLOR][COLOR=#000000] std;[/COLOR] [COLOR=#0000ff]struct[/COLOR] players { string fname; string lname; [COLOR=#0000ff]int[/COLOR] atbats; [COLOR=#0000ff]int[/COLOR] runs; [COLOR=#0000ff]int[/COLOR] hits; [COLOR=#0000ff]int[/COLOR] doubles; [COLOR=#0000ff]int[/COLOR] triples; [COLOR=#0000ff]int[/COLOR] hrs; [COLOR=#0000ff]int[/COLOR] rbi; [COLOR=#0000ff]int[/COLOR] sos; …

Member Avatar for Infarction
0
78
Member Avatar for guystangr

how can i sort this file alphabetically by first name when in the program??? #include<iostream> #include<cstdlib> #include<iomanip> #include<string> #include<fstream> #include<vector> usingnamespace std; struct players { string fname; string lname; int atbats; int runs; int hits; int doubles; int triples; int hrs; int rbi; int sos; double avg; }; int main() …

Member Avatar for guystangr
0
108
Member Avatar for guystangr

bubblesort will not work for me [CODE] [COLOR=#008000] //Laura Patrick //EGR 126-11 //March 20, 2007 //Ex 11.5 #6 [/COLOR][COLOR=#0000ff]#include[/COLOR][COLOR=#000000] [/COLOR][COLOR=#800000]<iostream> [/COLOR][COLOR=#0000ff]#include[/COLOR][COLOR=#000000] [/COLOR][COLOR=#800000]<cstdlib> [/COLOR][COLOR=#0000ff]#include[/COLOR][COLOR=#000000] [/COLOR][COLOR=#800000]<iomanip> [/COLOR][COLOR=#0000ff]#include[/COLOR][COLOR=#000000] [/COLOR][COLOR=#800000]<string> [/COLOR][COLOR=#0000ff]#include[/COLOR][COLOR=#000000] [/COLOR][COLOR=#800000]<fstream> [/COLOR][COLOR=#0000ff]#include[/COLOR][COLOR=#000000] [/COLOR][COLOR=#800000]<vector> [/COLOR][COLOR=#0000ff]using[/COLOR][COLOR=#000000] [/COLOR][COLOR=#0000ff]namespace[/COLOR][COLOR=#000000] std;[/COLOR] [COLOR=#0000ff]struct[/COLOR] players { string fname; string lname; [COLOR=#0000ff]int[/COLOR] atbats; [COLOR=#0000ff]int[/COLOR] runs; [COLOR=#0000ff]int[/COLOR] hits; [COLOR=#0000ff]int[/COLOR] doubles; [COLOR=#0000ff]int[/COLOR] triples; …

Member Avatar for iamthwee
0
144
Member Avatar for guystangr

The program is suppose to [COLOR=#000000]1. [/COLOR][COLOR=#000000]Pull 5 offensive players into a file. Pull 3 defensive players into a file.[/COLOR] [COLOR=#000000]2. [/COLOR][COLOR=#000000]Sort both files by LAST name.[/COLOR] The error says error C3861: 'bubblesort2': identifier not found. [inlinecode] [COLOR=#008000]//Laura Patrick[/COLOR] [COLOR=#008000]//EGR 126-11[/COLOR] [COLOR=#008000]//March 20, 2007[/COLOR] [COLOR=#008000]//Ex 11.5 #6[/COLOR] [COLOR=#0000ff]#include[/COLOR][COLOR=#800000]<iostream>[/COLOR] [COLOR=#0000ff]#include[/COLOR][COLOR=#800000]<cstdlib>[/COLOR] [COLOR=#0000ff]#include[/COLOR][COLOR=#800000]<iomanip>[/COLOR] …

Member Avatar for Salem
0
94