Beginners - October 2013 (Page 31)

Class c++
 
Hello guys :) I hope you are having a great sunday!! :) I have a c++ homework for tommorrow that i have been working on all day :/ Create a class called Comp...
[1 reply] : One of the rules is don't post homework. If you have a specific questi... (by vasilenko93)
Is this a bug with GCC?
 
How can the presence of an ofstream data member of a base class prevent the casting to a subclass? If I leave the ofstream data member in Person, GCC 4.8.1 com...
[7 replies] Last: > Yes, mea culpa. std::ifstream is not no-throw-move-constructible. ... (by prestokeys)
help with i/o binary
 
hello everybody i'm trying to write/read some simple binary files in my aplication. i'm able to do it in text files, but binary is being a pain. i have some...
[18 replies] Last: oh, i see. so, any hint on how to safely store floats across different... (by Stauricus)
linker problem
 
hi, i have been bashing my head against a wall for a while trying to work out this "undefined reference to.." error. i have two data classes: class...
[1 reply] : Hi there, Is the (template) definition of operator>> in the header fi... (by closed account o3hC5Di1)
by Sandz
Help needed
 
Hi, I needed some help to confirm my answers. Please help me check whether my answers are correct. Thank you. Question 1. class B1 { ??????? class no_B...
[1 reply] : Hi there, Please don't ask us to correct our homework, that could be ... (by closed account o3hC5Di1)
Invalid Operands to Binary Expression
 
I have written this code as an assignment wherein some computations are done after the user enters a number of inputs, one of which is the day of the week. Howe...
[1 reply] : Hi there, Try using double quotes around your day names: day=="Su"... (by closed account o3hC5Di1)
switch case error
 
Here is my code : //swich.cpp //using swich statement #include <iostream> using namespace std; int main() { char ch; cout << "Enter a character :...
[2 replies] Last: Ohhhhh very damn stupid of me !!!!!! :( @Mobotus thanks for pinting it... (by closed account 4jzvC542)
delete error
 
it shows running error when i use delete memory but i dont know why please help int main() { int num=5; int *ptrnum; ptrnum=&num; cout<<"*ptr...
[18 replies] Last: like now value is deleted why does it show adress shouldnt show junk ... (by Disch)
by tce19
Loops and Iteration Structure
 
****Please Help...edit the program, complete the blanks***
[1 reply] : Here is the answer, though giving you the solution won't help you pass... (by Stewbond)
Sum up and Average
 
Hi guys, I am just a beginners at C++ and I wrote this small code and I am trying to sum up the numbers and average them, but I am not sure what to do, when I u...
[3 replies] Last: #include <iostream> #include <cstdlib> #include <ctime> using namespa... (by Chriscpp)
preprocessor
 
Why do we need to write #ifndef ANYTHING_H// #define ANYTHING_H #endif in wrapping the class it doesnt cause any problem when i don't write so it says to ...
[3 replies] Last: in all three .cpp files that needed the header files functions prototy... (by Sharan123)
by Mayah
Collect and output statistics using constructs
 
Hi everyone! I am completely new to C++ programming and am having some difficulties structuring the code for the assignment below. The code I have so far is...
[2 replies] Last: Hi rodiongork, Thanks so much for the reply! I'm a little confused as... (by Mayah)
Modified MAZE problem
 
There is a matrix which contains white cells(represented as 1) , black cells(represented as 0) and only one gray cell(represented as 2), need to go from (0,0) t...
[1 reply] : hi (by dayanand)
Not sure where to initialize
 
Hey guys! I can't figure out where or what to initialize min and max to in order for this program to work with any text document. Help would be much appreciated...
[2 replies] Last: At the start: int min; // Set to BIGGEST possible value. ... (by Chervil)
by sea711
Segmentation fault (core dumped)
 
Help - Segmentation fault (core dumped). I am going to try to comment out line by line to fix. I wish they gave you a line number. Anybody see anything obvious?...
[9 replies] Last: What everyone is saying is that you have declared variables but not gi... (by Manga)
by Xyexs
Code clean up in visual studio?
 
Soooo... in eclipse juno i usually format my code (fixes all indentaion,missplaced whitespaces, unused imports and such) using ctrl+shift+f. It appears not to e...
[3 replies] Last: I have Eclipse Kepler running on Linux, which does C++. HTH (by TheIdeasMan)
I'm going to start to learn C++
 
I have good knowledge of HTML and CSS. I have basic knowledge with Javascript and PHP. Is this the easiest place to learn C++?
[4 replies] Last: Thank you all for your replies. I look forward in learning C++. (by jibberjabber82)
array size = declared int variable?
 
Is it possible to make an array size change with a int variable? Say: I have a program that wants minimum 2 inputs, but offers an option to continue to add ano...
[3 replies] Last: you gotta create a new array and copy the old one into new one. someth... (by threeright)
Appending pointers and arrays
 
Hello, so I've been having trouble finishing this code as I'm not entirely sure how to go about the last two stringCat functions. If anyone can't point me in t...
[3 replies] Last: char* stringCat1 (char *str1, char *str2) { int strLen1; ... (by threeright)
new int question
 
Hi everyone, I don't understand these two line: [ int* outcomes=new int ; outcomes ++; ] thanks a lot.
[4 replies] Last: thanks a lot. (by sarra16)
October 2013 Pages: 1... 2930313233... 86
  Archived months: [sep2013] [nov2013]

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