Beginners - September 2012 (Page 47)

program not updating
 
I am a total noob having a problem with my program not updating after adding lines of code. It was updating just fine but then stopped when I moved a cout stat...
[2 replies] Last: Could you give us the code? (by DesiredNote)
by iky
program isnt building??
 
hi. i am having trouble running a program. i save it using .cpp and i build it but it doesnt build. it doesnt give me any errors and when i try to run it says "...
[8 replies] Last: Have u compiled code before with code::blocks ? Try to compile with Bo... (by soranz)
by khal
Operator overloading
 
Hi, I know to overload the operator you write int & operator (int x){ .... } I was wondering how to do operator int & operator (int x , int y){ ...
[10 replies] Last: Thanks a lot guys. Especially Disch It turned out I had another error ... (by khal)
Dynamic Array Class
 
Hi! I'm making a dynamic array class for an exercise but I'm having some trouble with my code. I'm getting something like 'there might be a corruption in the he...
[2 replies] Last: Thanks! One question though, if I don't delete mData, then how do I f... (by caladan21ph)
while loop
 
How can I add a while loop to this code, so it can continue then adding some code to make it stop when I command it to? #include <iostream> using namespace st...
[8 replies] Last: If I helped, I'm glad I did. Good luck in C++! (I wish someone would ... (by samrux)
by iky
printing??
 
hi. i am using code blocks on a mac and im having trouble printing my program. when i press print it it doesnt print. and i want to make the font size bigger of...
[5 replies] Last: thanks (by iky)
by janp3
Buffer Overrun Question
 
Good day everyone, Could anyone explain to me why a buffer overrun does not happen here? The char word was defined to use only 4 characters but later on you...
[2 replies] Last: Thanks Duoas. It helps. I understand your point. (by janp3)
by yatici
_pow(float x, float y)
 
how can I do this? It is easy with the integer powers with recursion but how can I get 2^(0.125) for example. I don't want to use cmath
[2 replies] Last: a^b = c b ln(a) = ln(c) exp( b ln(a) ) = c You could use Taylor for ... (by ne555)
Segmentation Error
 
I am getting this as an error message: Please enter file name: file.txt File is open. Number of Vowel: 30 Number of Consonants: 1003 Segmentation Fault...
[4 replies] Last: [quote=airpan] "Oh - how do I fix it? Suggestions?" Use a standard c... (by closed account zb0S216C)
by Aceix
Why can't I...
 
Is it really possible to do this... for(int i=0;i<no_of_people_to_add;i++) { node *temp =new node; } Where: no_of_people_to_add is an in...
[4 replies] Last: Of std::vector ? Sure: #include <vector> int main() { std::ve... (by closed account zb0S216C)
by ilker
random matrix generator - URGENT
 
Hi, I wrote a function to generate a random matrix of 0 and 1's. When I run the program by F5 program always generates matrix of all ones. However, ıf I go thr...
[2 replies] Last: Thank you very much. This helped :) (by ilker)
Passing Value to function
 
Could anyone tell me why I am getting such weird numbers passed to my function? Here is the code. #include <iostream> #include <stdio.h> using namespace...
[6 replies] Last: Block editor? I did not know that. Ok, I will look into that. (by kyle maddisson)
by emk0
Several integers at one place
 
Hi, I am a complete beginner, i stumbled upon the following exercise but i am having difficulties solving it. It is pretty basic, in one file solve the followi...
[1 reply] : For Runexample1, float can store only 5 decimal places, whiles double ... (by Aceix)
Correct syntax for array of structs?
 
I can't seem to find a straight answer on this. In my book it says to declare and array of struct like so: struct Results { string words; ...
[9 replies] Last: @xhtmlx DUH DUH DUH. I get it now. Thank you for pointing out the pai... (by badkaykay)
Operator Overload Confusion
 
I am new to the whole 'Operator Overload' world. I am attempting to overload the << operator but I'm unsure how to implement it properly. I have written a decl...
[6 replies] Last: Thanks! It works. I appreciate all the help given! (by apeachaday)
code not working
 
here is what my code should do: A perfect number is a number for which the sum of its proper divisors is exactly equal to the number. For example, the sum of...
[2 replies] Last: thank you. it is solved now. for someone who's interested i added if... (by gelatine)
Displaying Pattern
 
I'm trying to come up with a program that will display the following pattern with a loop: + ++ +++ ++++ +++++ I wrote something that works, but I feel...
[2 replies] Last: Thank you! Your solution is much better. (by arlam110)
Passing Input File into Parallel Arrays
 
Hello, I am having trouble passing a file into parallel arrays. Based on the code below, I get a bunch of jumbled numbers on my cout screen that don't even s...
[2 replies] Last: Haha, I'm an idiot. I had the text file ONE folder above and didn't ev... (by pattilupwned)
Recursion- Help to This Newbie
 
I am trying to learn recursion. It seems easier but I have one problem that I need to learn. I am trying to write function that adds 10 linked list to a list. T...
[1 reply] : Bump (by agulerer)
No unique final overrider with virtual base class
 
Hi. I'm having some trouble doing an exercise from a book. I'll paste the classes specification: // persons.h -- Person and derived classes definition (for ...
[2 replies] Last: Thanks! (by Kurospidey)
September 2012 Pages: 1... 4546474849... 62
  Archived months: [aug2012] [oct2012]

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