General C++ Programming - February 2008 (Page 5)

overloading operator [ ]
 
Hi all! I'd like to overload operator [ ], but I don't know the sintax to do so. Suppose I have a class like: class myArray { int size; int a ;...
[2 replies] Last: make it inline as well. (by a n chatterjee)
a question regarding lists, pointers and iterators
 
Hello everyone! In my code, I have the following list: list <list <cg_node *> > where cg_node is a class of mine. So, to simpify, there is a list of lists...
[no replies]
Calculating with dates
 
Hi. Can someone recommend functions to calculate with dates? Thanks, Repentinus Actually, I have a code too, but it doesn't do it correctly: #inclu...
[3 replies] Last: The program above calculates the number of days between to dates.I ho... (by DimitriuS)
by EDB
Need Help - Concerning Structs, Functions, and Arrays
 
This is a simple homework assignment. I should know how to do this already because I passed intro to C++. But I guess I don't have the programmer's mindset beca...
[1 reply] : Your problem is that you've got a local declaration of "studentType st... (by muzhogg)
Classess within Classes
 
Hi everybody. I had recently joined B.Tech. Computer Science, and i am doing C++. I am facing problems while using classess within classes. Can somebody he...
[2 replies] Last: is that something related to inner classes ? like this : class... (by a n chatterjee)
[HTS fan] ??? on a ext. basic mission
 
http://www.hackthissite.org/missions/extbasic/1 this is the code supplied the goal is to overload the buffer void blah(char *str) { char lol ; strcpy(lol,...
[3 replies] Last: I just included an answer of 200+ characters. (by Sobo272)
Help needed with changing Memory Addresses
 
Hello, I'm both new to this forum and C++ coding in general. I'm trying to make a game trainer for my brother's games. I've managed to get the new values ...
[3 replies] Last: Thank you Anuj, About the dynamic addresses, I've heard that pointe... (by Stephengp)
Find String in C Plus Plus
 
I want to make a program of Account from user give input Id No. and Password and the program check whether the id exist or not if exist verify the password inpu...
[3 replies] Last: The "Execution_total_time.hpp" library's source code. #include<i... (by DimitriuS)
please help with this c++ program
 
Please help me with this program. It is supposed to determine the number of days between two dates inputted by the user while also taking into account leap year...
[2 replies] Last: It would be enough for me a simple "ThanK YoU",honestly. Look,this pr... (by DimitriuS)
How to read lines between two strings.
 
Hi; I have a configuration file like this: [log file directory] c:\prod\work\log [file list] c:\prod\data\ftp\file1.dat c:\prod\data\ftp\f...
[1 reply] : Try the Win32 API's private profile functions. (by Hotaru)
Need Help in C++
 
I have write the following code. Now I want help to update File. If user enters Withdrawal then the amount should be deducted and balance should be replaced in ...
[1 reply] : updating a file is not a easy thing, in native languages like c++, the... (by a n chatterjee)
by Ellie
Inheritance in a templated class
 
Hi, I am building a class structure where the classes are templated. Below is my base class, MapHolder.h: #ifndef MapHolder_h #define MapHolder_h #includ...
[1 reply] : It would be really good if u could tell which compiler are u using....... (by anuj142003)
Who wants to check out my first game?
 
Well, it's a text game, a console application. And does not have images, or animations. But this is my first game that I develop ( my other programs were appl...
[3 replies] Last: Thanks for checking it out. If someone wants the executable: http:/... (by cminusminus)
how to dynamically allocate memory for pointer type
 
Hi! Is it possible to dynamically allocate memory for POINTER type? If its possible, how?
[2 replies] Last: thanks man! (by jdstufu)
dynamic memory allocation problem using NEW
 
Hi :) I have a problem with the C++ dynamic memory allocation function NEW and DELETE. When I first used it, it worked but there are times when I run my p...
[2 replies] Last: Thank you man! I never noticed that! hahahah thank you :) (by jdstufu)
switch not working properly
 
My switch is not working properly with a program. The program is ignoring every "case" but not the default. Do you know what's the problem?? // switch.cpp...
[2 replies] Last: Thanks, it worked. :) (by cminusminus)
by Kenny2
Having some problems with different C++ compliers
 
I took a C++ class in my high school, and we used the compiler"Borlan C++ Builder" I think that's what it was called, anyways, I was doing good in it, and e...
[5 replies] Last: You could condense your code if you keep your dice sum in an array l... (by dolorx)
Help with my homework.(recursive program in c++)
 
Hi I have to do a program using recursion. I have 4 .txt files the first file F.txt has this: 1 2 3 4 $ A 5 6 $ B 7 the second file A.txt includes: 7 9 8 $ C...
[2 replies] Last: It seems that you need to write a function that is re-entrant, iterate... (by awhite1159)
Atoi function
 
Hello, I posted this code for a user who needed help on these forums. But I try this codes on my compiler, and it doesn't works. But I have tried that same d...
[2 replies] Last: I am not sure what the exact problem is but here is my guess of wha... (by dolorx)
i want to learn internet programming
 
hey everyone, finally decided to register here as i use C++ a lot, and i have a question :) I've been writing in C++ for over 5 years now and i've completed a v...
[2 replies] Last: If you want to do it in C++ then: If you are using Windows I recommen... (by chris)
February 2008 Pages: 1... 345
  Archived months: [jan2008] [mar2008]

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