Beginners - August 2013 (Page 37)

Help Passing Arrays to Functions
 
Guys, this is kicking my butt. I'm having a rough time learning passing to functions. Right now here's the situation.... I want to enter the string array wor...
[7 replies] Last: Thanks man. I've been learning c++ on the side for about 5 weeks now ... (by TheCarpetPissers)
Before I sit down and learn C++
 
Hello programmers. I'm a veteran PHP/HTML/CSS... programmer, and I'm looking to make a program that runs on the computer to compliment the functionality of m...
[11 replies] Last: Codeez the thing with web based applications is that they do not have ... (by stras77)
what is overloading in c++ ???
 
what is overloading in c++ ???
[5 replies] Last: thanks a lot! (by reiki222)
arrays in c++ ???
 
what is array in c++ and what it does???
[1 reply] : http://www.cplusplus.com/doc/tutorial/arrays/ (by closed account z05DSL3A)
Why the "{" In this piece of code needed
 
after the declaration of the main function wi see "{" why is needed? // classes example #include <iostream> using namespace std; class CRectangle { ...
[4 replies] Last: im sry i just got used to that int main has "{" after new line lol (by Rakanoth)
by Dineo
Editing Files
 
Hey everyone. Im trying to do a program that generates junk mail. I need help editing my file. Please help where you can. The file 'letter' is the one with th...
[no replies]
My password check function isn't working so I clearly did something wrong
 
So like I said I made a function to check the password and for some reason it won't work when I put in the string for x nothing happens the program just ends ...
[4 replies] Last: x = "blah"; while (x != "blah") { // this will not execute sinc... (by nvrmnd)
by UnS3eN
Where is this coming from?
 
I'm trying to write a program to convert a user's integer into English text (Jumping into C++ Chapter 7 task). While testing out a piece of code I've already w...
[9 replies] Last: oh, crap... got the hard part out, but missed the little thing... I sh... (by UnS3eN)
Is it possible? Function with specific parameter type but dependable return type
 
I am trying to create a function that has a specific parameter type but changeable return type. The pseudo-code might look like this: flexible_return_t...
[3 replies] Last: thanks for the replies! @Cubbi what i'm trying to do is that i have a... (by Reverse Professional)
Method Syntax Question
 
Hello, I have been learning C++ over the last few months and all the tutorials i go through declare methods like this: returnType MethodName(paramType1 pa...
[2 replies] Last: Thank you, answered my question. (by CppBeginner01)
scanf() doesn't read whitespaces?
 
This was my input: Rie Ishida but the only one that is saved into the variable nme is Rie. Doesn't scanf() get the whole string until the null terminator? I...
[15 replies] Last: Thanks, I'm using Code::Blocks + MingGW right now. And I was able to f... (by riechan)
Pointers and polymorphism?
 
Hi, I feel very confused right now: I think I'm really rusty right now after summer... What am I thinking wrongly here? I thought the whole point of inherite...
[4 replies] Last: A simplified explanation of polymorphism: The object's actual type is... (by masterchef)
Loop to calculate tax
 
There are certain tax ranges, for example, 0 - 10,000 gets taxed at 20%, 10,000-20,000 gets taxed at 25%, etc. So if your income was 15,000, the first 10,000 is...
[2 replies] Last: I have wrote a c++ program similar to it but without arrays, I just us... (by jkevin)
Strings and Ints Pointer Help
 
I put some code below to show exactly what I'm stumped with. After the first time the loop in the function getNames happens, I can no longer type in a name. It ...
[1 reply] : cin >> number ; leaves a newline in the stream which getline() in... (by coder777)
undefined reference to add(int x, int y) ???
 
undefined reference while trying to forward declear a function (add int x , int y ).... please help , thanks compiler is dev c++ #include <cstdlib> #inc...
[10 replies] Last: thanks , it finally worked (by reiki222)
by Smac89
Re-pointing pointers
 
I have an avl tree data structure which I am working on. The part I need help with is the left_rotate function. After it runs, the tree does not have some of it...
[6 replies] Last: Delete is probably the most complicated #include <new> #include "AV... (by Smac89)
by jkevin
Reversing element of an array
 
Can someone explain me this piece of code? it's supposed to reverse the element of an array. I dont understand the loop thats being used. for(i = 0,j = n - ...
[3 replies] Last: Got it !! thanks guys!!! (by jkevin)
Passing a command line argument into a regex expression
 
I am trying to get a user to enter a basic regex expression to search for files of a specific extension. So they would enters something like this: ".(docx...
[3 replies] Last: Entering a regular expression as a command-line argument is almost alw... (by Duthomhas)
My functions are messed up and won't work as I thought it would
 
My program would have 3 food options in 3 different functions but put into 1 function to check for what the variable x is and then output the cout in one of the...
[2 replies] Last: I understand what I did wrong now thanks a lot! (by darthaq)
My function is messed up slightly
 
my program was just to test a function about the song "99 bottles of bear on the wall" which runs correctly but at the end when it says "0 bottles of bear on th...
[4 replies] Last: Oh yeah I just noticed lol thanks (by darthaq)
August 2013 Pages: 1... 3536373839... 51
  Archived months: [jul2013] [sep2013]

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