
please wait
by Rikkin
Read a file and put in a array[][]
|
Hi guys, I need to do a program that reads a file, that contains something like this: 8 2 3 4 2 5 6 1 3 4 3 1 4 6 7 7 2 4 1 3 3 2 1 6 8 and put in a... |
Jul 5, 2013 at 4:44am
[2 replies] Last: Your conversion is bad in line 39. line is not numeric type. Use atoi... (by ats15)
|
by smartgurl
Just check to make sure
|
5. Mary Conrad wants a program that allows her to save each letter of the alphabet and an associated word starting with the same letter of the alphabet on each ... |
Jul 5, 2013 at 4:30am
[4 replies] Last: As you're saving to file, I'm not sure why you're calling your file st... (by cire)
|
by Superdude
Can someone review my master program?
|
Here is the code for my master program. Please tell me what you think so I can make improvements. #include <stdio.h> #include <conio.h> #include <io... |
Jul 5, 2013 at 4:28am
[14 replies] Last: Any more ideas? I did post the whole code though. I am not done with i... (by Superdude)
|
by Niven
Glew won't initialize
|
I'm trying to make a simple opengl program. I've just started it but am already running into a problem. The code compiles and runs but glew keeps failing to ini... |
Jul 5, 2013 at 3:41am
[1 reply] : Just curious, if I want to make my own classes for my shaders (matrici... (by Niven)
|
by Smith010691
Large Matrix Operation
|
I am having a problem on how will I create a large matrix to be solved using numerical methods. Say I have a 500 x 500 matrix and want to find these 500 equatio... |
Jul 5, 2013 at 3:41am
[2 replies] Last: I do not know how to insert L1, L2 and L-infinity as an exit criterion... (by Smith010691)
|
by htirwin
OpenGL crosshair, 3rd person, and laser beam
|
Hello. I'm at the point in a game I'm developing where I am ready to implement crosshairs and laser weapons in 3rd person. I've been thinking about it for... |
Jul 5, 2013 at 2:31am
[2 replies] Last: Or if you want it to get in just the general direction... you could c... (by htirwin)
|
by meesa
[C++] How to tell function which part of struct to use (1,2)
|
As an explanation, I'll use a very simple example. Say I have a structure defined as such: struct data{ char c; int x; }; And I want to crea... |
Jul 5, 2013 at 1:22am
[21 replies] Last: In any case I think it's quite an elegant solution to a rather inelega... (by Lachlan Easton)
|
by shaunalejo
SNAKE PROGRAM HOW CAN I MAKE GLOBAL VARIABLE .. PRIVATE??????
|
//******************************* //THIS IS THE HEADER FILE #include <iostream> #include <ctime> //snake base struct struct tagSnakeBody{ COORD snakePart... |
Jul 5, 2013 at 1:10am
[3 replies] Last: Yea, I'd be cool if you used code tags. It's even worse when the answ... (by closed account N36fSL3A)
|
C++ noob |
ok so i am a complete noob to c++ and programing in general, but what i am good at is artwork. So i was wondering is it possible for me to use c++ to make a gam... |
Jul 5, 2013 at 1:09am
[9 replies] Last: The problem with many first time game programmers is that they think e... (by closed account N36fSL3A)
|
by xismn
sin() - unexpected results?
|
Hey, I'm working on a project where I'll be writing many PCM .wav files. Each .wav file is of a sine wave with varying frequency. I'm using the sin() functi... |
Jul 5, 2013 at 12:31am
[5 replies] Last: Disch is right. sin & cos will take any real value & produce a resu... (by TheIdeasMan)
|
Finding the Median |
I am trying to find the median of an array in c++. Can anyone help? This is the array that I would like to find the median for. scores = {62,70,98,71,8... |
Jul 4, 2013 at 5:21pm
[5 replies] Last: the median is the numerical value separating the higher half of a dat... (by JLBorges)
|
by megasnorlax
will i keep my programs?
|
I went on Code::Blocks and it said I need to re- install it for it to work because something got messed up. I have no problem re-installing it, but the only thi... |
Jul 4, 2013 at 5:12pm
[1 reply] : You shouldn't lose them; but play safe. If your programs are in a subd... (by JLBorges)
|
by Kristiano 96
Overloading operators
|
I am reading book c++ for 21 day by jesse liberty and I didn't understand overloading operators especially I am confused for overloading operator . can someone ... |
Jul 4, 2013 at 4:25pm
[5 replies] Last: Thank you very much! (by Kristiano 96)
|
by khirmokhtar
Loan related C++ help needed.
|
I was given a sample program to calculate Total Repayment. Which is as follow: #include <math.h> #include <stdio.h> int loan( double n , double m , double... |
Jul 4, 2013 at 4:18pm
[1 reply] : http://easycalculation.com/mortgage/loan-payment-amount.php You can us... (by ats15)
|
by agoswami
maintain size of pointer in 32bit to 64 bit machine
|
I have very legacy code which migrate from 32 bit machine to 64 bit machine.During my analysis we do lot of calculation on the bit basis.So it might be issue fo... |
Jul 4, 2013 at 2:59pm
[3 replies] Last: Thanks for reply and share useful link (by agoswami)
|
by ghantauke
Question about short-circuit evaluation in C++
|
Consider the following line of code. if ( a || b || c ) //other bits don't matter My question is, if a is true, would the compiler evaluate the value of b... |
Jul 4, 2013 at 2:12pm
[4 replies] Last: > does the compiler know in advance that there's only logical ORs in t... (by JLBorges)
|
by EJ Destua
I have this problem about queues. :(
|
So this is my problem. Given an array of characters of specified size, store a string into the array and display in loop the output after executing the comma... |
Jul 4, 2013 at 1:59pm
[2 replies] Last: assuming that you are supposed to be implementing the queue, i think t... (by Jaybob66)
|
by HeavyRain
return matrix in function
|
Dear all, I have found a lot of solutions using Google but no solution did work. Could you please tell me how we can return a 3x3 matrix in c++ function. My c... |
Jul 4, 2013 at 1:47pm
[7 replies] Last: I am using Visual c++ 2008. (by HeavyRain)
|
Templated class inheritance |
Hi guys, I've just created a main frame for a statistical tool in C++. Following is my code: //StatTool.h #ifndef STATTOOL_H #define STATTOOL_H ... |
Jul 4, 2013 at 12:34pm
[3 replies] Last: Careful with you terminolgy: you're never going to link a .h or .cpp f... (by andywestken)
|
by ajh32
sockets - send HTTPS HEAD command
|
Hi, I've not really used sockets in my many years of programming, and now I'm in need of send'ing a HTTPS HEAD command and recv'ing the response. If some kind ... |
Jul 4, 2013 at 11:02am
[2 replies] Last: In case anyone is interested, I have worked out how to do a socket HTT... (by ajh32)
|