General C++ Programming - May 2010 (Page 21)

Weird Problem with array of vector <char *>
 
Hi everyone, I'm a moderately experienced C++ programmer and a network engineer. I’m having a weird problem with using an array of vector<char *>,...
[2 replies] Last: yes , you override the same buffer all the time.Besides you seemed to ... (by sysabod)
Defining class of rational numbers
 
I am trying to write a program that sets up a class for rational numbers. When i type in 15/-32 the output is -16/31 which is wrong.when i type 1/3+1/3 it gives...
[16 replies] Last: Do you know how to use your compiler for two files? One file? As fo... (by Albatross)
Power of complex number
 
I need to take a complex number to a non integer power in some code I am writing and was wondering if there was a library out there that was capable of doing th...
[2 replies] Last: Thank you for your response, I was able to solve it. Part of the reaso... (by FearTheCron)
Determining the value of a term in a series
 
hey, my teacher asks me to write a code that determines the value of the nth term ( the user will input the value of n ) in a series. The series is called Fibo...
[2 replies] Last: I have no idea how you would solve this using a nested for loop. A... (by Duthomhas)
How to save the text file in the unicode
 
Hi experts I want to know how to store the containts of the txt file to the unicode character please give reply Regards, ram
[5 replies] Last: Ah, then first convert your string to a unicode representation and the... (by Duthomhas)
by jum1
getline
 
Hi, Im experiencing a strange problem, I was developping on linux using g++ and I couldnt believe there was an error in my code. I then compiled my program wi...
[1 reply] : Assuming that "line" is a std::string, you don't do any evil things wi... (by imi)
how to convert a char * string to an unsigned char* string?
 
how to convert a char * string to an unsigned char * string?
[2 replies] Last: jeez that simply worked... (by unregistered)
Templates and specific base class
 
Hi, I'm writing some code were I'm gonna end up (un)loading many different files. For this reason I'm working on a content manager to manage those files. Whe...
[4 replies] Last: Hm.. interesting approach from boost. Since we both (jsmith and me)... (by imi)
by ALB
Read Records issue
 
If you trying to make an program read records what suppose to be the in the question marks? am using this as my append friend void append(SalesRecordPtr& head,...
[3 replies] Last: thanks but, am not using string on mines and it not alike like my pro... (by blackcoder41)
by Dows
Extending stl vectors with template functions
 
Dear all, I'm creating a set of functions to handle stl vectors. Some are useful for achieving my goals. I'm coding some other just for fun. But after some cod...
[5 replies] Last: For templates, everything in the header (by Bazzy)
Inserting a charater within Integers in a vector
 
Annyone good at verctors to puush me abit.My program works fines, displaying integers.But I want to include one character so that each group of data is identied...
[no replies]
by Piety
Is there any library including matrix operation?
 
Is there any library including matrix operation such as matrix multiply ans reverse matrix?
[3 replies] Last: i used to see one in a book on numeric algorithm using C++, go find so... (by sysabod)
Creating a Namespace and Virtual functions
 
I've been given an assignment by my professor for a C++ course as described below: Create a class ThreeDShape that has a default constructor and pure virtual...
[1 reply] : Have you made a start? (by kbw)
by wtf
Sudoku Solver; would appreciate some input
 
I'm working on a sudoku solver because I am bored with solving them with hand. I have a few questions at the moment, and may from time to time seek advice in d...
[9 replies] Last: lastly: last of sudoku.cpp //as of yet... void sudoku::save(cons... (by wtf)
2-D Vectors
 
I am attempting to create a class that uses a vector of vectors to store a "grid" of integers. I am having some trouble getting it to work and I was hoping some...
[2 replies] Last: Grid::Grid(Grid &grid_Cp) should be Grid::Grid(const Grid &gr... (by Disch)
Problems with displaying program in Linux
 
Hello there, I've written a program which reads a text file and sorts it in the way the user specifies. It was an assignment for one of my college classes. I'v...
[1 reply] : Pull all your declarations out of the .cpp file and put them into the ... (by Albatross)
Pointer to a Base Class through a Derived Class
 
First off: I'm not exactly sure if the title of this topic is correct, but quite frankly I'm lost on this problem! Ok, my problem is I am trying to make a ve...
[10 replies] Last: It's a good idea you declare the vector as a container of pointers to ... (by m4ster r0shi)
Classes I/O (1,2)
 
Our homework is to write to program one that will out put to a txt file and the other to read from a file. I can get my first program to write to file but I can...
[21 replies] Last: I see here that you insist on not having some (newline perhaps) charac... (by m4ster r0shi)
overloaded istream operator issue
 
I am on the final portion of my project and need to incorporate an overloaded istream operator, I have defined it correctly to my knowledge, but I can't get it ...
[1 reply] : The overloaded istream operator is : istream &operator>>(istream &in... (by guestgulkan)
Vector container
 
I would like to put the following data into a vector container and start manuplating it. but seems like am mixing up things. expected output after inserting...
[2 replies] Last: Well, I did realise that it was messy! am just not that good at c++.Bu... (by gnwillix88)
May 2010 Pages: 1... 19202122
  Archived months: [apr2010] [jun2010]

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