Beginners (Page 2)

Returning values from a void function
 
I am trying to return the values avgTime and avgGross from the void functions but have not been able...
[7 replies] Last: void readFile() - read the contents of the input file Your calcAvgGr... (by dhayden)
Deleting 1 copy of a shared_Ptr
 
Hi,how could I set a shared_Ptr to nullptr? Concourse has a std::shared_ptr<Text> called text. It al...
[9 replies] Last: > I think that may just be a mistake with the const. that's quite a de... (by ne555)
by roym
speed of vector filling: Matlab vs C++
 
Hello, I recently (2 months ago) started learning C++. Before that, I always worked with Matlab (2...
[10 replies] Last: ^^ The actual c++ wrapper is pretty small -- its going to be 99% libr... (by jonnin)
I want to make a program with a time to respond
 
I want to make a program where the console gives me numbers and i have to multiply they in the time ...
[1 reply] : this is tricky in console. you can time it with clock() if the time ... (by jonnin)
for,if,even,max,min
 
hey lads, Hope you can help me, I have to do my HW as below: Solve a+b-c for "n" times, follo...
[11 replies] Last: @dhayden thank you very much indeed sir! (by MaxGreen)
by yem
Derived classes using "parent's" nested class
 
Hey, I've had this problem before with linked list and never really managed to solve it. I have a ...
[2 replies] Last: Thanks! (by yem)
memory allocation different when lookup in system monitor
 
I write a c program to allocate specific size of memory and free them in Ubuntu. Defaultly, it cr...
[1 reply] : https://duckduckgo.com/?q=linux+overcommit+memory&atb=v203-1&ia=web Li... (by salem c)
Subnetting Program -- [variable] was not declared in this scope"
 
I"m writing a subnetting program, and I'm having an issue with scope and inheritance. Basically, I'v...
[6 replies] Last: Notes: IPv4 address is a 32-bit unsigned integer. One number. The dot-... (by keskiverto)
Arrays
 
How would I write an array that uses a constant measurement, increments over 50 components, but then...
[12 replies] Last: Handy Andy, thank you for keeping up with my question and working thro... (by Fayezilla)
sorting upper and lowercase names together
 
I don't understand these errors send the name to check dupe function could not convert '(std:...
[10 replies] Last: THANK YOU, im reviewing rn (by pnwadike99)
Constructor and Destructor in C++
 
Hello, Why is the destructor called 4 times? We create two objects, but we destroy it four times. t...
[2 replies] Last: Line 27, an object is default constructed in main. Line 17, a copy of... (by Furry Guy)
Problems parsing/using void functions
 
In my program, we are supposed to uses classes and void functions to create a program that gives the...
[4 replies] Last: Gotcha, sorry about that. (by greenway)
does the target of a makefile have to be a file name?
 
Hi I have a makefile which includes the following rule/recipe bin/test.exe: $(TEST_OBJ_FILE...
[2 replies] Last: tests: bin/test.exe bin/test.exe: $(TEST_OBJ_FILES) $(LIB_DIR)/$(LIB... (by dhayden)
Swapping value
 
Hi everyone. I'm new to C++. I'm seeking for some advise here. I had some problem here. Given matrix...
[1 reply] : you either have to store each generation, which is wasteful esp if the... (by jonnin)
by ZunLee
I need help with creating a function!
 
Hey guys, I have written some code that I'd like to create as a function but I'm not getting any suc...
[5 replies] Last: Hello ZunLee, Some additions I made that may help. Above your "Major... (by Handy Andy)
Can't assign a char to a string
 
I have a conversion error when I do this, what is happening? string b = "abc"; string a = ...
[4 replies] Last: Dutch , I thought the same thing. It seems so obvious that there mus... (by dhayden)
should I take out high level methods from a class?
 
Hi I have a class like this: class Something{ private: // data structures and internal...
[3 replies] Last: // high level analysis methods , some of which use internal methods... (by dhayden)
closes program after first set of instructions
 
it ends after outputting the names after first import string usersFile; //stores users fil...
[3 replies] Last: Hello pnwadike99, Although Thomas1965 makes a good question it is a... (by Handy Andy)
Change Playdirection
 
Hi, For my project I wanna change the playdirection. So for example: Im playing with 3 players (Jos...
[2 replies] Last: Thanks! (by QatarAirways)
no matching function for call to 'getline??
 
no matching function for call to 'getline(std::ifstream&, std::string )' 55 | getline(fin, ...
[3 replies] Last: thank you (by pnwadike99)
Pages: 1234... 18
  Archived months: [may2020]

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