Posts
 
Reputation
Joined
Last Seen
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
0% Quality Score
Upvotes Received
0
Posts with Upvotes
0
Upvoting Members
0
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
1 Commented Post
0 Endorsements
Ranked #4K
~1K People Reached
Favorite Forums
Favorite Tags
c++ x 17
Member Avatar for singhraghav

#include <cstdlib> #include <iostream> #include <fstream> #include <iomanip> using namespace std; struct Item { string name; int quantity; double unitPrice; string description; }; struct ItemTotal { string name; int quantity; double unitPrice; string description; }; void sort(Item list[], int n) { for(int i=0;i<n;i++) { for(int j=0;j<n-i-1;j++) if (list[j].description<list[j+1].description) swap(list[j],list[j+1]); } …

Member Avatar for mirfan00
-1
118
Member Avatar for Passiongamer25

I need some help with my program. The program is supposed to read ID#'s for students as well as grades from a file called "grades.txt" After the program reads the the file it displays a menu as follows: 1. Publish(publish contents of file to output file called "report.txt"); 2. Search(program …

Member Avatar for ddanbe
0
604
Member Avatar for singhraghav

i need some help here....i am taking input as name and i want to count the alphabets in the string as integers....e.g. if the in out is cab i have to output 3+1+2 = 5 i have been able to ad d up the strings..but if my input starts with …

Member Avatar for Freaky_Chris
0
104
Member Avatar for singhraghav

hey ppl! i have got an assignment which asks me to do a personality evaluation on the basis of the users name and gender....i have to take user name input in upper or lower case....but have to output it in a proper manner with only the first letter of the …

Member Avatar for unbeatable0
0
288
Member Avatar for singhraghav

i am trying to take input for name and return it with only the first letters of the name as capital....i am able to it the first name but m unable to move on to the second and last name.... please help.. [code=cplusplus] string ToUpper(string n) { for(int i=0;i<n.length();i++) { …

Member Avatar for BeyondTheEye
0
113
Member Avatar for singhraghav

Hey guys! i Have a prblm writing a program, i hope i can find help here.... in the prgram i have to take user input on gender as 'm' or 'f' or 'male' or 'female' or 'Male' or 'FmAle'.... what i mean is i the input should not be case …

Member Avatar for unbeatable0
0
99