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 poi...
[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 acros...
[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 alphabe...
[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 ...
[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 wet...
[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 ...
[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...
[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...
[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 tha...
[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 ...
[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 a...
[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 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 so...
[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 speci...
[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(cons...
[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 w...
[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.