Beginners - June 2012 (Page 25)

How should this be set up?
 
I am building a stack class on top of my list class. I can't do it to save my life. Here is my list class, so can someone show me how to combine the two. And...
[2 replies] Last: Thank you so much for responding! I will try that, thanks so much. C... (by vanllabean81)
Calling class function from my linked list data type
 
Hi, Im having a problem with the code below. First down here is a part of my linklist which consists out of a data type of class bunny which has its own ...
[4 replies] Last: Can you say what does the statement std::cout<<"\n"<<q->x.display(); m... (by vlad from moscow)
List Iterators (think it pertains to all iterators too)
 
What purpose are the <, <=, >, >= when comparing iterators? I looked them up on this page: http://www.cplusplus.com/reference/stl/list/operators/ , but I thin...
[1 reply] : These operators are defined for random access iterators. List iterator... (by vlad from moscow)
working with file
 
Hi In this code i should reverse the things that are in input.txt and put them in output.txt for example if in input i have 123 in out put should become 321 and...
[5 replies] Last: Thank you very much it works now (by Mohammad Zolfaghari)
by gift81
my knowledge of programming for you
 
Hello everyone. I offer my knowledge of programming (C, C++, C#, Java, Android, MS SQL, Oracle). write, call me via skype: igor_shpin
[3 replies] Last: Here's a problem for you, gift81: I am building a stack class on top ... (by vanllabean81)
by Obraza
Project Euler No. 3: Repeated primes in output
 
Hello all, first of all great site I've been lurking ever since I had an interest in C++ (not very long) but never posted here before so I'm not sure if this sh...
[4 replies] Last: Thanks for the responses everyone, yeah I realized that it's going to ... (by Obraza)
access or storage problem?
 
Any ideas why the final for loop is not displaying the values I'm trying to store at the respective locations? And as always any other feedback on how to improv...
[2 replies] Last: Thank you for finding the mistake, I was so focused on the last loop I... (by Phoolishness)
by blake
Multiple source files
 
I'm trying to create a program using multiple source files in CodeBlocks. Every time I run through the wizard I just get an error that says "The wizard could no...
[1 reply] : I've never run into that error with Code::Blocks, but if I did, I'd cr... (by Volatile Pulse)
Better way to copy a file and add commas?
 
I have been doing Project Euler problems lately and the one thing I've noticed a lot is they like using giant blocks of numbers in a lot of problems. I was goin...
[3 replies] Last: It transformed this: http://pastebin.com/RDrD3vkU Into this: http://p... (by Volatile Pulse)
Implementation/Header file question
 
I have an assignment to build a Stack class "on top of" a General List class I just made last week. Trouble is, the teacher tells us to do that as if I know wh...
[5 replies] Last: push_back is the general name used for containers. Another name would ... (by Volatile Pulse)
Static vs. Dynamic Libraries
 
I know Visual Studio comes with the projects, but I was wondering how you could create them by hand. I know the difference is a DLL can be swapped out after the...
[10 replies] Last: How about this one http://crasseux.com/books/ctutorial/Building-a-li... (by chipp)
Installing SDL - Trouble
 
Hi people I have a big problem: I want to learn SDL (thats not the problem ;) ), and therefore I installed SDL in Visual Studio 11, but it didn't work. Then ...
[1 reply] : The dev library comes with an html files that explains how to do this.... (by Moschops)
how to sort the duplicated alphabet into one,AA=A only?
 
/******************************************************************************* Your Task: Write a program that accepts a word as an input, and outputs ...
[3 replies] Last: I think that 'Y' is not a consonant. So you will have 19 consonants. ... (by vlad from moscow)
static int in header file is duplicated?
 
Hi, I stumbled upon a situation I don't understand, I'm learning C++ through Bruce Eckel's C++ book. In chapter 10, the 10th exercise is: "Prove that file...
[2 replies] Last: Aaah, I mixed up the two different meanings of "static", thanks, I get... (by Prestissimo)
by jorz
returning managed variable
 
Hi All, I would like to return a managed array from a class is this possible? or what would be an other good solution or should I return a pointer to a m...
[4 replies] Last: Hi there, As far as I know it's not possible to pass an array to a fu... (by closed account o3hC5Di1)
by jaded7
dynamic memory causing crashes
 
Hi, I'm currently a university student and I'm rather new to C / C++. The scope of my course which I have completed is on matlab, and C, otherwise I'd ask my le...
[7 replies] Last: ^ Nope, the c++ equivalent of malloc() is malloc() Also, LISP.... (by ne555)
C programming Basic 2
 
#include<stdio.h> #include<math.h> int main(x) { int y,z; y=-~x; z=printf("hi\r"); printf("%d",x = pow(z,y)); } output :- 9i Please explain how 'x' is ta...
[4 replies] Last: Please visit the Site [URL="http:\\contest.collectiva.in\training\Fund... (by collectiva)
by abbzi
What is the output ? ._.
 
this program really got me confused, what is the output???! #include <iostream> using namespace std; void function1(int &, int &); int function2(int &)...
[3 replies] Last: void main() That's not C++. Where did you get this? http://ideone.co... (by Moschops)
How to initialize object within another class
 
Here is a code: WEAPON: class WeaponType { }; class Swords : public WeaponType { }; PLAYER: class Player { public: WeaponType *weapon; ...
[1 reply] : It looks like class Plyer does not see the definition of class Swords.... (by vlad from moscow)
Help with filestreaming
 
Hey guys. My project is a reservation system. My problem is in filestreaming ( i think) . My objective that I can't figure out is to show that the cottage is re...
[1 reply] : And also. I can't view the available cottages that I reserved (by closed account 48CM4iN6)
June 2012 Pages: 1... 2324252627... 51
  Archived months: [may2012] [jul2012]

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