General C++ Programming - August 2012 (Page 22)

Need help with Palindrome program
 
Hi, I've started the euler.net problems and am currently working on problem 4, which states "Find the largest palindrome made from the product of two 3-digit nu...
[7 replies] Last: I didn't think of that, I'll rework it so it goes through all options ... (by swankmoney)
by jc82
help...saving jpegs into a PDF using C++
 
Hello everybody, I hope everyone is having a good day. Here is what I am trying to do. I am trying to write a code in Visual C++ 2010 that will look into a c...
[3 replies] Last: How is dependence on the MSCRT any different from dependence on the st... (by Computergeek01)
Read and Write big numbers
 
Okay, so here is the code I wrote for reading and writing the same large number. #include <fstream> #include <string> using namespace std; typedef in...
[11 replies] Last: With latest GCC windows port the code does not compile, it needs <cstr... (by modoran)
by ived
static data memebr initilization
 
What would be the issue/problem in case static data memebr initilization will be done within an function, the function has been called mutliple times during pro...
[2 replies] Last: > I mean if we will do a static variable intilization a number of time... (by JLBorges)
by ived
Static data memeber initilization
 
What would be issue/problem if static data memeber initilization will be done in a function which would be called multiple times during program execution. I ...
[1 reply] : Duplicate post. Answered here: http://cplusplus.com/forum/general/769... (by Disch)
How to remove special chracters from a string
 
Hi all, I want to remove special characters from a string. eg. string str="Hell^o, I'am Havi'n Good_Day, toda!y"; should change to Hello Iam Hav...
[11 replies] Last: Well, not boost::regex, but it has std::regex. But it's not very good.... (by viliml)
MySql with C programing
 
Hi I have some problems in MySql header files(i think). after compiling source file in Ubuntu it returns this error: /tmp/ccDNwfUA.o:(.eh_frame+0x12): unde...
[no replies]
about derived class access specifier
 
Hello, i was reading this tutorial http://cplusplus.com/doc/tutorial/inheritance/ where i found this piece of code class CRectangle: public CPolygon { ...
[3 replies] Last: got it thanks which ever specifier is more strict will be considered. (by tejashs)
Help me with C++ template function
 
I want to make my own allocating function which call the constructor for each object but I have problems here I is my code: template<class T> T* MyAllocHeap(...
[4 replies] Last: Thanks for giving me that new information for me. I was never heard ab... (by sasho648)
Functions
 
Can somebody help me organize my program so far, so that it has functions at top, and there definitions at the bottom, that way i can call any part of my progra...
[4 replies] Last: Here, I'll tidy up his code for you: #include <iostream> #include <st... (by viliml)
by vijkrr
will stl::list clear will call delete if a list container pointer??
 
Hi I'm having a list<int*> a; if I do a.clear() the will it call delete for the pointers variable in the list?? Thanks
[1 reply] : No. What if you filled it with pointers to static objects? (by firedraco)
Install <unordered_set>
 
I included #include <unordered_set> at the header and it's giving me this warning error This file requires compiler and library support for the upcoming ...
[2 replies] Last: ok thanks already got it g++ -std=c++0x file.cpp -o file ... (by projectUser)
Trouble with list
 
Hello everyone, I am new here. I use this website excessively everyday for reference. I hit a blocker while coding this simple program and I guess I can use ...
[4 replies] Last: Thanks for replying helios. I understand what you're saying. It makes... (by radioHarry)
Anyway of telling what is in the buffer or the size of the string?
 
To clarify, I've been getting questions about the use of std::cin and ways to "error" or "dummy" proof it. I know to use the ignore function, but I was work...
[9 replies] Last: That looks just like what I would have done with get or peek. This is ... (by Volatile Pulse)
by Elyne
Game im working on...
 
Hello my names Elyne I just started to work on a game but im trying to link the function to another but nothing happens heres my code below I don't know what im...
[4 replies] Last: Yea. I thought the same I added what you told me it worked thanks you ... (by Elyne)
not allowing me to input for this code
 
////////////////////////////////////////////////////////////////////////////// #include <iostream> #include <string> #include <sstream> long callPlayerChoice;...
[6 replies] Last: thanks, this solved my problem (by brandonator)
strange characters with RegQueryValueEx
 
Hello guys. I'm creating a NPAPI dll file and I need to get some information from the registry, but when I use RegQueryValueEx, I get some strange characters...
[1 reply] : This: char lszValue ; std::string cadena; DWORD dwSize=255; should be... (by kbw)
Another question about template specialization
 
Hello again. I'm sorry to come back with the same topic, but I have another (small) question. This is: What's the proper way to specialize class templates? I m...
[4 replies] Last: OK, thanks for answering. (by oldcrow)
New Languae (BRC)
 
Introduction: I love to create languages, so I got to create a c + + Call BRC. This language is not object-oriented, but is very quiet to program. It is si...
[no replies]
Inputting pictures from a file?
 
Hey, is there a way to input/import an image from a file using the 'fstream' header? Would something like this work? #import <fstream> ofs...
[2 replies] Last: Ok thanks, Framwork! (by Bufflez)
August 2012 Pages: 1... 2021222324... 31
  Archived months: [jul2012] [sep2012]

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