by ebz
How do I free memory a vector has used up?
|
I'm not sure how to free memory a vector used up. For example I have a vector like this: std::... |
Oct 14, 2020 at 9:09pm
[10 replies] Last: Thanks you all for your great replies. It really helped a lot! (by ebz)
|
by soulworld05
correction?
|
I wrote this for a brief clarification for myself, are those define correction? data // D... |
Oct 14, 2020 at 6:21pm
[2 replies] Last: Wow, I definitely didn't read that tutorial carefully. Thank you (by soulworld05)
|
by jax16
Wanting to print all inputs
|
Howdy, I am wanting to print all these choices. I set them to 4, and at the end of the 4 choices, I ... |
Oct 14, 2020 at 5:08pm
[6 replies] Last: Is this what you want?? #include <iostream> #include <limits> int ... (by seeplus)
|
by CodeNovice01
Binary Tree complications
|
I'm having a number of issues with my program. I apologize now, if this is not the proper way of doi... |
Oct 14, 2020 at 4:28pm
[5 replies] Last: What compiler/os are you using? Now is the time to get to grips with ... (by seeplus)
|
by leander g
A certain global isn't "recognized" inside of a certain function
|
Time-appropriate greetings! I have ran into a weird issue: A global variable isn't "recognized" ... |
Oct 14, 2020 at 2:47pm
[4 replies] Last: I know, I just copy/pasted the parts of that fuction here that had tha... (by leander g)
|
by leander g
srand always outputs the same number
|
Time-appropriate greetings! I am curently a bit stuck with trying to get a function to generate r... |
Oct 14, 2020 at 2:09pm
[12 replies] Last: Using rand/srand is noob easy, <random> and <chrono> can be a bit hard... (by deleted account xyzzy)
|
by NowIC
Biggest value of variable is always 0?
|
I am re-/learning and want to get better in C and wrote a short program which purpose is to give the... |
Oct 14, 2020 at 12:30pm
[5 replies] Last: Thanks all. Now I understand. Little thing with big impact. Didn't kno... (by NowIC)
|
Beginner here wondering where to start with this assignment. |
Wondering where to start on this C++ homework assignment involving friend functions and overloading ... |
Oct 14, 2020 at 12:23pm
[2 replies] Last: Hello ethanbonneraustin, You should start with following your instruc... (by Handy Andy)
|
by Shruthi LS
Returning vectors of vector
|
Hi all, std::vector<float> TEST() { std::vector<float> ws; std::vector<float> ... |
Oct 14, 2020 at 11:38am
[2 replies] Last: You can return the two vectors as a pair then extract when the functio... (by seeplus)
|
by Shruthi LS
Set Precision
|
Hi all, How to set the precision to 2 digits for floating point numbers in cpp? for ex: float x ... |
Oct 14, 2020 at 11:07am
[10 replies] Last: Thank you all for the reply. (by Shruthi LS)
|
by learner999
reading several files and testing the model consecutively
|
Hello everyone, I am quite new in C++ and need to learn some new features and I need your help for... |
Oct 14, 2020 at 10:57am
[15 replies] Last: I need to press any key after each Ins_.dat file has been treated T... (by seeplus)
|
by Jeff Viray
Practicing creating choices
|
Hello! I am currently practicing on creating programs that will run and put the user to a menu that ... |
Oct 14, 2020 at 3:35am
[4 replies] Last: Well done. Now for the green tick and move on. (by againtry)
|
by CodeNovice01
Simple mistake with static cast
|
I am writing a program using binary tree. I have an average to display, but each time I call it, the... |
Oct 14, 2020 at 1:33am
[11 replies] Last: [quote=ne555]we are rubber ducks ROFL! That link is definitely a kee... (by deleted account xyzzy)
|
setf() and flags() |
Hello, I wonder what the difference is with these functions. setf() - fmtflags setf(fmtflags fla... |
Oct 13, 2020 at 8:27pm
[4 replies] Last: Great, thank you for help. (by MyOnlinePersona)
|
by soulworld05
tutorials confuse
|
This step in tutorial https://www.cplusplus.com/doc/tutorial/constants/ I'm confuse since there i... |
Oct 13, 2020 at 6:08pm
[4 replies] Last: I checked Learn C++ its truly is better at tutorial. Thank for the rec... (by soulworld05)
|
by lost110
Finding time complexity of a nested loop
|
Hello everyone! The outer for loop will run "n" times, then second for loop will run n^2 times if I ... |
Oct 13, 2020 at 4:33pm
[14 replies] Last: https://stackoverflow.com/questions/18656270/runtime-analysis Throw i... (by deleted account xyzzy)
|
by derimo
Displaying average from user input
|
Im having trouble with an exercise. I am supposed to ask the user if they want to input a real numbe... |
Oct 13, 2020 at 1:16pm
[4 replies] Last: You can shorten the code by putting the loop condition in the middle o... (by dhayden)
|
by Angela1998
Have you ever used goto in commercial software?
|
I remember first using goto several years ago when I first started. I can see why it's not very pl... |
Oct 13, 2020 at 12:54pm
[12 replies] Last: it does require you to look upwards and scan for keywords though. I... (by dhayden)
|
by DonnaPin
bitmask enumeration?
|
hi, I am learning about formatted I/O, and really struggling to follow what my book is talking about... |
Oct 13, 2020 at 10:43am
[15 replies] Last: This is how it works: #include <iostream> using namespace std; int... (by againtry)
|
by valiciousx
pointers to function in a struct and functions calls (display info about student struct)
|
So I have an exercise in C++. I have a structure student with the following members: 1 int, 2 char, ... |
Oct 12, 2020 at 9:04pm
[3 replies] Last: Very nice, I was considering building an example like that, too, but d... (by Ganado)
|