General C++ Programming - May 2012 (Page 32)

Problem cant store values in void (i think)
 
Hi new here. I was wondering were i went wrong here i can enter values in each month but it returs no value. //This program takes a years worth of rainf...
[1 reply] : Please indent your code. Try to not use global variables. Your problem... (by ne555)
by boaz
Why cant i compile?
 
This is my header #ifndef PARTY_H #define PARTY_H struct Party { char * pName; int Size; char Plane; }; #endif #ifndef PLANE_H #define ...
[5 replies] Last: ok so i got it... Now.. it says [Linker error] undefined reference to... (by boaz)
Important , I need a HELP with a programm ASAP
 
In network simulation, node placement is one way to create and describe a simulated network. Write a C++ program to create a node placement file named “Nodes_...
[7 replies] Last: please anyone can present help for me then i'l give him a prize (MONEY... (by inspired1990)
Struggling with C++
 
.................................
[2 replies] Last: Wow. Thanks. I may be guilty of not knowing the best way to ask for ... (by closed account 3CG1hbRD)
Basic programming help
 
Hello, I am kinda of stuck and needing help... I have to write a small mini program for class and I so far got this code but its not working and running, I can...
[1 reply] : First of all, please edit your post in order to include the code insid... (by webJose)
I need to write a program with a class called CheapWatch
 
I have a C++ programming assignment due today and I am having trouble getting it to work correctly. Here is the assignment: Write a program with a class cal...
[8 replies] Last: No, I mean this is the first C++ class I've taken and any help would b... (by Eddie Sardinha)
Why would this error be happening?
 
I continue to get the error: Error 9 error C2248: 'std::basic_ios<_Elem,_Traits>::basic_ios' : cannot access private member declared in class 'std::basic_io...
[1 reply] : This is because objects of type basic_ios can't be copied. Your obje... (by shacktar)
How can this be more efficient?
 
I am just looking through my code to see how to be more efficient/elegant. I feel like the writeFile function is not very efficient but i really can't think of ...
[1 reply] : each endl send to a ofstream drives another nail into the coffin o... (by Cubbi)
Accessing private members
 
Hi, I am trying to access private level members with a Derived class but keep getting: Error1 cannot access private member declared in class 'TimeType'. Here i...
[1 reply] : Read up on the rules of what parts of a base class a derived class can... (by Moschops)
const AND throw functions?
 
can a function be declared as a const function as well as being a const function? Something like: int myClass::myFunction(int someNum) const throw(MyExcepti...
[1 reply] : Yes it can. (by codekiddy)
Overloading Operators
 
Hi, I'm working on the following program and keep getting error message on the relational operator ==, <, << and >>. Error6 error C2511: 'bool TimeType::operato...
[3 replies] Last: got it thanks (by louflow)
LNK2019: unresolved external symbol problem
 
I have some plugin source for 3ds max v7 and i want to compile it for version 9. Ive found 3ds max 9 sdk and all necessary libraries but when i try to compile i...
[2 replies] Last: Resolved. I linked against wrong Newton lib. They provided 3 different... (by morando)
Writing a queue program
 
My professor is asking us to write a queue program, by which I mean that we are required to write out all of the functions of a queue like push, pop, etc. The p...
[2 replies] Last: void showPassengers(CQueue *theQueue) { for(int x=1;x<=2;x++) { ... (by viliml)
by sanyam
reading bytes of a file
 
I compiled the following code #include<iostream.h> #include<conio.h> #include<fstream.h> int main() { ifstream fin; fin.open("file.txt",ios::...
[5 replies] Last: thanx.. peter87 I've another related problem at http://www.cplusplus.c... (by sanyam)
by sanyam
<enter> character creating problems
 
Please look at this code #include<iostream.h> #include<conio.h> #include<fstream.h> int main() { ifstream fin; fin.open("file.txt",ios::binary); ...
[no replies]
by sanyam
reading bytes of a file and producing the file back.
 
Hi. I've been trying to read a file byte by byte into a .txt file and then reproduce the original file back from the .txt file. For this I want to include ALL c...
[2 replies] Last: no actually i got my error when i wrote fin it got an extra char (by sanyam)
Problem with switch...I think?
 
Hello, I am having trouble with a program that is meant to calculate the volume of a sphere, cylinder, and so on. I suspect I have a small error in my code caus...
[2 replies] Last: Thank you for the help, I will try to be a little more organized. I wi... (by znottaken)
Unrecognized error
 
Hi, I am a C++ beginner and was assigned the following project: Write a program that reads in a list of positive integers from the keyboard into an array. ...
[1 reply] : Your declaration for the increasing function: void increasing (int l... (by Stewbond)
File Pattern
 
Hey guys, i need some help with file pattern. I'm in a project that i read a file and the program makes a matrix. the file pattern is 1;4;4 2;6;6 3;2;2 4;...
[1 reply] : Something like this: std::ifstream file( "matrix.txt " ) ; std::stri... (by JLBorges)
need help with some code
 
so i want this exit statement to go back to whatever the user was doing before but when you say yes it just exits out and doesn't redo the script. suggestions? ...
[5 replies] Last: Yes, I was confused as to how you were calling it in my first post, yo... (by ascii)
May 2012 Pages: 1... 3031323334... 41
  Archived months: [apr2012] [jun2012]

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