Beginners - February 2008 (Page 2)

Opening and closing files...
 
Ok, so I have an assignment to open 1 file, get the data, close it, then open 2 more files and pull the data from those as well. my first file opens perfectl...
[1 reply] : I suspect that the fail bit is being set from the first file. (Does st... (by Duthomhas)
by gzero
What's the difference between these?
 
After writing this code: DblArray.h: #include <iostream> using namespace std; class DblArray { public: DblArray(); void Set (int i, double val); ...
[4 replies] Last: That works. I guess I need to go read up on static variables. Thanks... (by gzero)
undefined reference?
 
Hi, as the forum indicates I'm only just beginning to understand the depths of the gulf that is my ignorance on this subject (C++) and have stumbled across this...
[9 replies] Last: Yep you were spot on, after removing my other install of MinGW & Msys ... (by Darkvoid Bluff)
Need help to compile .idl file
 
sorry guys. i need help again. now i have this .idl file which i want to use in a windows program but i have no idea how to compile it into a header. or make...
[2 replies] Last: this produces a .dll? i dont have a compiler now at the office (insuf... (by averageGuy)
I need it in 2 days..plz help me..is urgent!!!
 
I have problems in "status" problem..I can't loop successfully..can anyone help me to edit my coding???It's very urgent!!!thanks for everything.. #includ...
[5 replies] Last: aiyo...so jialat meh. hahhaa c++ statements are made to sound like ... (by averageGuy)
I have no idea.
 
Hello, I have no idea whats going on here. I have a multi-dimensional array which i assign some values i.e. array =-1; array =-2; However, when i outp...
[1 reply] : Show us some more code - no way to tell what's going on here. (by Ganon11)
online variable?
 
is C++ able to get material from online sources? like the php code of $url = "http://...com"; $data = @file_get_contents($url); if not, what sources...
[4 replies] Last: .. wow even the web domain sounds uber 'h4xx'-ed. hahha Thanks man,... (by averageGuy)
by andy10
Pls help me in my project.....
 
My prof. said create a program using loop statement,nested loop while loop,do loop,for loop.can u give me some problem in visual basic in c++ using all of that?...
[2 replies] Last: a few simple problems my tutor gave me last time. display a row of ... (by averageGuy)
Program closes..
 
Hey im new to these forums && know little about C++ i made this program that uses enum and it decides what to write But the problem is as soon as i type a numb...
[2 replies] Last: i usually use the debugger to find logical or memory bugs like this. ... (by averageGuy)
How do I know if an object has already been deleted through another pointer?
 
Say pointerA is pointing on object1. pointerB is also pointing on object1. I want to do a delete pointerB, but I want to make sure the object hasn't already b...
[1 reply] : You can check out "Smart Pointers" in the Boost Library: http://www.... (by Duthomhas)
by nza
Study example...
 
Its been suggested a question similar to this will be on an exam but I have NO idea how I would make it... We are supposed to take in three inputs; two numbe...
[1 reply] : you only need 2 for loops and the row and column inputs are the limite... (by averageGuy)
Subtracting a 0.1
 
so this is my code #include <iostream> #include <iomanip> using namespace std; int main() { double height, delta = 0.1; int count = 1; cout<<"E...
[2 replies] Last: Yeah, I got what the problem was by doing that. Then I tried searchin... (by Serenity)
by omid
hi m student and need some help for stasrting pargraming
 
heeellloooooo this is omid here ... m game designer and start learning, to program a game....so any one can help me about it or know any usefull book and in...
[no replies]
Class to construct instances of another class help
 
I currently have 2 classes: CBulb and CSwitch. They both have their own definitions and declarations in their own .h and .cpp files. I am trying to create a ...
[no replies]
Generating random numbers
 
I have to write a program that generates 100 random numbers between (0.0, 1.0]. The program counts how many of those numbers are between (0.0, 0.5] and how many...
[1 reply] : OK, and what have you done? (by Ganon11)
Another Question about pointers
 
I'm a little confused about an aspect of declaring pointer type variables. Not so much the what, as the why. The tutorial says This: "Due to the ability o...
[1 reply] : They do and don't. They do find out the size of the data type they po... (by Ganon11)
Codes
 
I'we writen a code or program what ever you call it. I do not know how to activate it. Is there a special program I need to write with? Or a special instaler? P...
[1 reply] : You need a compiler, such as Bloodshed Dev C++. Once you compile your... (by Ganon11)
"%"
 
what does the "%" do? //eg. example % 4; or.... print("%s example); I have seen some codes that uses that sign in a "print" function, what doe...
[3 replies] Last: The % character alone is the Modulus entity, which returns the remaind... (by Jak)
hi, I am a new learner
 
HI, I am new to c++, need some help too. thanks for this forum.
[3 replies] Last: Well as long as all of you are learning, might I join you? (by Vortex47)
Help needed for a Payroll Program Please!
 
Hello, I am having problems with a payroll problem. It only computes every other employee, and I cannot get the overtime hours to total properly. I have to use ...
[no replies]
February 2008 Pages: 1234... 10
  Archived months: [jan2008] [mar2008]

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