Beginners - May 2010 (Page 8)

using loops
 
So I am trying to write a program that will display the number of days since 1/1/1753. I am not entirely sure how to do this other that to use a loop which I am...
[10 replies] Last: That just goes to show you don't need a loop there. I'm pretty sure... (by Albatross)
by cyeb
Nth Prime
 
All right, I plan on turning this into a sieve, but for now, not even finding the Nth prime works. :( Here's my code: #include "iostream" using namesp...
[5 replies] Last: Thank you! Now it works, except instead of finding the Nth prime, it ... (by cyeb)
For vs while loops
 
I'm still quite a noob, and I've been reading a bit on learncpp.com and just completed a semester of C++ in college and I'm a bit confused about the specific ad...
[12 replies] Last: As Dufresene has already pointed at, while and for loops are virtually... (by neeko)
by neeko
Pointer to a pointer to an array?
 
Help me understand this line of code. ClassType** pp = new (ClassType*) ; Is saying this is a pointer to a pointer that points to a dynamically allocated...
[2 replies] Last: Alright. This is actually taken from an assignment, in which i have to... (by neeko)
Yahtzee
 
I am or I am trying to create a Yahtzee game in c++ and I need help. I have my code to roll 5 dice already but I need help going from there. Here is what this i...
[no replies]
ARRAY OF OBJECTS
 
Hello everyone,please i need help with this question.I have already written my code, its compiling but the answers are totally wrong, i dont know what the probl...
[2 replies] Last: thanks (by shani09)
overloading == and static int trouble
 
im trying to compare to objects of the same class by overloading the == operator. inside the overloading function i compare the two objects unique id's. The uni...
[10 replies] Last: @Disch - brilliant thanks, I finally understand static! I thought they... (by alMarshy)
by Adeon
My Textbased RPG. (1,2)
 
I'm very new to c++, but I kind of know enough so I started making a text based game just so I could test ideas and see exactly how things work together. Right ...
[30 replies] Last: Title changed. Now I am running into a problem changing state effects ... (by Adeon)
C++ Documentation
 
Hi all, i started programming with Java, a language with which you can download the documentation for its APi. Is there a downloadable documentation for the ...
[9 replies] Last: @chrisname Free books, hehe ;) Such as the one released for free... (by AngelHoof)
Array example
 
Hi, I have written some comments in this source code which I dont understand much. Please correct me. // arrays example #include <iostream> using namespac...
[2 replies] Last: This: result += billy ; is a shorthand way of writing this result =... (by Galik)
URGENT=How to delete an character array?
 
my school project is to make a personal library. it will show me 5 catergories,math,physics,chemistry and C++ and EXIT. inside each catergories,it contains 5 ...
[4 replies] Last: Please use [co de] [/co de] tags. And try to properly write the w... (by RedX)
cctype library
 
hi everyone, can you help me with this code: #include <iostream> #include <cctype> using namespace std; int main() { char ch; cin>>ch; ...
[2 replies] Last: thank you! there is another code: int main() { char ch; ... (by richardsterrace)
by kulfi
error
 
unresolved external symbol _wmain referenced in function ___tmainCRTStartup MSVCRTD.lib(wcrtexe.obj) What this error means THanks
[1 reply] : It means you're compiling a Windows application while your code is for... (by helios)
by smteng
Separate Compilation w/Linked Lists
 
Hi, I'm getting an error message when I try to compile a header file. My list class (which is defined in one header file) contains a member variable that is a...
[2 replies] Last: thanks for the answer. i'm still a little unclear. If the class defin... (by smteng)
by haim
Remove duplicates from an array
 
Hi, I got a problem with removing duplicate ints from an array. Problem is that user will type ints as many as he or she can. The program need to print out un...
[1 reply] : Hello! From 14 line: cout<< numbs << " "; for (int i = 1; i... (by screw)
by timmeh
Looping Through a Vector
 
I picked up on the STL containers fairly quickly after starting to learn C++, one thing I've never really understood the purpose of is iterators. Until very re...
[2 replies] Last: Awesome resource, thanks! (by timmeh)
Same function runs every time
 
Every time I run this program, the function Amaj() runs, no matter what I enter. I can't figure out what I've done wrong here, though I'm sure it's something ...
[3 replies] Last: Ah, ok, thanks. I'll try these. Ok, that worked. Thanks ya'll. (by DeadH34d)
I don't understand my compiler
 
Why do I keep getting compiler errors when I try compiling this... int main (){ //making memory allocations for input and output arrays char input ; ...
[2 replies] Last: Welcome to the forum, both of you. Since you're using C++, why not ... (by Albatross)
by liero
Having some trouble with a Binary Search Tree & template class
 
I'm having a bit of trouble figuring out how to solve this one, so any help is appreciated. I believe the problem might be something to do with this line in ...
[3 replies] Last: Hmm... I didn't realise that. Thanks for replying, and for the tip. Wi... (by liero)
by kiqbal
char string to system string on Form1.h
 
Hello. I had a question regarding strings with GUIs (Form1.h) How do you output a string (char) to a textbox on a gui? char sample = { 'k', 'a', 'i'...
[3 replies] Last: Then you'll have to give more details. (by helios)
May 2010 Pages: 1... 678910... 33
  Archived months: [apr2010] [jun2010]

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