General C++ Programming - April 2009 (Page 7)

by Oromis
Chancing name .exe (after build)
 
Hello, I've this program, called "falling". When I build this project, it all runs fine. But when I chance the name from "falling.exe" to "falling1.exe", the...
[no replies]
Parse string sqrt(3) to number
 
Hello! I would like to read a string like "sqrt(3)" or "pi" from a configfile and parse it to the corresponding double value (1.732.. and 3.14..). Is ther...
[4 replies] Last: Thank you for the hint! (by lostprophet)
Reading data files.
 
Could someone show me what I am doing wrong to read a data file? I was told that the charaters that was comeing from the file did not need to be declared. Is ...
[3 replies] Last: 1>c:\documents and settings\hp_administrator\my documents\visual stud... (by PanGalactic)
by Oromis
Bug in loop (involving vectors)
 
Hello, I think there's something wrong with the following loop (because the program crashes sometimes at the moment a bullet hits a block), but I can't figur...
[9 replies] Last: I solved it using a construction similar to your example (don't automa... (by Oromis)
Visit our forum
 
Hello, we have a forum on programming we are looking for more members who are into programming not just there to talk about any thing.
[4 replies] Last: hahahaha (by writetonsharma)
by vRltwE
Find the number of columns
 
Hi, I have a file called 'file.dat'. This is a text file that have an ASCII matrix 1 2 3 4 5 6 7 8 9 How can a find the number of columns and lines? ...
[4 replies] Last: That will give the number of lines. To get the columns you can do p... (by kbw)
Pointer to Pointer.. don't know how to use func's parameter
 
I have this code ( it's wrong ofcourse.. but I don't understand why).. typedef struct { int NumOfElt; int *Value; } Vector; int ReadVector(char ...
[6 replies] Last: thanks helios so much.. my problem has been solved.. by the way, I'm... (by kakalos)
by tucker
deref void ptr
 
This might belong in the beginner forum but here goes: given: pointer to struct containing void pointer to data pointer to struct containing integer value...
[3 replies] Last: unsigned char* temp_ptr = reinterpret_cast<unsigned char*>( p_struc... (by jsmith)
Getting the value of the particular memory address
 
Dear All, I am a new one for this forum.I have a memory address like 0x0012FF7C. I want to read the value of this address.Is it possible?.If yes mea...
[4 replies] Last: You say you want to read the value of an address like 0x0012FF7C ....t... (by buffbill)
finding out prime-numbers
 
Hi all, I have a number and I would like to find out which two prime numbers I have to put together to get this number. For small numbers my algorithm works ju...
[4 replies] Last: I would do it like this: (1) build a map of prime numbers, for instan... (by elvis)
First program using arrays
 
I am trying to write a program that reads from an external text file and stores the data (ss number, name and GPA) in three separate arrays. Therefore, shouldn'...
[10 replies] Last: Thanks, but that doesn't answer my question. How can you explain this... (by kempofighter)
command line
 
can someone please explain what a command line is or provide a good link that explains it in depth. i tried searching it on the net but coudnt get the idea....t...
[2 replies] Last: Neal Stephenson said it best: http://www.cryptonomicon.com/beginning.... (by PanGalactic)
binary float
 
When a float is represented in binary and is denormalized, and the exponent is 0, does this signal the processor to NOT add 1 to the (non-zero)fraction in bits ...
[1 reply] : Wikipedia may provide some insight here... (by PanGalactic)
Joining a project
 
I've been studying programming and C++ for a good while now. Unfortunately, I don't have a lot of experience and as a result, I want to join a project to gain s...
[7 replies] Last: http://windows.kde.org/ The KDE on Windows Project is aimed at nat... (by PanGalactic)
by lihle
list problem
 
help me out guys. i have a problem of how to delete an adjacent Node in a graph. Nodes(Vector)====>List-List-List ...
[2 replies] Last: I agree. Please post an example showing us how you are constructing t... (by kempofighter)
First "Real" C++ program - Autoshoot
 
Hello, I have studied c++ language, and done all sort of those little text output programs. I want to make one "real" program and that would be autoshoot/trigge...
[6 replies] Last: ....This is your first project? I would NOT recommend this as a first ... (by closed account S6k9GNh0)
Problem extracting minimum values from an array
 
hey everyone, i am a novice programmer and i'm trying to create huffman codes. But I'm facing problem with acquiring the two minimum frequencies from an array. ...
[1 reply] : It would be much easier to help you if you would edit your post and us... (by kempofighter)
To solve 4th Order equation
 
Hello Is there a built-in function in C++ to solve a 4th order equation of the format:- Ax^4+Bx^3+Cx^2+Dx+E=0 Any tips or hints? Thanks in advance.
[10 replies] Last: I found the solution for this. There is a perfect code for it in Googl... (by luckycusp)
difference between java and c++
 
can anyone point out major difference between java and c++
[3 replies] Last: The first difference is the syntax. Other than that, the major differe... (by helios)
Namespaces in DLLs?
 
I have the following files: (in the form of a dll project) dll.h #ifndef _DLL_H_ #define _DLL_H_ /* Begin User-Defined */ #define export extern "C" __...
[9 replies] Last: Duoas: I agree. :) (by writetonsharma)
April 2009 Pages: 1... 56789... 20
  Archived months: [mar2009] [may2009]

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