General C++ Programming (Page 3)

how do i convert the min_max function to the method of the IntArray class?
how do i convert the min_max function to the method of the IntArray class? class IntArray {private...
[8 replies] Last: That's not how to call a class member function. Which is very strange... (by Repeater)
Need help for code
My output is not showing the correct final scores. double calculateScore(Performer *p, int n){ ...
[3 replies] Last: Garbage in, garbage out. Are you sure that the scores for John Lee are... (by dhayden)
using '?' conditional with for loop
see these line: for (unsigned int index=blnFunction? 2 : 1 , varcount=1; index< blnFunction? ... i...
[7 replies] Last: true.... thanks (by Cambalinho)
how can i overloading the string operator outside a class\enum? (1,2)
see these enum: enum TokenType { ID=0, KeyWord=1, Operator=2, ...
[21 replies] Last: thank you so much for correct me... thank you (by Cambalinho)
by LHHH25
Need Help
I need some help/advice on how to properly execute this program: Input/Output 1- Create an i...
[4 replies] Last: Please DON'T post multiple threads for the same question. (by MikeyBoy)
Reading Input Files
I am currently working on a homework assignment where I have to create a program that will read the ...
[1 reply] : Something like this: numOcc = 0; floorNum = 1; numRooms = 0; floorO... (by JLBorges)
file storage
can someone confirm I did my assignment correctly and if need be let me know what i can improve on ...
[3 replies] Last: thanks so much now i realize that I essentially was writing and re wri... (by HunterIsgonnawin)
What am I doing wrong with this inheritance
#include <iostream> using namespace std; class Teacher { public: Teacher() { cout << "Hey...
[4 replies] Last: You shouldn't duplicate mainSub and name in the derived classes. #i... (by dutch)
Is this a function?
bool isValidPassword(string pass) { return pass.length()>=8; }
[4 replies] Last: Sure, why do you ask? #include <iostream> #include <string> using na... (by lastchance)
CURL giving me an error( SSH error ?)
ey guys I'm playing around with CURL,trying to download an image from a url but I am getting an err...
[3 replies] Last: Right, the certificate is needed for actually making a secure HTTPS co... (by Ganado)
Errors by access on extern declared vector
Dear Community, I have a Problem to get access to a extern Variable. This is my Situation: I'm ...
[6 replies] Last: Oh dear, I'm too rubbisch. The difficult things are all clear to this ... (by Mungo1981)
Stuck on User-Defined Functions
Hello! I am stuck on how to write a code. I have search my textbooks, googled, stared at it, all I u...
[8 replies] Last: @whitenite1 Thanks! That makes sense! @ everyone else: Well for some... (by JayCindy)
Modify a text file's name
How can I add some words when opening a new text file with the name based on the old text file? F...
[2 replies] Last: This is what std::filesystem is for, but you could just use standard s... (by Duthomhas)
by helios
creating an operating system (1,2)
[20 replies] Last: [quote=helios]It's a shame nobody ever asks how to program a manned sp... (by Furry Guy)
Need help for homework!!
I'm trying to read the name and the scores from an input file. This is my code: struct Performer ...
[1 reply] : duplicate post: (by Furry Guy)
Need help for code. I'm stuck
I couldn't read the file from a text completely. Can someone help me out? My code is like this: ...
[6 replies] Last: duplicate post: (by Furry Guy)
Overload stream operator.
Having trouble figuring out how to overload the stream operator for this case in my assignment. What...
[3 replies] Last: In "Rectangle.cpp", not "Rectangle.h": std::ostream& operator <<(std... (by Furry Guy)
by PacR
Need help with program.
Hello this is a program that finds player id's inside npc_heroes.txt file and prints them out. Im ha...
[3 replies] Last: Thank you dhayden for your answer line 36 fix worked!!! (by PacR)
Dynamically creating an array of Ints
Im supposed to write code that will dynamically create an array of ints. The size of the array shoul...
[5 replies] Last: @Aneiron, Since C++11 array is the name of a new STL container, std:... (by Furry Guy)
Print out size of array
I need to write a statement that will print out the size of the array. I have it to where it will pr...
[3 replies] Last: #include <iostream> int main() { double myArray {}; int num... (by dutch)
Pages: 12345... 13
  Archived months: [sep2019]

Cannot post in this page. To post a new message, go to the first page.