General C++ Programming - February 2012 (Page 32)

by Tigger
Fill array
 
At first I wanted the user to input the number of elements in the array, but I couldn't get that so I just made a constant int. I want the user to enter number ...
[3 replies] Last: you can set the return value of FillArray() with the count of number r... (by Vins3Xtreme)
help with a bug in a link list
 
So I have created this link list for a class project. It seem to take all the data ok. The problem arises when the data is printed. if you run the code you will...
[6 replies] Last: Which error code? Since you have break points, you should be able to ... (by clanmjc)
by Win32
Switch Statment Input Check Help Please
 
Hi I'm a programming student working on this sample restaurant menu. The problem im having is when the user enters invalid input the program is supposed to re-...
[3 replies] Last: Thank you so much (Functions are litteraly the lecture for tonight) so... (by Win32)
C++ template and inheritance
 
Hi, I'm not sure how to go about this one. I have a class "Grid", which has a 2D vector of "GridTile" objects. GridTile is a base class from which "UiTile" inh...
[1 reply] : Looks fine, but you are aware of the following? Grid<derived> has no ... (by mik2718)
by vRltwE
Unfamiliar constructor of the class.
 
Considering the following constructor of the class DadosBarraRolagem, can I substitute this DadosBarraRolagem():barraRolagem(NULL),posicao(Zoom::Oposta),mod...
[2 replies] Last: the increase of two lines of code You can split the first code in mo... (by Peter87)
by alhanz
SDL Image Filtering
 
Hey guys I'm trying to do an image filtering program using SDL library. The problem is, I'm able to extract out every pixels and the RGB to form the image. I tr...
[1 reply] : I don't understand what you mean by "sharpen the image". Is filter the... (by Peter87)
Loading And Saving To Files
 
I need to know how to make my program save user input to a file and reference from it in the future. prefibly to a text file and if theirs a way to encrypt the ...
[1 reply] : http://www.cplusplus.com/doc/tutorial/files/ (by LB)
by m4wk
Child & Parent processes with getrusage()
 
Hey guys, I am working on an assignment that requires me to use getrusage() , but I can't seem to figure out how to use it. This is the assignment description:...
[4 replies] Last: So would I call this function when I want to print it during the cout ... (by m4wk)
how to hide txt file through cpp(file is created by program)
 
good evening friends. I am creating a file from a c++ program. i want to know that can i hide it through the same program. like we create a file from fstream o...
[3 replies] Last: http://msdn.microsoft.com/en-us/library/system.io.file.setattributes%2... (by clanmjc)
by LB
Map which maintains order of creation
 
I once needed an unordered map where the order of insertion was the the order of iteration, and it was suggested to me to use a std::vector of std::map::iterato...
[5 replies] Last: A generalized map implementation where one can also iterate in the ord... (by JLBorges)
'X86' conflicts with target machine type 'x64'
 
Hello, im geeting the next error: LNK1112: module machine type 'X86' conflicts with target machine type 'x64' Im working on 64bit machine (VS2008) and i ...
[7 replies] Last: You'd probably get better luck in a Visual Studio forum, rather than a... (by Moschops)
Cognizance presents Insomnia : The Nocturnal Coding Life
 
Hi coders, IIT Roorkee is presenting an Algorithm Intensive Online Programming Contest – INSOMNIA, during their annual Tech Fest COGNIZANCE '12. INSOMN...
[no replies]
Image to text
 
Hello. I am going to ask you a small question. Can anybody help me making a small program to convert an image, .jpg ot .bmp to a .txt file? the conversion ...
[3 replies] Last: okey, you want me to explain better. I want to actually be able to see... (by Roby Sandor)
do i need threading to do this?
 
good evening friends, i am working on files in c++. i created two program working good separately but don't work when merged. 1st program is to create a file ...
[1 reply] : i got it i just need to close afile stream before using it "test.txt" ... (by rajeshgoblet)
C++ Expected Primary-Expression Error
 
This is even/odd problem. This is my code: // Lab 1 - Review #include <iostream> using namespace std; const int number = 3; // Function prototypes bool par...
[6 replies] Last: Never mind. I just put system("pause"); before return 0; and it's work... (by dinhxuanvu)
Efficient string sorting.
 
My goal is to remove redundant strings from a list of hundreds of millions. The solution I came up with is: 1. Use quick-sort on the list of strings 2. Pick...
[17 replies] Last: Hm yeah, the GNU implementation uses a copy-on-write mechanism for str... (by Athar)
GPS
 
how can i include a gps in c. it has a .gdb file.
[no replies]
void fr(char *f, ...)
 
hello guys . my question is : how can i work with argument in body of void fr(char *f, ...) { // ?!!! i want work with ... argument but how ?! }
[2 replies] Last: ahura24 , do you mean something like: #include <iostream> #include... (by closed account z05DSL3A)
Random number
 
Can anyone write a function or tell the logic of how to generate a random / pseudorandom number ( pls do not come up with inbuilt fuctions ).
[2 replies] Last: Mersenne Twisters are commonly used. Here's one: http://www.bedaux.net... (by Moschops)
Problem : Wormholes
 
The year is 2102 and today is the day of ZCO. This year there are N contests and the starting and ending times of each contest is known to you. You have to part...
[2 replies] Last: LOL... Its not an assignment .It is an olympiad problem. There were tw... (by rambo1177)
February 2012 Pages: 1... 3031323334... 43
  Archived months: [jan2012] [mar2012]

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