General C++ Programming - March 2017 (Page 13)

solution to cyclic dependency in shared_ptr without using weak_ptr
 
Hi ppl :), I wished to know if there is any construct provided by C++ so that we can have smart pointers behave as raw pointers with an additional capability o...
[3 replies] Last: [quote=kapil2905]I'd be glad to know about the best practices for repl... (by Cubbi)
keep getting the output -nan(id) when i try to add to my balance
 
ive tried to make a bank account using inheritance and while writing the main file i am coming across an error. I am trying to pass a value to the balance and w...
[2 replies] Last: savingaccount::savingaccount(double bal, double percentage) :account(... (by dhayden)
ofstream problem
 
I made a program that ask for 20 names and grade. Then the program automatically arrange it alphabetically. Now I tried to output the result the a ".txt" file...
[1 reply] : It looks like the code is writing to the outputFile as the names and g... (by wildblue)
by xlx
"for loop"
 
how to write a for loop that displays the following set of numbers 0, 10, 20, 30, 40, 50 ....100
[1 reply] : Have you looked at the description of for loop in http://www.cplusplus... (by keskiverto)
How do events actually work?
 
As a C# programmer I know about events. Creating delegates and so forth. But how do events actually work? What I mean is the actual underlying mechanism. So whe...
[9 replies] Last: @TIM I assume you mean the second post in this thread. Well done that ... (by closed account 48T7M4Gy)
Help with conditional else if statements
 
Hello, I'm trying to run some code that takes the average test scores of students and determines wether or not they are in good academic standing and can gradua...
[2 replies] Last: Please use code tags. http://www.cplusplus.com/articles/jEywvCM9/ ... (by integralfx)
polar coordinate system
 
Define a struct called polar which represents the polar coordinates system for representing a point in the plan, it has the form (r, ), where x=rcos(theta) ...
[1 reply] : let's focus on one thread, OK? http://www.cplusplus.com/forum/beginner... (by gunnerfunner)
Graphical Menu(with submenus) operated with mouse using c++
 
I want to make a general menu using graphics and mouse programming in c++. The main menu should lead to multiple sub menus and each sub menus should return to t...
[1 reply] : For what OS? What graphic framework do you want to use? What do you ne... (by Golden Lizard)
by Kmpck
MFC unable to click button that is on a tab
 
Hi guys! I have been beating my head against a wall for two days now trying to figure out what it is that I am doing wrong with no luck so now I am turning h...
[2 replies] Last: u da man thomas. I knew it was something simple. Solved. (by Kmpck)
random character generate
 
im writing a program to help me understand on rand fucntion i dont get how to use it with a file that has a bunch of characters i think i would have to do it in...
[8 replies] Last: If C-style arrays must be used: // assumes that no line in the file i... (by JLBorges)
by Murozo
C++ Android Logo
 
https://www.youtube.com/watch?v=70_H7VE0RXE
[no replies]
mini calculator
 
Hi guys I am real new to coding and am having a lot of trouble writing a mini calculator program. I have written codes in the past but am having trouble writing...
[1 reply] : http://www.cplusplus.com/forum/beginner/210732/ (by closed account 48T7M4Gy)
bank account class heirarchy
 
im having trouble figuring out what is wrong with my code for this bank account class. I can say i am not the best at c++ and im not sure if i even got any of t...
[1 reply] : The "unresolved external symbol" error you are experiencing is most li... (by xismn)
by F95
Delete Post
 
delete..
[3 replies] Last: Hello F95, Pick which thread and code you are going to use. Andy (by Handy Andy)
Hw Help (1,2)
 
Write a program that displays the sum of all integers between 0 and 100 (inclusive). Then display the sum of all even integers between 0 and 100 (inclusive). T...
[23 replies] Last: The tongue in cheek answer made me laugh, its true. I have no desire ... (by jonnin)
Backtracking
 
im solving this puzzle using Backtracking kinda of a practice ,however, i dont seem to understand some parts of this concept so i would really use some help wit...
[3 replies] Last: Doug4, I think he can actually get by with a boolean that says which b... (by dhayden)
-
 
---
[4 replies] Last: OP: going through the operator list another one worth overloading migh... (by gunnerfunner)
2 Dim Arrays
 
Hi there, I have a 2-dim array, and I want to check how many rows have the same value for a specific column. For example: Mod1 Mod2 Mod3 ...
[2 replies] Last: Read the 2D array by column into a std::map <int, int> where the key i... (by gunnerfunner)
by arbwok
Function parameter questions
 
I have a question about function parameters. 1) void test(int a) 2) void test(const int &a) 3) void test(int *a) 4) void t...
[3 replies] Last: but 2 is not creating another object That's not entirely true. If the... (by coder777)
Help reading a file and writing out to a file
 
HI, what my program is supposed to entail is that I am supposed to read a text file, then take the words from that file and make another text file through ofstr...
[1 reply] : you can read the input file word by word but check if the word ends in... (by gunnerfunner)
March 2017 Pages: 1... 1112131415... 19
  Archived months: [feb2017] [apr2017]

This is an archived page. To post a new message, go to the current page.