General C++ Programming - November 2012 (Page 24)

Read bytes from data in memory
 
I need to copy bytes from data stored in memory. I need to begin copying from a starting point within this data and only copy a specific amount of bytes. Here i...
[3 replies] Last: 01101001 Unfortunately, if someone give the bits above and ask what t... (by kg1992)
Targeting point
 
I have to do some calculations. In short, the math exercise is : Double xCurrentPt, yCurrentPt; Double xTargetPt, yTargetPt; Double angle; Suppose a man is...
[1 reply] : This might help you: http://en.wikipedia.org/wiki/Triangle#Computing_t... (by AleaIactaEst)
float
 
after run program #include "iostream" using namespace std; int main() { float a = 10254158.3454; cout << a; system("pause"); return 0; } /* result :: 1.025...
[1 reply] : you can modifiy the precision of the output (i.e. the printed digits) ... (by AleaIactaEst)
Why i get negative values of eigenvalues for covariance matrix
 
I suppose to collect Array of Covariance Matrix. However, the last few values of eigenvalues I get negative values. Can anyone who experience in covariance...
[9 replies] Last: I don't have much experience of what you are doing here but I do notic... (by mik2718)
by skarla
SDL help
 
I have download files of SDL_mixer But i can not make my program play music(the wrong is in the files). I have make good programs like(pacman,simple mario with...
[no replies]
a recursive function and an iterative
 
How can Print This shape using a recursive function and an iterative function * & * & * & * * & * * * & * & * * & * & #include<iostream> #include<string>...
[no replies]
by skarla
question
 
Linked list and Dynamic arrays and sorting(bubble sort,etc...) are 1)C or 2)C++ or 3)C and C++ stuff? I ask because c++ use STL vecotrs for dynamic arrays,s...
[1 reply] : They are general words, not specific to any particular language. std:... (by Peter87)
Char to int?
 
I'm writing a program that reads text from a text file into a c-string and then convert the ascii character to integer. I already did the reverse process. integ...
[4 replies] Last: "Char to int" is always correct. Why did you ask this question? Spam? ... (by Imadatobanisa)
Using setw and left from iomanip
 
I got it working! Thanks.
[2 replies] Last: for( auto i=exampleMap.begin(); i!=exampleMap.end(); ++i) { ... (by cire)
Word Counter using a map
 
So I want to count the occurrences of every word in a text file. It scans the file and for each word passes it to my insert function. Here is the code for my in...
[10 replies] Last: Well.. That's pretty significant then.. Wow! :) Glad it worked out for... (by Thumper)
by Nausea
SDL: Checking how hard a key was pressed?
 
Is there a way to check how hard a key was pressed? For example if you want a player to be able to jump certain heights depending on how hard you pressed the ...
[2 replies] Last: NO. There is no way for the computer to determine that. You would nee... (by TheIdeasMan)
by dem7w2
Polymorphism with linked list
 
I'm working on a program for an internship interview, and I came across a problem. The program consists of a base class, Document, which PdfDocument and WordDoc...
[11 replies] Last: Thanks. I saw that flaw in the template parameter list too but I did n... (by closed account D80DSL3A)
by paetim
Changing codes, Please help !
 
Here is my assignment: Create a program that would read the content of an input file and write it back to an output file with all the letters "C" changed into ...
[2 replies] Last: I need help in creating the first file for this. How would I create th... (by paetim)
end of line in caser
 
how to ended the line of caser ?please answer me
[3 replies] Last: Whoops. Thanks for the correction, LB (by whitenite1)
by paetim
vending machine sample need help, please look!
 
I have to make a sample run look like this. I cannot seem to get this right. what am i doing wrong. PLEASE HELP! Sample run (as a suggestion) Welcome to...
[15 replies] Last: Thank you (by paetim)
by wesly
Read all the key value pairs from the ini file
 
Hi team, My ini file looks like- key1=12 key2=14 key3=13 and so on..... what i want to do is to retreive all the key-value pairs data. I tried u...
[13 replies] Last: Rule of thumb: don't use platform-specific code for dealing with platf... (by LB)
by jkfde
C++ pass array help
 
I need it to return the entire array from userNumbers function and store it in usernum array in main function. **there are some blank functions right now bec...
[8 replies] Last: [quote=jkfde]when you say int winnum [ 4 ]; does that mean there i... (by LB)
Variable value is outside the compiled program
 
Dear all. I need to have something like the input file, where I could change some variable value, and run the program. There are a lot of variables, and it woul...
[5 replies] Last: You may want to consider simplifying the format or using INI with an e... (by LB)
Help with SFML linker error (1,2)
 
So just starting getting familiar with SFML and I'm having some trouble understanding the tutorial on their website to setup everything for Visual Studios. Im ...
[24 replies] Last: Thank you cire for pointing that out. (by closed account 3qX21hU5)
need help finishing a program
 
Hello everyone, I am working on a project and I ran into a dead end due to my knowledge. I wrote what I can but I know I'm missing things, I would greatly appre...
[4 replies] Last: Well first off, it says parallel arrays. So don't use a 2D array. That... (by ResidentBiscuit)
November 2012 Pages: 1... 2223242526... 51
  Archived months: [oct2012] [dec2012]

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