General C++ Programming - April 2012 (Page 19)

by AARGH
define proficiency and job titles
 
how would you define a proficient C++ programmer? -knowing / memorizing the entire language and being able to code without the use of references?? -knowin...
[2 replies] Last: The term code monkey doesn't mean junior program. Some quite elderly p... (by andywestken)
Why wont my counter work? Im using classes?
 
if(a<=20){ a+myDice.roll();} cout<<a<<endl; myDice.roll is apart of a class but my counter is staying at 0 each time i rerun it??
[1 reply] : I think you should change a+myDice.roll(); to a += myDice.roll(); ... (by vlad from moscow)
by sanyam
Analysing a wav (audio) file?
 
Hi. I'm using win 7. Is there a way to get the waveform of a .wav file. for eg. if the .wav file consists of a beep of frequency 1600 Hz then the wave form sho...
[9 replies] Last: #include <sndfile.h> int main(){ SNDFILE *SoundFile; SF_INF... (by htirwin)
c++
 
please who can solve this program c / c + + lab_7 (lines) Enter a character string S1. perform the following steps: a) build a new line ...
[no replies]
Mouse and console
 
I've got this code for mouse clicking, getting x,y... now when I put this in: for(;;) { if(_kbhit()) { //do something } else if(MouseClick()) { //d...
[8 replies] Last: ok, thanks, that's what I wanted to know :) (by tofiffe)
Understanding static variables with recursive functions
 
Hi, I'm currently practicing with recursive functions and I'm a little confused with static varialbes. I have this code which is working fine my only conf...
[8 replies] Last: Got it, the thing I wasn't understanding is the fact that any local va... (by fstigre)
Moving Direction based on sprite rotation [SFML]
 
I'm trying to make my sprite move in a direction based on its rotation, for example if its rotation angle is at 0 (default) and you press W, the sprite moves up...
[7 replies] Last: Thanks hamsterman/Disch, I've got it working perfectly now, switching ... (by Zephilinox)
postfix evaluation
 
Hi, i'am trying to read postfix expression from txt file and evaluate it the input is 10 5 * ,the output should be 50, but it reads only 10 and 5, where's the...
[2 replies] Last: he only pushes 10 & 5 into stack, and gives final evaluation as 5 !! t... (by maha 5aled)
forward declaring an enum Vs forward declaring a class
 
It is not allowed to forward declare an enum, but it is allowed to forward declare a class. The reason I could find is that the compiler does not the size of th...
[1 reply] : Take look at this. http://stackoverflow.com/questions/71416/forward-... (by IceThatJaw)
PigLatin Program
 
Hi, I'm currently learning C++ and I have this PigLatin program to write, and while everything compiles and there are no errors.. I can't seem to get the string...
[3 replies] Last: I figured it out... I forgot to include #include <string> thanks coder... (by shogun525)
by cshu
How should my program look?
 
ENGR 230 Program 9 Assignment My First Array A component used in the electronic cruise control as designed for passenger cars contains...
[1 reply] : what do you want from us here? to do your homework? make an attempt th... (by GFreak45)
How to read image file and allocate memory using malloc?
 
I am new to compiling in linux environment. Anyway, I have a source code in C which is suppose to read a sequence of .pgm image files, compress them and write t...
[5 replies] Last: Anyway, when I change the line to fscanf(file,"%c", &frame[i + nx * ... (by skyjuice)
How solve problem, am too dumb...
 
I posted the following on stackoverflow: I'm working on Interview Street's "Unfriendly Numbers" puzzle. It goes like this: Given an integer, and anoth...
[12 replies] Last: Thanks! I tried it that way: import sys nandk = sys.stdin.readline... (by creekist)
Does initializing take longer than declaring? (1,2)
 
This seems like a basic question, but I'm having trouble finding the answer by searching online. I have arrays of the form vector<vector<vector<complex<double...
[28 replies] Last: isnt declaring putting down the dat type with var name and initilizati... (by Aramil of Elixia)
by nick92
program with count how many numbers
 
i need help for this program this program can count how many number you have input until the negative number is entered (using only loop) i start the program wi...
[8 replies] Last: have it in a vector with an if statement to test it (by Aramil of Elixia)
expected While before numeric value
 
#include <iostream> #include <string> #include <conio.h> using namespace std; int main() { int i; string password; cout << "Enter the pas...
[2 replies] Last: I'm trying to loop the program for when the wrong password is entered ... (by smurf12125)
Textures loading strange
 
I'm not entirely sure what the issue is, but I am trying to load textures with SOIL and OpenGL, and when it displays them, there is basically an off-white half ...
[2 replies] Last: I commented out SOIL_FLAG_MIPMAPS and now it is significantly better... (by DeadEli)
acil ücret karşılığı yazılım ihtiyacı
 
Ankara ilinde çalışmasını yaptığımız bir takip sistemi mevcuttur. Bir yazılımcıyla bu çalışmaya başlanmış ve çalışma hayata geçirilmiştir...
[no replies]
how to read mp3 ID3v1 tags from directory and put them in a list???
 
how to read mp3 ID3v1 tags from directory and put them in a list??? i dont know how and i have a project to deliver in sunday
[no replies]
by Paul87
IF statement does not evaluate properly
 
I have a very odd situation that I hope someone can shed some light on: mResults is std::vector<int> mMaxListLength is int. mTest is int. if (!mResults.empty...
[2 replies] Last: Makes sense. Thanks Peter. (by Paul87)
April 2012 Pages: 1... 1718192021... 49
  Archived months: [mar2012] [may2012]

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