General C++ Programming - July 2011 (Page 23)

Codechef Explain ur idea's
 
Discuss about problem in codechef share ur idea's after event end; and also discuss many programming techniques to approach to different problems & ways to ...
[1 reply] : ... (by LB)
by Tresky
Constructor Inheritance
 
I've been using classes for a while now, but I have never encountered a problem such as this. It is probably something very stupid (as it always with me). Haha....
[3 replies] Last: OH! I see. Thanks guys! (by Tresky)
by mubeen
can we make array of strings
 
can we make array of strings #include<string.h> string asd ;
[4 replies] Last: thx alot bro (by mubeen)
Wait until keystroke is make...
 
How do you make a program pause until a keystroke is made. I know cin.ignore(1); or system("pause"); will make the program wait until return or enter is hit. ...
[2 replies] Last: here is some code from duoas or disch, I cant remember. #include... (by closed account zwA4jE8b)
Math3d.h file?
 
Does anyone know where i can download this? And once it is downloaded where do i put it?
[no replies]
Problem with multidimensional string arrays.
 
I'm trying to read information from a file, and it's working for the most part. #include <iostream> #include <fstream> #include <string> using namespac...
[4 replies] Last: Objectify! A simple way to improve: Don't allocate multiple buffers ... (by Disch)
Some General C++ Questions
 
I had a buddy of mine who took C# ask me some questions the other day that I just down right did NOT know the answer to. Can one of you guys help explain this t...
[2 replies] Last: So, given that a class will have a pointer to memory that is allocate... (by shacktar)
by Phiru
How to convert LPWSTR to LPCSTR??
 
Hello I am trying to display a bitmap picture on a static text. here is a code. m_static.ModifyStyle(0xF, SS_BITMAP|SS_CENTERIMAGE); HBITMAP hBmp =...
[4 replies] Last: Then you'd use MAKEINTRESOURCEA() instead of MAKEINTRESOURCE (by Disch)
Issue with rand() in linux
 
I am having an issue where I am assigning rand numbers for an area. I am supposed to have rand numbers being assigned to a shape for an area. Ex: rectangle (2...
[3 replies] Last: post some code (by Steven Feldman)
LibCds: Michael Hashmap and Split Order List
 
I am using libcds and they have an implementation of Michael Hash Map and Split order list. Based on the information I gathered from the doc here is how I im...
[no replies]
Templatise a class over itself?
 
Hello guys :), Is this ever possible? I need it, but not so sure it would be supported in C++. I have inside my class a container for the class itself I'm cr...
[12 replies] Last: The depth is unlimited. How can I give such a parameter? (by TheDestroyer)
template inside a template class
 
Hello guys :) I have a templatised class, and inside it I want to define a templatised operator. But the problem is that I'm succeeding with this only if I com...
[4 replies] Last: Thank you all :) (by TheDestroyer)
by rcorcs
C with Pseudo-Classes
 
http://sites.google.com/site/rcorcs/posts/cwithpseudo-classes This link shows how to do pseudo-classes in C using structures and function pointers. It's v...
[7 replies] Last: The Comeau C++ compiler still does this. And the Vala compiler (langu... (by closed account 18hDSL3A)
by joshiv
Euler Problem5
 
Hi, I am trying to solve Problem 5 in Project Euler website. There is a very bad looking way to code it with too many nested loops. I found a solution online...
[5 replies] Last: Quite a nice problem. I'd like to make it a bit more interesting if an... (by kev82)
by gizzmo
templates
 
Hi, I have problem with compiling something like template <class T> T f(T a) { T::iterator it; // I need this iterator in the next line //...some stuff.....
[2 replies] Last: Try using the typename keyword: template <class T> T f(T a) { type... (by Galik)
string i/o problem [Help]
 
Hey can anyone help me with this simple program I wrote. I can't figure out why it keeps skipping a cin... Any help is much appreciated! #include <iostrea...
[10 replies] Last: It is. Try replacing cin.sync() with std::cin.ignore(std::numeric_limi... (by closed account S6k9GNh0)
Getting problem in std::vector<std::wstring>>
 
I want to know is there something wrong in passing in passing vector reference to a function as in the example below. This code is running well and nice. But th...
[6 replies] Last: Your do-while loop really adds nothing to the code- just executes once... (by diedrexler)
Need to convert a PDF to a TIFF file.
 
I developed a JAVA application last year that took PDF files (incomming faxes) and converted them to TIFF files before storing them in a database. Unfortunatel...
[6 replies] Last: I still have no idea why I can't directly convert a single PDF to a TI... (by Dabigoh)
by Stigu
Loading .ods template, inserting values, saving new file
 
As part of a summer internship I'm making an automated test program. I am to load a pre made .ods file, where all the needed calculations are done automatical...
[1 reply] : Basically .ods (OpenDocument Sheet(?)) is a zipped file including many... (by eraggo)
by Phiru
how to make over 2 files to one file??
 
My saying sounds like compression. probably it is. the issue is that, for instance, make 5 files (located in C:\) to 'abc.dat' file in C:\abc\.(however, don't ...
[1 reply] : compression or comparison? would you copy all the 5 files to c:\abc\a... (by writetonsharma)
July 2011 Pages: 1... 2122232425... 30
  Archived months: [jun2011] [aug2011]

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