Beginners - May 2015 (Page 25)

constructors & destructors
 
well my question is theory based that why aren't constructor and destructors inherited from the base class. As far as i know they fall under the category of mem...
[8 replies] Last: Compiled it in codeblocks, thanks for the answer. Made me aware of the... (by crazya2)
by Jhax
Really Weird Character Array Output
 
Hey guys, So I'm doing a simple tictactoe class and one of the functions in the class is printBoard. Now I'm using a char array to fill up the board a...
[5 replies] Last: Look closely at this snippet: tictactoe::tictactoe() { char spaces ... (by jlb)
Overloading & inheritance
 
My question is that if i overload an operator in the base class will that overloaded operator function in the derived class aswell or not?
[1 reply] : change operator with member function, ¿do you still have the doubt? ... (by ne555)
by ynotmi
Programming with LINES and Printing
 
I am a 66 year old guy who wanted to Buy an APP only to find out they cost between $5000 to $8000 bucks! CRAZY huh (btw: I'm giving it away) anyway I under...
[9 replies] Last: KUNZ Absolutely! BUT I have been working on just getting the pr... (by ynotmi)
by Jyrz
Switch object focus in QT
 
I'm trying to make a simple project where I move two rectangles on a screen at the same time with different controls for each but I'm having trouble controlling...
[1 reply] : Subclass QGraphicsScene and detect your keypress(es) there. (by norm b)
read total number of words from a text file
 
When I write my program. I can get total number of words+1. So in order to get the correct number, I have to subtract 1 from the output. So can any one suggest ...
[3 replies] Last: Your input data has a newline (as it should) after the last word. Whi... (by keskiverto)
by csbach
string compare with the alphabets
 
I did all of it, it's just that I don't know why the string won't compare with the letters, :/ #include <iostream> #include <cctype> #include <cstring> ...
[8 replies] Last: #include <iostream> #include <cctype> #include <cstring> using namesp... (by csbach)
Reversing a word
 
so the program i am trying to create takes whatever word you enter and reverses it using the function reverse. Example: dog --> god, tooth --> htoot... here's...
[1 reply] : .at() indexing is like subscript (array ) and as such will be 1-off fr... (by Texan40)
problem finding the largest number in a vector
 
I am self teaching myself c++ as a result of that i dont have any peers to help me with any problems that i might come across. I have tried to solve this proble...
[2 replies] Last: I was trying to think of different ways and I came up with that origin... (by sevengreen7)
Can't read file
 
Hi there, So, I'm trying to read a file, but the file isn't opening... I have no ideia why, can't see any problem with what I've done... I have a class Boar...
[1 reply] : I have the file "t1" in the correct directory. Are you sure. The fil... (by Peter87)
Saving strings from a text file to a array
 
Hello. I need help associating the strings of a text file to an array. So I have this code: #include <iostream> #include <string> #include <fstream> ...
[4 replies] Last: There can be multiple records, ok I will try what you sugested. (by PedroFr13)
Magic Dates in C++
 
I have to write a program that asks the user to enter a month (in numeric form), a day, and a two-digit year. The program should then determine whether the mont...
[3 replies] Last: Do you mean you want the program to stop instead of to continue to the... (by NutHoofd)
Why I am getting "Unhandled Pointer exception"
 
I am trying to implement trie structure for dictionary implementation in c++. I am running into unhandled pointer excpetion. Strange thing is, I am not seein...
[5 replies] Last: Cool, got it, thanks @cire. (by funprogrammer)
problems with running a counting program
 
I want to write a program that reads at most 100 integers between 1 and 100 and counts the occurrence of each number.(input ends with 0) I don't know why the c...
[7 replies] Last: problem solved, thanks a lot. (by htyeung)
C++ calculator error.
 
Im currently new to C++ and im currently trying to make a basic calculator, but i seem to get some errors which i cant figure out, i would really appreciate som...
[4 replies] Last: Thanks for the help i'll try that out :) (by Stephan Buhl)
i need an example of an oop code which includes 4 concepts
 
I am suppose to write a simple code that covers top 4 concepts of OOP (Object Oriented Programming) e.g.: Abstraction. I have tried a few but they only carried...
[1 reply] : What do you think these top four concepts are? And how about showing ... (by andywestken)
I am stuck and mega confused
 
I am trying to write a program that uses a user defined function. It will prompt the user to enter a valid height and valid width. After these two numbers are v...
[2 replies] Last: for (int x = 1; x <= h; x ++) { { for (int y = 1; y <= w; ... (by closed account 48T7M4Gy)
Question about Reversing a String
 
For my homework assignment, I'm suppose to be manipulating an input, and I'm currently stuck on the 'reversing' part of it. // Reversing the String ...
[no replies]
by rathom
Global Replacement of cout
 
I have a program with lots of couts. Now I'm wanting to save the output to a text file, so I need to replace each cout with fout (my declared command for my out...
[3 replies] Last: Are you aware that you can redirect stdout/cout to file when you run t... (by Peter87)
how to run two task in async and not block the ui
 
Hi I have a small app that checks the dotnet framework, if it is not installed it will install it Now when the application starts i want to popup a gif im...
[no replies]
May 2015 Pages: 1... 2324252627... 40
  Archived months: [apr2015] [jun2015]

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