Beginners - November 2012 (Page 28)

Problem with executing classes
 
I've been at this for hours, but I just can't seem to get a class function to execute. The code entails a lot more, but as of know I am just trying to get the c...
[1 reply] : What behaviour are you seeing at the moment? What behaviour are you e... (by MikeyBoy)
Passing pointers
 
Hi, I'm making a wrapper class around SQLite, and I don't understand something about passing pointers. The function to open a connection is this int...
[2 replies] Last: You're right, thank you, sir (by Zelorra)
Reducing fractions
 
so I have looked on several forms but I am just not understanding how i can implement Euclid's Algoritm into my code. This is Euclid's Algoritm. int gcd( i...
[2 replies] Last: And if I undersrand this correctly then a is my numerator and b is my ... (by OLittleO)
code plz
 
write a program that inputs a five-digit number, separates the number into its individual digits and prints the digits separated from one another by three space...
[3 replies] Last: @Moschops thanks i got the answer from that link.. I was looking for ... (by dipen45)
passing 2d-arrays to a function with the dimensions
 
Hi, I am writing a program where I want the function to take several 1d arrays and one 2d array as arguments. The sizes of these array also need to be argume...
[3 replies] Last: you write something like int A; and once you read the users input... (by Darkmaster)
scratching my head, I know it's gotta be close
 
I am trying to figure out where my mistake is. My function is not returning the proper value for x. I am trying to check the password input for digits as a requ...
[4 replies] Last: @Zhuge & Incis B: Thank you both very much for your help. Sometimes it... (by twelvevoltguy)
Printing ASCII codes, and some more problem
 
I have a few questions that I would like to address altogether: 1. Is there a proper way to print ASCII codes? I saw on other forums that they used this syntax...
[4 replies] Last: [quote=indojo24]If I print something like a poundsterling symbol, what... (by Chervil)
function_name could not be resolved
 
Hi! I'm trying to call a function of another class and it is throwing an error: function_name could not be resolved (as in the line in bold) this may be a rea...
[6 replies] Last: Thanks and sorry for not using the tags. (by noisycoder)
by myoni
template problem
 
Hi I've template class that may get string and integer, if I'm using it with int it's fine but if I use it with string I get an error, because string need ...
[5 replies] Last: It's better to initialize key in the constructor initialization list. ... (by Peter87)
Unused variable: Arrays and Output text
 
I guess its that time of year everyones working on arrays and file outputs. So here is my problem. Eclipse is telling me that I have unused variable "i" in line...
[1 reply] : I think there is very little wrong here. The unused variable isn't a ... (by Chervil)
Operator overloading produces bad pointers
 
Hello all. I'm working on creating a binary search tree that is stored in an array for my CS class. However, I've hit a hiccup that I just cannot get past no ...
[3 replies] Last: Your code sets leaf to false when one of the child nodes becomes occup... (by cire)
Bracketing Search
 
Hey guys so this is my first post! When I was doing the bracketing search problem from this page: http://cplusplus.com/forum/articles/12974/, I ran into trou...
[2 replies] Last: Cool that worked! (by bickelz)
First time using ifstream
 
Hi I need a bit of help writing a program that takes inputs from the int main, and writes them into a file password.txt. I am having issues, however, when I am ...
[3 replies] Last: Alright I tried your edits, as this is what password.txt looks like af... (by Merriak)
Date Validation Function
 
So I'm writing an assignment for class that needs a date validation function of sorts. The user is supposed to enter a calendar date in the form mm/dd/yy. I hav...
[4 replies] Last: gamermonk, first thing is to create a design of what the program is to... (by Incis B)
by sephrn
Nested Switch Statements
 
The assignment is to output the months of the year depending on the first, second, and third character from the user. Everything seems to run fine except for ca...
[3 replies] Last: It solved ! (by Aksan Akmal)
by dkjdod
Help with converting from value to letter
 
I need to be able to convert from int asci value to char letters. . I wrote this function, but it tells me it is an invalid conversion (even though I don't thin...
[3 replies] Last: Got it working. Thanks! (by dkjdod)
class and functions help
 
help with classes I need get these denominators to multiply and numerators as well and for some reason the numerator is switched with the denominator and the ot...
[3 replies] Last: here was the problem fraction fraction::MultipliedBy(fraction f... (by OLittleO)
Can you not
 
Do this #include <iostream> #include <string> #include <fstream> #include <iomanip> using namespace std; const int SIZE = 10; //structure struct inf...
[7 replies] Last: Actually got it. It is becaue of the input an inital getting in the wa... (by jlillie89)
Help with a basic arrays problem
 
fixt
[1 reply] : I don't see a question. Is there some part of the assignment you are h... (by Zhuge)
Learning structures
 
The structures are new to me. I'm just trying read from a file right now. This is my code I keep getting C2679 Error. Although I read about it I can't seem to r...
[2 replies] Last: I thought it would output like an array. I don't know, thanks though. (by jlillie89)
November 2012 Pages: 1... 2627282930... 75
  Archived months: [oct2012] [dec2012]

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