Beginners - May 2010 (Page 14)

prime numbers program
 
I am having trouble making a prime numbers program so I wondered if anyone here could help... #include <iostream> #include <cstdio> using namespace std; ...
[9 replies] Last: ok il try that later i dont have time at the moment (by burrahobbit95)
How to put functions in a header file
 
I 'm new in C++ : I wanted to know what is the difference between header file and library and how i can make functions and save them like "cout" and "cin" i...
[2 replies] Last: thanks very much it really helped me a lot :) (by mido92mashakel)
what's wrong with this bubble sort?
 
Hi, I wrote this code for a bubble sort, and I think it's correct but doesn't work properly, the output is wrong especially when the input is negative numbers. ...
[2 replies] Last: thanks, I forgot (by epezhman)
Learning windows programming
 
I am a beginner c++ programmer. I just want to learn basics about windows programming. I know nothing about windows programming. I hope for help.
[1 reply] : If you mean windows programing as in .NET programming, then here's a g... (by Albatross)
by Ishtar
double precision confusion
 
Hello everyone My program needs to accurately average various angles, to do this I need to express PI to at least 8 decimal places. The following code should...
[2 replies] Last: Hi Rajroshi Many thanks for your help. This did indeed fix my prob... (by Ishtar)
by lassir
What means const Socket&
 
I have now two days spend thinking and reseaching what means const Socket& or Socket&. especially this & character end of the name.
[1 reply] : http://www.cplusplus.com/doc/tutorial/pointers/ To speak in very si... (by RedX)
by name
Can't resolve complexly mutually dependent classes
 
Hello, can't quite see where to go with this. I can't change A because it's part of a library. class A { public: void foo() {[...]} }; class C; ...
[2 replies] Last: Ah, thank you. I'm an idiot. I suppose another way would be this: c... (by name)
Have I misunderstood cin.clear() ?
 
Hi, I've just started learning c++ and I've been playing with cin/cout to get me started. I wanted to write some code that asks the user to enter an integ...
[1 reply] : cin.clear() does not empty the buffer, it restets any error flags on... (by closed account z05DSL3A)
by Adeon
Writing libraries, why and how?
 
Might be a dumb question, but from what I have searched on google and read in some of the books I have, I can't seem to find anything telling me anything about ...
[no replies]
by vivyz
Unable to run my program on other windows
 
I am a complete beginner in C++ programming and I am working on a project on Visual C++ 2008 Express with a windows 7 machine. I have been able to run my execut...
[2 replies] Last: Try setting the MFC-linkage to static... that may work also (even if Y... (by Incubbus)
multi-D arrays as instance variables
 
Hello there, this is Ricardo, I'm also new to this forum. I have been studying C++ for several months now, and lately started learning about arrays in detail. I...
[5 replies] Last: Wow, my book doesn't explain this so clearly! So in conclusion, there... (by rdangelo)
Text and Background Colors
 
So i'm trying to figure out how to make it so the user can assign the color for background and text color but i'm pretty confused. I read an article http://ww...
[no replies]
Arrays
 
If I had two arrays: string sASuits = {"Clubs", "Diamonds", "Hearts", "Spades"}; int iARanks = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13}; 1 through 13 ...
[5 replies] Last: Why not use a struct to define a card and then just have the deck be a... (by kempofighter)
How to do I include Garbage Collection?
 
#include <string> #include <iostream> using namespace std; int main () { int heads =0, tails = 0; int coin; ...
[2 replies] Last: Thanx Revised code... #include <string> #include <iostream> #inc... (by goldenchild731)
Why doesn't this for loop work? Checking for uppercase character in password.
 
If the first letter of my password is capital it passes the "At least one capital in password" requirement. But if any other letter in the password is capita...
[6 replies] Last: Nice , thanks for all the help, in class today my teacher helped me so... (by whitesnow)
Console Sound Output
 
How can one play mp3, midi, and ogg files in a console application? PlaySoundA() works very well with .wav files, but it doesn't seem to work on anything else....
[3 replies] Last: Ever considered fmod? http://www.fmod.org/ (by Kangaroux)
Recursion Stack Overflow...
 
This code: void BST::print( Node* n ) { //print the tree here if ( n == NULL ) return; //base case //in order print print(n->left); n->_hs->pr...
[4 replies] Last: I changed my calls to add to use the new operator when creating the no... (by closed account Lv0f92yv)
Project Layout/Visualization programs
 
Hey, first post here. I've recently begun a relatively large project and I am looking for a program that can help me organize a large amount of classes into ...
[1 reply] : This is a screenshot from Visual C++ 2008 (you should consider using i... (by Kangaroux)
User input to operator
 
I want to know how to convert a user's imput into an operator. For example: "Enter an equation in the form of y = and using x's" User enters "y = x*x" code ...
[3 replies] Last: Looks good, didn't know of one. Thanks for following up. (by closed account Lv0f92yv)
by grayo
cout << 1 as double gives 0
 
So I made myself a simple little queue class of doubles that goes below. Surprisingly printinq it in relative order gives different output as absolute printing ...
[2 replies] Last: Aaah of course :) Thank you filipe, I must have been tired when I over... (by grayo)
May 2010 Pages: 1... 1213141516... 33
  Archived months: [apr2010] [jun2010]

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