Beginners - August 2009 (Page 12)

vector array to store coordinates
 
i've been trying to store a coordinate in a vector array, and reading the coordinates from a .txt file. there was no error, but the size of the vector is sti...
[2 replies] Last: You might be better off keeping your X and Y coordiates together in so... (by kbw)
by fredy
Question
 
I'm working on my very 1st assignment and i just don't get it where i got my program wrong.I wrote the following program and when it comes to the last part,it's...
[no replies]
Class instantiation and other errors
 
Am new to C++ and am trying to convert a little C program (which uses structs) to C++ using classes. To keep it simple it's a console application. My original u...
[4 replies] Last: No, I don't have to use void*, at least for this exercise. So I've cha... (by paoloricardo)
typedef of pointer to array of char
 
In Stroustrup's "The C++ Programming Language", exercise 3 of 5.9, I'm to "Use typedef to define the type pointer to array of char". I've tried: typede...
[2 replies] Last: Thank you so much! That made it perfectly clear. (by therefore)
by GameOn
Different data type giving different answers
 
can't we compare two float or two double value? when i am taking float as data type my code giving different answer than when i takes double and i need to compa...
[1 reply] : You can using ==, but you should read this: http://www.parashift.com/... (by firedraco)
simple windows forms program in Microsoft Visual C++ 2008 Express
 
I am trying to write a simple program in C++ which has Windows forms. The program I use is Microsoft Visual C++ Express 2008. I start with: File/New Project/CLR...
[3 replies] Last: Thank you very much for your reply. It helped a lot. Now I learned the... (by leszekj)
by HkatzD
Function Homework.
 
I am new to programming and need some help with home work. I have to have two user defined function and a main function. One user defined function has to pull t...
[13 replies] Last: Figured it out, function's have to go before main other wise they don'... (by HkatzD)
by Steven
How do I make my console output sound?
 
I am making a game and I would like to add sounds to it. My problem is that my console will not output sound. Specifically, I would like to use PlaySound() to p...
[4 replies] Last: Try this, if you're using Visual Studio. #include <iostream> #inc... (by Drake Aran)
Storing words in a string vector.
 
I'm having a problem with a program. How can i store two words in the addGame vector? When in case 2 of the switch, if i try to add like "hello world" without ...
[4 replies] Last: Thanks! Works like a charm now. Had to put a cin.ignore() befor... (by Gorefield)
Strange error message-multiple definition
 
I'm having trouble with one of my programs which is behaving weirdly. It looks like it compiles fine, but then I get this in the compile log: Compiler: Defaul...
[5 replies] Last: I suspect you had an old object file lying around that had a copy of o... (by kbw)
by Hsinom
Question on dev-c++
 
I am a beginner in C++ using Dev-C++ ( version 4.9.9.2). The output screen does not appear upon executing code. It just flashes for a very short burst of time a...
[3 replies] Last: or, if you don't want to use system("pause"); , which could lead to p... (by Drake Aran)
What is Delphi
 
Just as the title says what is Delphi, is it a language, is it as powerful as c++, can I do with c++ what I can do with it? Thanks in advance!
[2 replies] Last: Yes, it is Borland's (now CodeGear/Embarcadero's) version of Object P... (by Duthomhas)
by relay
registry editor
 
How would i go about opening registry location, converting it, converting it to Radix 24- and converting it with a custom table. to show its real vaule (serial)...
[2 replies] Last: trying to convert a part of the registry where the serial is stored (i... (by relay)
still having probelms with my program
 
Hello guys. I'm still having problems getting my program to list the items on the inventory/ add to an item to the file that I loaded..Here's my code: #incl...
[1 reply] : This is incorrect. The addInventory function saves the new inven... (by guestgulkan)
by Cbick
Have a few questions about C++
 
Hello all, I am fairly new to C++ and am having a problem with one of my assignments. It involves making a slot machine that generates random numbers. One of ...
[6 replies] Last: I give up I cannot make this code run the way it is supppose to. Been ... (by Cbick)
by hunter
Switch statements
 
Hello all. I am having some trouble with switch statements. I have been trying to put my original switch inside a switch. Like this: #include <iostream> #i...
[3 replies] Last: Add braces so that the scope of 'seconds' is limited: { int s... (by Bazzy)
computing for the value of e
 
Hoi! I'm supposed to get the value of e by summing 1 and the inverse of factorials from 1 to 5 (i.e. e = 1 + 1/1! + 1/2!+...+1/5!). I edited the code and now I...
[8 replies] Last: Alright! Thank you very much. now i get the looping problem, thanks! (by masquechique)
maze in an array
 
Here is the problem once i initialise the n x n area of maze in array ,i cannot correctly specific the exact location of the robot starting point to move ...
[1 reply] : Please don't duplicate posts. I have already posted in your other post... (by kevinchkin)
by Shane
How can you make a program that finds pi?
 
And also, since pi is infinite, would your computer crash? lol Im new with c++ xD
[6 replies] Last: Nice code, the advantage of mine is that it's more fun, and less effic... (by Alaric)
by Kuzco
What is wrong with my calculator?
 
Hi there. I've just completed (I think) my first program, a calculator! :D But it's not really completed because there is some errors in it I can't seem to fix...
[13 replies] Last: Make sure you use a good debugger and desk-check ("Step through") the ... (by wolfwind)
August 2009 Pages: 1... 1011121314... 17
  Archived months: [jul2009] [sep2009]

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