General C++ Programming - June 2008 (Page 2)

searching a file
 
Thanks in advance, develop a program to search a test file for the number of occurrences of at least two words. Output from the program should be produced bo...
[1 reply] : Ok, so you've told us what your assignment is. How much progress hav... (by Faldrax)
Urgent- C++ classes
 
I have a problem about writing the cpp and main file given the header file as below to complete a C++ class definition The header file "speed_calc.h" is used...
[1 reply] : The questions you have look to be ones you should direct at your tutor... (by Faldrax)
Calling and editing a function in an exe
 
I am trying to send packets in an online game. What would be the best way to go about doing this, detouring the send packet function? I know where the function ...
[no replies]
by jrohde
Iterating through a vector of pointers to class objects
 
Hello, Essentially, this test program just creates a number of objects with different (x,y) positions and varying energy levels. Then I decrease each object...
[3 replies] Last: yes. But you're better off using a while loop while (vPtr != vecto... (by Zaita)
by shyn04
convert c++ to c
 
can anybody convert this c++ program to c..? #include<iostream.h> #include<conio.h> #include<stdlib.h> #include<math.h> #include<dos.h> double val=180;...
[1 reply] : i do it this way but the computation was not able to display.. i need... (by shyn04)
by Zeke
trying to learn enum
 
right now my main problem is that the program is not picking up on the fact that I initialized my enumerations. Now I barely understand anything about enum and ...
[2 replies] Last: Alright I guess that helps a bit, I'll try it that way. (by Zeke)
Dynamically increase array
 
I almost posted this in beginners, sorry if it's wrong... If been looking at a solution all day. The problem is as follows: I want to send network messages u...
[9 replies] Last: vector isn't the only STL container. A list, stack, queue all work equ... (by Zaita)
by lipune
c++
 
Hi to all,can u tell me what is the difference between a abstract class and interface class,where to use abstract class and where to use interface in ur project...
[1 reply] : No such thing as an "interface" in C++, This is a java term. An abstra... (by Zaita)
Function with const parameter...
 
I have a class Class1 with a single member private double a1 and the following two methods: double Class1::getA1() { return a1; } Class1 & Class1::me...
[2 replies] Last: thanks Faldrax, that's it, works now... (by mkralovic)
Fn. Called With Same Arguments' Values Many Time (Hw 2 reduce computation time)
 
My algorithms uses a function of the type ......... long double E(int x1, int x2, int x3, int x4, int x5) // x1..x5 start from 1 and go upto few thousand (...
[3 replies] Last: One option would be to create a struct to hold a set parameters and an... (by Faldrax)
by amnahh
shifting in a 2d array
 
Write a program for the following puzzle: Very often in fairs we come across a puzzle which contains numbered square pieces, which can be moved horizontally o...
[2 replies] Last: This can be done it two simple steps: 1.) Do it 2.) You are done! (by firedraco)
Overloading assignment operator
 
Hi, I have a simple string class, which is defined below: class String { public: char* str; }; I wanted to know if the assignment operator c...
[1 reply] : Hi. I have written a working example in my blog which explains what... (by maheshd13)
Nice Programe to print out numbers
 
I hope you find it nice. #include<iostream.h> void main() { int x; cout<<"This program is Giving you A nice show for your number Exampel:\nIf you enered n...
[2 replies] Last: its by borland C++ not Visual C++ (by ramishama)
Skinfeature GUI Development Toolkit source code
 
With its exclusive skin maker library, implemented as a standard Windows ActiveX control, skinfeature lets you design unique styles using creative special effec...
[no replies]
Error C2662 and C2664
 
I get two errors with MS VC++ 6 c/w Sp5 which I do not understand! The first error c2662 is on a set::clear command and the second, error c2664, is on the ...
[1 reply] : OK, I corrected the first error (C2662). I found the explication on... (by LeLorrain)
C to C++ arrays and back again
 
I've got a large library written in C that I'm writing C++ around. I've got a static C array defined in a header file #define REG_TABLE {{0x9C, 0xA1}, \...
[no replies]
fatal error LNK1104: cannot open file 'libboost_filesystem-vc80-mt-gd-1_35.lib'
 
H3y hi every1 please help me out i am Just creating a small program in c++, which is use to show all the content Of a directory .. i am Using BOOST LIBRARY beac...
[2 replies] Last: thanks for the reply ,yes i hav linked the correct library folder in ... (by munibsiddiqui)
Hangman Game
 
i have a text document with 10 words to guess. i have the code already read a random word from the file. then the user guesses a letter and it finds whether or ...
[1 reply] : First, include: #include <string> Try to create another string... (by psault)
Optimizing I/O when writing text file
 
Hello, I have been looking everywhere for some information on how to improve the output speed of large text files. Right now it takes ~3.25 minutes to write a ...
[3 replies] Last: Thank you both for your insight. Minimizing the frequency of the << o... (by CPlusplusdna)
[solved-ish] How do I convert to base type?
 
This is one that I've never quite "got". How do I assign a derived class type to its base class type? Concretely: I'm making myself a std::basic_strin...
[no replies]
June 2008 Pages: 1234... 6
  Archived months: [may2008] [jul2008]

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