Beginners - December 2019 (Page 12)

by Bopaki
Using private *list to get the same output
 
I want to get exactly the same output using pointers #include <iostream> #include <string> using namespace std; int main() { string str1("Hello...
[3 replies] Last: You really haven't taken on board any of the things that many, many pe... (by MikeyBoy)
Is it polymorphism
 
I wrote program to create polymorphism using function overloading, I know we can create polymorphism using function overloading operator overloading, method ov...
[3 replies] Last: Correct me if I'm wrong and I am sure somebody will but it seems that ... (by againtry)
Why is this code giving me a segmentation fault?
 
I don't understand why the following code gives me a segfault. I thought this would make all the elements of the pointer-array point to dynamically allocated in...
[1 reply] : That's because at a range-for-loop the elements will be passed as a c... (by nuderobmonkey)
help displaying 2 same answers from array
 
Write your question here. I am a student who is new to c++ and wondering if there was a way to get my program to display more than 1 answer if they are the same...
[5 replies] Last: thank you all for your help and advice. i was able to get the desired ... (by theghost)
Implementing DFS traversal using adjacency matrix
 
Hye! The code terminates after entering values! Can anyone fix it? #include<iostream> using namespace std; void DFS(int); int G , visited , n; void ...
[1 reply] : add cout.flush() or cout<< endl at line 37. You need to clear the... (by dhayden)
What is the name of :: in c++?
 
Hello, What is the name of '::' operator in c++? Did I call it colon colon? or have a specific name? Thanks
[1 reply] : It's called the "scope resolution operator". (by dutch)
by MYGaid
PLZ HELP
 
Can someone help me with this. #include <iostream.h> #include <conio.h> #include <iomanip.h> #include <stdlib.h> #include <string.h> pembatas() {...
[2 replies] Last: Hello MYGaid, As Ch1156 has pointed out it is hard to help you when... (by Handy Andy)
Help with Parent Child class, dynamic_cast
 
I have a lab for my object oriented programming class and I am hung up at the end trying to get the correct output. I have 3 objects from the Hourly, Salary, a...
[5 replies] Last: main.cpp: /* Christopher Brookens CIS247C WK5 Lab5 ... (by Enoizat)
split char array and store in vector
 
I've searched everywhere and can't find a way to split a char array by space (" ") and store each word into a vector. For example, user inputs "House 400", s...
[4 replies] Last: I feel dirty but here is the hands-on C-string code. Try not to do st... (by jonnin)
How to get correct Control ID by using HWND? MFC C++
 
Hi all. I'm trying to get the control id of button in a dialog by using hwnd that I initially get. I had search a lots of Q&A about this topic but those suggest...
[2 replies] Last: Duplicate topic: http://www.cplusplus.com/forum/windows/265715/ (by deleted account xyzzy)
by Bopaki
Program bombs out when I try to run it
 
.I get this message: OperatorPlusOverload.exe has encountered a problem and needs to close. We are sorry for the inconvenience. Please tell Microsoft abou...
[1 reply] : http://www.cplusplus.com/forum/general/112111/ foo.cpp|166 col 1| war... (by ne555)
Removing element in a list
 
I'm trying to create a system(school project) that can add items in a list, view all of those items, then remove any one of them. For example: Enter a name:...
[12 replies] Last: Or a tree, maybe? Bashful Doc Dopey Grumpy Happy Sleepy Sneezy... (by lastchance)
question on placement of function
 
in class I am working on inheritance with classes. I have created a function to display the state of an object but I am having trouble figuring out were to plac...
[4 replies] Last: Here is the fixed code: main.cpp #include <iostream> #include <stri... (by Ch1156)
matrix class issues can't pass arrays
 
Hi!, so I am trying to complete an assignment, I am implementing a matrix class, I previously made a full program to calculate the inverse of a matrix, having t...
[2 replies] Last: fracc non_verbose_det(fracc *, int); why is this 1-d when everywhere... (by jonnin)
by ng1865
left of '.setScore' must have class/struct/union
 
Hi everyone! I have been having problems with my program where I am supposed to calculate the total essay score. I was wondering why the listed error in the ti...
[1 reply] : int main() { Essay a; char g; cout << "Enter the values reciev... (by Ch1156)
hangman game help
 
How would I get the number of dashes to be the same length as the word the user is trying to guess? Right now its a set length that I declare at the beginning. ...
[4 replies] Last: That's a better way (by againtry)
Problem with unhandled exception run-time error
 
I am having problem with this run-time error coming up: Unhandled exception at 0x7ADEE906 (ucrtbased.dll) in Project 11 FINAL RFID.exe: An invalid parameter w...
[4 replies] Last: run your program through a debugger and watch your variables you're pa... (by ne555)
source and header file use
 
i am trying to train myself to put functions, classes, etc into separate source and header files as second nature, but i want to check i am arranging things cor...
[7 replies] Last: thanks. i assume creating a library is dependant on IDE, so i would ne... (by tunplus)
Assignment Help
 
Any help with this assignment would be appreciated. Thank you! For this assignment you are to design and implement a class Time. Objects of this class a...
[2 replies] Last: A very useful technique is to copy the assignment text into a source f... (by dhayden)
While loop problem
 
the loop is not repeated as i need. this program is to print the primary number starting from the number entered by user,but it print one time only if the enter...
[10 replies] Last: Furry Guy finally i found the reason, i forgot to turn the bool var... (by semsemdiver)
December 2019 Pages: 1... 10111213
  Archived months: [nov2019] [jan2020]

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