Beginners - February 2013 (Page 26)

Can a nested class inherit from base class?
Say I have class base { public: int i; class nested { }; }; If at some point in my code, I assign 45 to i. Is there a way for my nested class to have a...
Feb 19, 2013 at 3:14pm
[6 replies] Last: Well, I guess you can argue that there is something special about nest... (by Peter87)
by kraig9
Error trying to build
When I try to build this: //code // my first program in C++ #include <limits> #include <iostream> using namespace std; int main () { cout << "He...
Feb 19, 2013 at 3:04pm
[2 replies] Last: Are you sure the "error" comes from the compiler? Actually, I don't s... (by plexus)
Program has stopped working error at exit
My program runs fine until it exits, where it displays a Window's error that the program has stopped working. Could someone lead me in the right direction on ho...
Feb 19, 2013 at 2:57pm
[5 replies] Last: You guys rock! Thanks for the help. Turns out I was deleting temp twic... (by lightspeedcbr)
by Pebble
Array
When i run the following program i get a pop-up telling me it has stopped working and to close the program. After changing various line's i still cant find th...
Feb 19, 2013 at 2:48pm
[4 replies] Last: Thank's Peter87. (by Pebble)
by bmac03
Almost got it to work issues with complier
I had rcast answer most of the issues with the code and a few other questions. Now if i could please get some assistance with my complier issue. He has fixed th...
Feb 19, 2013 at 2:14pm
[15 replies] Last: [code firstline=44] if (randNum1 < randNum2){ randNum1=tempNum; ... (by Chervil)
execute dll with parameters
Hello my Friends, ive got a question about handling with dlls. ive a special dll from a customer which contains a algorithm and i want to test this algorithm...
Feb 19, 2013 at 2:07pm
[1 reply] : You need to know the signature of the function you want to test in ord... (by AbstractionAnon)
How do I compile programs to create object files?
My question now is how do I create object files out of compiled cpp files? The book doesn't specify, and they don't get created when I run them. Do I just save ...
Feb 19, 2013 at 1:23pm
[2 replies] Last: Thank you it works now (by Tiger58)
[help]:pointers
#ifndef SLLIST_H #define SLLIST_H struct Node { int info; Node *link; }; class SLList { public: SLList(); void addFirst(int x); void addLas...
Feb 19, 2013 at 10:16am
[2 replies] Last: It a structure pointer , so that we can attach n number of nodes to it... (by nigga me)
Reversing a string help!!!!(it has to be something small) (1,2)
So I have created a palindrome function that lets the user input a word or sentence and tells them weather it is a palindrome or not. Now I have added an optio...
Feb 19, 2013 at 9:50am
[39 replies] Last: just kidding I got it, thank you again. (by bruntmjust)
Downloading C++ Compiler
Hi I am a complete beginner to C++. I have a Mac and I was wondering is how I would program C++. I know I could write out code in a simple text edit program, bu...
Feb 19, 2013 at 7:39am
[2 replies] Last: @kaitrias: Xcode is a text editor with builtin compiler ( == IDE ) -> ... (by Fransje)
Calling a method of one class in the method of another.
I'm trying to write a program, which is split into two parts, and before to finish the first part I need write two classes, each consisting of a .h file and a ....
Feb 19, 2013 at 7:37am
[5 replies] Last: In SalesDB.cpp , Declare an array which is of type Seller class say , ... (by nigga me)
by rcast
Accepting as input, IP addresses. (1,2)
I'm trying to accept IP addresses in their dot notation form. However, I'm having trouble trying to store them in anything other then a string variable, and ret...
Feb 19, 2013 at 7:09am
[29 replies] Last: The results for the conversion of the dotted notation of the given IP ... (by chroma)
by scar95
Generating a random number with a set non-zero minimum
Hey guys, I have to create a program that guesses the user's age. The user has to enter X, if the computer guessed the right age. If they are younger than th...
Feb 19, 2013 at 6:58am
[3 replies] Last: it will be (rand() % (128 - g1 + 1)) + g1 I have added a couple of p... (by MiiNiPaa)
Cannot use string - am using #include<string>
Hello. I am trying to make a simple little game in c++ for practice purposes. However, I cannot use the string class for reasons I am unable to determine. He...
Feb 19, 2013 at 6:57am
[2 replies] Last: Thank you very much. I did the latter, and it worked. The help is grea... (by Muffinette)
Crashing on run
I'm working on an exercise that the user puts in doubles one just for as long as they want and if it's the lowest so far, it tells you. If it's the highest so f...
Feb 19, 2013 at 6:05am
[3 replies] Last: I ran this in my complier as I'm having issues with my code as well. M... (by bmac03)
Your opinion
I have been working on this for a while now and its about done, but I just want to make sure this is the best way of doing this. Its a dice-game program roll...
Feb 19, 2013 at 6:02am
[1 reply] : Make roll method take an int: number of dices to be rolled. Use dynami... (by MiiNiPaa)
Using recursive divide and conquer algorithm
I am having trouble getting started on a data structures book problem. I have to recursively divide an array down to base case 4. I am not really sure how to re...
Feb 19, 2013 at 5:52am
[1 reply] : What did you mean by "divide array by four"? Divide each element in ar... (by MiiNiPaa)
Vertical tab '\v'
I'm trying to make a vertical tab using cout << "\v"; but all I get is a wierd looking char in the consol. How do I make a vertical tab? Everywhere I look ...
Feb 19, 2013 at 5:21am
[3 replies] Last: This might be a dumb question... but can't you just print a bunch of n... (by Disch)
bubble sort with pointers.
So, as part of an excercise, we're writing programs where the only parameters allowed are pointers. I cannot get this bubble sort to work using pointers, howeve...
Feb 19, 2013 at 5:14am
[1 reply] : You have quite a few problems. First you are overusing the new/delete ... (by jlb)
Please help
Hello forum. I am new to programming, I understand most of the concepts but sometimes get stuck at some easy problems. Here I need to ask user to manually typ...
Feb 19, 2013 at 5:08am
[6 replies] Last: Thank you so much i really appreciate that i will take note of everyth... (by antek83)
February 2013 Pages: 1... 2425262728... 67
  Archived months: [jan2013] [mar2013]

This is an archived page. To post a new message, go to the current page.
Registered users can post in this forum.