Beginners - December 2012 (Page 14)

by dctrd
beginner question
 
Hey guys,I've been learning C++ for about a week from here and there,but want to start focused and read a book...so I've asked lots of people and every person r...
[1 reply] : This should help http://stackoverflow.com/questions/388242/the-definit... (by closed account 3qX21hU5)
What's wrong with my code?
 
I am beginning programming in C++ and I wrote this simple program. It's a game where you have a cannon and you choose the angle to fire the cannon to kill enemi...
[4 replies] Last: Further to Chervil 's post: There are a number of your variables tha... (by TheIdeasMan)
Deleting/Replacing an element from an array
 
I'm making a program that takes in names, and lists them. For example; sNames = "Bob"; sNames = "Jim"; sNames = "Kyle"; sNames = "Tim"; sNames = "" ...
[2 replies] Last: Anyway I suggest using vectors, not arrays. Vectors have methods that ... (by Marcos Modenesi)
C++ questions
 
The following code segment is supposed to write out the even numbers between 1 and 15 Int n; N= 2; While (n!= 15) { N=n+2; Cout <<n<< endl; } ...
[10 replies] Last: I knew it was a stupid question. (by closed account 18hRX9L8)
Paint in C++
 
Hello guys. I am doing BS-CS and right now I am studying object oriented programming. We are given an assignment of Making an MS-Paint like program using OOP co...
[4 replies] Last: I've done very little GTK so help from me would be null I'm afraid sor... (by masterofpuppets690)
Pointers
 
Hello, My course ended and the next chapter was on pointers. I always get on this site and see pointers, pointers, and more pointers. I read the first little ...
[2 replies] Last: ok thx (by jlillie89)
For Loop to While Loop
 
for (int i=2; i<=100; i=i+3) cout << i << "\n"; Im trying to write this as a while loop but it increments wrong in my program. int i = 2; wh...
[9 replies] Last: Ya, what I wrote was just a little more compact way of saying what you... (by Raezzor)
Allegro 5 Sound Class
 
I'm building a class to store sound files and allow them to be played. I am "trying" to store the sounds in a vector and then passing their index to play them....
[1 reply] : I found a work around. If anyone else has a similar issue, my working... (by HellfireXP)
How to pass variable(queue) in function by reference C++
 
Hi, I'm trying to simulate a movie theater program where customers enter the theater, wait on line, and enter the theater based on what movie they're seeing and...
[2 replies] Last: I tried implementing it, and it works great. Thanks :) (by mongie52)
Hey guys!
 
Hi everybody :) I just started learning C++ since yesterday when I received my C++ primer fifth edition. In the exercises section, I have to write a program tha...
[1 reply] : At the end of the 2 if test expressions you added semi-colons. Those a... (by Raezzor)
c++ help
 
hi,,, i have one question about programing in c language:i must make the function which must calculate and retourn the sum of the members "m" of type:1/(1*3)-...
[9 replies] Last: oo my friend ,,,, look this, if you can do it for me ,, i dont know ,,... (by fanatikos)
by hasak
Delay
 
how can I set short delay when program is running ? e.g. print "processing..." and pause program there for 3 seconds.
[4 replies] Last: In standard C++, it's std::this_thread::sleep_for(std::chrono::second... (by Cubbi)
PlaySound() sequence
 
Hi all I have my code here : int main(int argc, char* argv ) { PlaySound("C:\\Users\\Commander\\Desktop\\test.wav", NULL, SND_ASYNC); getch(...
[6 replies] Last: Thanks Chervil. Your code actually played for me with a much shorter p... (by MartinMH)
by tribe
Divide and conquer counter.
 
Hey guys i've got a problem. My code should count how many times number 2 occur in "tab" array. I have to use "divide and conquer" method. The problem is that 5...
[4 replies] Last: above one given by cire is a good example of a recursive program. usi... (by ahmad khan)
by ronni
beginner
 
hi, i am a newbie in programming and i am starting to learn C++ from the book "Jumping into C++" by Alex Allain. Is this book good enough. So if someone is als...
[1 reply] : You can discuss problems you are encountering here in the forum.:) (by vlad from moscow)
Project Euler Problem 3
 
I keep getting an error but I think its a stupid mistake which I cannot find o.o just started so... any help is appreciated. Problem : The prime factors of 131...
[no replies]
How to use timer in traffic light that use sensors?
 
by using c++ windows form,how to use timer in traffic light that use sensors ,where in each cycle the time deffer between the traffic lights ..as you see here t...
[3 replies] Last: ah ok your using visual C, I don't think I can be much help, I do reco... (by SamuelAdams)
Code is not working
 
This code is supposed to find the remainder of a very large number, then show the number that was divided by the very large number. (only if the remainder is eq...
[4 replies] Last: Fixing line 19 as I said and line 17 as vlad said should work for you,... (by chucthanh)
C language
 
this is my question: how to make function which must calculate and return the sum of "m" members of this type: 1/(1*3)-1/(3*5)+1/(5*7)-...+-1/((2*m-1)*(2*m+1))....
[2 replies] Last: double Fun( unsigned m ); { double sum=1/(1*3)-1/(3*5)+1/(5*7)-...+-1... (by Awais Tahir)
Array 2D and pointer
 
Hi all, I have been stuck with wondering about the difference between double** px and double px . I thought they are the same (except for const qual...
[8 replies] Last: Oh yes, but my boss uses C (not C++), so I should use something meanin... (by chucthanh)
December 2012 Pages: 1... 1213141516... 65
  Archived months: [nov2012] [jan2013]

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