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

[CODE]System.out.printf("%-10s \t %8d\n",name[i],stationA[i],getStationScore(stationA[i]),stationB[i],getStationScore(stationB[i]),stationC[i],getStationScore(stationC[i]),award[i]);[/CODE] hi all, i'm finishing up on this assignment of mine and can't figure out how to format my output correctly. the correct format should be Name Station Station Test A B A b but so far i only been able to manage to get Name Station Station …

Member Avatar for halfnode
0
109
Member Avatar for halfnode

hi all, me again, i need to create an array within a function but somehow i'm getting errors. anyone can enlighten me? [code=cplusplus] string TravelVoucher::exchange(int i) { const int tix = 3; TravelVoucher::exchItems[tix]={"Dinner for TWO at BestFood Restaurant", "Buffet for TWO at EatTillDrop", "Ticket for TWO for Singapore Flyer", "High …

Member Avatar for siddhant3s
0
145
Member Avatar for halfnode

[CODE=Cplusplus]#include "STDAFX.H" #include <iostream> #include <iomanip> #include <string> #include <fstream> #include <cstdlib> using namespace std; class Subject { private: string code; int cu; char pf; public: Subject(void); void setCode(string); void setCU(int); void setPF(char); }; class Student { private: string name; int count; int totalCU; Subject subjects[4]; public: Student(void); void setName(string); …

Member Avatar for halfnode
0
186
Member Avatar for halfnode

[CODE=Cplusplus]#include "STDAFX.H" #include <iostream> #include <iomanip> #include <string> using namespace std; class Transfer { protected: string Name; public: void transfer(); void xfer(string); }; class Exchange { protected: string exchItems[4]; public: void exchange(); string exchange(int); }; class Voucher { protected: string vnumber; string company; double amount; public: Voucher(string, string, double); void …

0
88
Member Avatar for halfnode

hi all pretty new to programming here the idea of the code is for the function to take in an string and an int and to pad the string with space on the left with the int being the number of space to put in. am i doing something wrong? …

Member Avatar for ArkM
1
174
Member Avatar for halfnode

hi all its me again, i just added a replace function but its throwing error C2661: 'std::basic_string<_Elem,_Traits,_Ax>::replace' : no overloaded function takes 2 arguments. any idea? [CODE] #include <iostream> #include <string> using namespace std; string padBlanks(string, int); void removeLetter(string&, char); int main() { string string1; int padN; string inStr; char …

Member Avatar for Nick Evan
0
115