Beginners - May 2013 (Page 29)

Template woes
 
Templates really really confuse me. I understand what they do, but in terms of implementing them I seem to get an unending parade of syntax errors. I'm w...
[8 replies] Last: When you write const int a = 1; int b = 2; Do you expect b to be a... (by Cubbi)
child object array as an argument for base function
 
Is it possible to pass an array of objects from a child class to a function in a base class? When I try this it gives me an error message, i guess the compiler...
[2 replies] Last: Yea I'm guessing the same thing. (by clarkkent)
Where to go from here?
 
I just finished watching all TheNewBoston's videos on c++: http://thenewboston.org/list.php?cat=16 and I now have a much better understanding of the basics ...
[4 replies] Last: A good way to learn new things is to do small/medium sized projects on... (by ModShop)
what is the output
 
What is the output 6 or 5 and why ? int number = 6; int x = 0; x = number--; cout << x << endl;
[6 replies] Last: Prefix vs suffis btw have you tried compiling it? (by giblit)
Should I follow this advice?
 
How I Learned to Stop Worrying and Make Everything virtual There is one small twist to overriding methods in C++ and it has to do with the keyword virtual. Onl...
[3 replies] Last: I just found a review for the book: This book has too many 5 star rat... (by AlitCandle)
Converting characters into integers
 
I need to convert a character to an integer, but it won't work. My array pfExpression has both numbers and characters....as such, it is a character array (it...
[4 replies] Last: Ohhhhhhhh, I see. I called the function before I defined it, like you... (by INeedAHero)
calculating sentences/words/syllables from a file opened with command line
 
So I just started programming and im working on a program that will calculate how many sentences/words/syllables are in a .txt file and i have to use comand lin...
[3 replies] Last: Cool! And yep -- a bit weird! :-( btw - for future ref. Being lazy ... (by andywestken)
One time Keyfile pad program help
 
I'm currently stuck at encrypting/decrypting a plaintext file using a keyfile that is made up from the creator and stored in the debug--> bin file location for ...
[2 replies] Last: Hi Aceix, Thank you for your reply. Sorry, I should have been more c... (by closed account LEwpfSEw)
by kabuki
Sorting Strings with Quicksort
 
How would I make this code work? Quicksort usually sort integers, but I want it to sort the lastname of the employees. #include <stdio.h> typedef stru...
[3 replies] Last: Thanks, I used strcmp to compare them and it worked. void qsort(EmpR... (by kabuki)
Getting 'unhandled exception' error for no apparent reason
 
Hi everyone. Hope you're having a terrific Thursday evening. So anyway I've been working on my C++-language project as of late and having come quite far into fl...
[13 replies] Last: Let's get a good look at the following line, shall we? b = rand() % d... (by rokomata)
I'd be glad if you can answer me this!
 
Write your question here. My question is this: How can I do "cin" without pressing "enter" after i entered something. for instance i have a menu. i want to cho...
[3 replies] Last: > How can I do "cin" without pressing "enter" Look for `raw input keyb... (by ne555)
by Tstan
Displays 0.00 instead of Correct Tax.
 
For some reason this code only displays 0.00 when it should display monthly tax! PLEASE HELP #include <iostream> #include <iomanip> using namespace st...
[6 replies] Last: when you send something to other function, it's not necessarily what y... (by Edward01)
by SamT
Arrays.
 
Hi everyone! I was wondering is someone was able to assist me with this question. I'm trying to find the sum of each row and find the largest sum. This question...
[2 replies] Last: Thanks so much, that really helped a lot! (by SamT)
by ECE07
OO vs Procedural Programming, Examples?
 
Hi, I was wondering if anyone can provide a link, or two sets of code, comparing object oriented programming with the use of classes vs. procedural. I understan...
[4 replies] Last: Object oriented programming is focusing on the data. The procedural pr... (by Zexd)
word length
 
TASK. How many words is in a given text.Print the word length. example: THIS IS A WORD display - text has 4 words. LENGTH OF WORD ARE 4-2-1-4 please c...
[17 replies] Last: Andy's right, there's no need to separate the string. You can use a fo... (by Vidminas)
system( ) not working
 
Write your question here. I recently got the latest version of dev c++, because I upgraded to windows 8. Now, the compiler won't recognize any system( ), like ...
[3 replies] Last: move the cursor position and then use '\r' unless you want to use just... (by giblit)
How to loop
 
Hi im new to c++! so basically i have made a simple calculator but i have no idea how to loop it to starting so users can use it again. so how do i loop this ca...
[4 replies] Last: Btw it might be better to use a switch instead of all those if/else if... (by giblit)
Rolling two dice - random
 
HELLO. Rolling two dice - random. Dice 1-6.rolling ends when the 10. executed. what can do?
[6 replies] Last: #include <iostream> // vhodno-izhodni ukazi #include <stdlib.h> //sta... (by cosa nostra)
Using loops to find min/max, arithmetic and geometric means
 
I'm working on the following code and our teacher has assigned us to use loops to find the above mentioned items. I'm having issues with my Visual Studios C++ c...
[14 replies] Last: When the user entera a non number into a integer variable the stream w... (by closed account 3qX21hU5)
Urgent Help
 
When I input 990 output prints as Nine Hundred Ninety Nine Zero. What is my mistake? #include <iostream> #include <string> using namespace std; void co...
[2 replies] Last: We're from St. Paul University Manila. CSIT students incoming 2nd year... (by setsu05)
May 2013 Pages: 1... 2728293031... 66
  Archived months: [apr2013] [jun2013]

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