Beginners (Page 4)

by r0bot
loop for and pow() function
 
Dear C++ forum. I wish to make a series of numbers in a loop for , where each subsequent number equ...
[3 replies] Last: I got it! thanks a lot! (by r0bot)
Why use friends?
 
I don't see the point in using friends in classes, they are not members, their scope is outside of t...
[2 replies] Last: A class e.g School: has member data students and member functions teac... (by shadowCODE)
looping help
 
Hi, I've written the code below and everything works fine, but my question is how can I loop everyth...
[2 replies] Last: Something like this? bool userChoice = false; bool valid... (by Newie0001)
Program won't run, can't figure out what's wrong...
 
Hi I am C++ student, and have a test coming up tomorrow, and while writing this program I got stuck,...
[7 replies] Last: Thanks a lot dude! what a silly mistake I made. -_- (by matfizkenqim)
by leo255
Growable String Array - Getting Seg Fault
 
Hi all, As stated in the title, I'm just trying to write a class with a growable string array. I'm ...
[2 replies] Last: Thanks!!! (by leo255)
Search and replace
 
How would I be able to search for a number and change it in a text file? I looked through many sites...
[3 replies] Last: int n1, n2; string str; get n1; get str; get n2; n2 += 2; write n... (by anup30)
New to C++, have no idea what I am doing
 
So, I'm really sorry if this is the wrong place, or a bad question, I am new here, and to c++. In my...
[3 replies] Last: I think the best way to tackle this is to look for patterns. Consider ... (by deathslice)
Next step in this program
 
So I've decided that the next program that I'm going to make is a traditional checkered board game. ...
[5 replies] Last: I think I much rather use loops seeing as though as this is a big grid... (by deathslice)
Random program crashes
 
I'm trying to figure out why this program crashes sometimes but then runs successfully other times. ...
[2 replies] Last: You're right, it does! Thanks! (by tylradm5)
by zanne
Need help with minimum spanning tree
 
I need to start program that counts from top branch wich is: 1, this program counts from 0, could a...
[1 reply] : I'm confused. It sounds to me like you are having trouble because your... (by Duoas)
by wolfv
polymorphism with template<>
 
I need help solving a compile error in the following code. I am trying to set an array size at compi...
[2 replies] Last: That was it! I always miss the simple things when it gets complicated... (by wolfv)
function called by main
 
Hi, I'm working on this program and I wanted to know if I was going in the right direction or not. H...
[6 replies] Last: Thanks for your help :) (by Newie0001)
Randomly spawning on a map
 
Hi guys, I've been trying to get this piece of code to work but I'm hitting a wall I don't want to ...
[7 replies] Last: i'm also still learning. it is one of those things that grows arms and... (by rafae11)
REALLY confused with class
 
Hello. I am learning about classes and I understand a bit on how they work: like functions, except i...
[19 replies] Last: Yup, You're on the right track, given the assignment. Note that in the... (by dhayden)
Help please!
 
I just now started to learn this and i dont know why i cant get it to work please help //main.cpp...
[3 replies] Last: If his topic is done CLOSE THE TOPIC ! (by jasonwynn10)
Want to output results from a Function
 
HI guys, after outputting the Function.. Its just after the switch Function List : //Describes, b...
[6 replies] Last: Cool, thanks for the pointers:) (by HarrySyson)
Random Number Gen. w/ Math Equations
 
I'm having many problems with my Homework . . I'm trying to make a code that generates 10 Random Num...
[1 reply] : (1) Use functions. Put all that stuff that fills Smith with random ... (by Duoas)
Does not name a type error
 
I'm using vectors in a class that creates different attributes for different types of units and I'm ...
[7 replies] Last: Now that those technical issues are fixed I can focus on setting each ... (by deathslice)
using std::shared_ptr
 
Hello, I'd like to have a shared_ptr type object in a class , and one of the class' member fun...
[8 replies] Last: No, but you can write one yourself. For example, implementation for si... (by MiiNiPaa)
by AYQ
why does this if-function without else does not work
 
(Code was written in Visual Studio Express) The following function is called multiple times in a wh...
[4 replies] Last: Without the `else' you will be always executing the decrement. If the ... (by ne555)
Pages: 123456... 109
  Archived months: [oct2014]

Cannot post in this page. To post a new message, go to the first page.