General C++ Programming - April 2011 (Page 31)

Including *.cpp files (1,2)
 
When I include a *.cpp file by other C++ source, can I interpret it as getting treated like "compile this C++ file before continuing" -- Or does it treat the so...
[21 replies] Last: Well, I derived this from a previous idea, called "Project Soul". It w... (by benjelly)
istream question
 
Is there a way that I can check to see if the user input an 'x'? I don't want my slope intercept form to look like y = m+b. I want it to be this.. 1x+8 (i don't...
[1 reply] : Your best bet is to read a string from the keyboard and then parse it.... (by jsmith)
Not sure what this is asking for
 
I have an assignment that is asking for: 2) FullTime has its own private data member called salary a. Its constructor has two parameters (name and salary) wh...
[1 reply] : void func_a() { func_b(); } func_a "calls" func_b. This an... (by jsmith)
isPrime function, which way is better?
 
I was thinking about how we test the "prime-ness" of a number, and it occurred to me that as I'm checking to see if a number is divisible by the numbers less th...
[7 replies] Last: B will be orders of magnitude slower than A. The point of the array o... (by jsmith)
boost::filesystem Open all files in directory
 
I'm having trouble getting this to work, I've been beating my head against the wall for about two or three days now, reading through the boost docs and whatnot,...
[5 replies] Last: If it helps any, I tried using ostringstream fileName; fileName << it... (by ciphermagi)
While Loop Error
 
Why does this just keep looping? #include <iostream> #include <conio.h> #include <cstdlib> #include <string> #include <windows.h> using namespace st...
[10 replies] Last: It's extremely easy to convert to an int. char character; int intege... (by pelotron)
C++ or Java
 
- I am beginner in this field. I want to learn programming. So suggest me where i can start? Java or C++ Which is easier to understand or they relate e...
[11 replies] Last: horance89 you got some pretty legit English skills man. (by ceruleus)
Need help with GUI creation
 
As the title says, I'm fairly new to c++ and I'm looking to expand my knowledge and grow myself as a programmer. I've downloaded and installed the latest ver...
[4 replies] Last: Why you need it, it is the general flow of most gui programs out on th... (by Azagaros)
by W A
Check variable for value
 
I have declared a double without a value. Later on I give it the value of the solution of an equation. The equation might however not have a solution all the ti...
[4 replies] Last: You can use boost::optional for that purpose: http://www.boost.org/doc... (by coder777)
Need assistance not adding over a certain value
 
I'm currently writing an ATM program and it's only supposed to allow a maximum withdrawal of $300. For some reason, I CAN NOT figure this out, I've probably tri...
[6 replies] Last: if you are saying that 'savings' and 'checking', each should have the... (by skatingrocker17)
Calling API in C++
 
I have an API with below signature, GetNumAvail(const derUtil *,const Invnumfilter &,int); I have defined a object of Invnumfilt as, Invnumfilter *f...
[2 replies] Last: The problem is that GetNumAvail defines a constant reference to Invn... (by hanst99)
In trouble?
 
I am a student. In my first semester we taught C++. But i done my B.Com. I can't learn C++ a lot . Now i am in second semester and we taught OOP (Object oriente...
[1 reply] : C++ is a language and OOP is a paradigm. You can't really learn a para... (by hamsterman)
by ozzle
Write a compiler.
 
Hi guys! I'm currently writing a toy language. And I was wondering if it's possible to write a compiler to the language, you know just for fun. If so, how woul...
[5 replies] Last: There are many definitions for 'compiler', one of this says that it co... (by Bazzy)
XML Parser Needed
 
Hi Guys... Can anyone give a xml parser.. thanks in advance...
[2 replies] Last: google xerces or tinyXML. They may be what your looking for. (by ModShop)
by ms4800
need problems
 
hello i started c++ few months back.i have learned the concepts but i need some good problems(like application programs) to get a hands on c++.just give me a...
[1 reply] : Ever wanted to learn another spoken language like.. say.. german? Or f... (by imi)
by Sapath
Constructor problem
 
#include<iostream.h> class A { protected: int a,b; public: A() {} A(int x=0,int y) { a=x;b=y; cout<<a<<b; } virtual void P(){} }; ...
[4 replies] Last: I'm actually not well-versed enough in the C++ standard to tell you wh... (by jlamothe)
effective optimisation
 
Hi gang, I'm programming a game for the GP2X as part of my university course, and getting a decent framerate out of that thing isn't easy so I was wondering ...
[1 reply] : Statistically, the problem always lies "somewhere else" and not where ... (by imi)
Kerckhoff Principle / Cipher
 
I have a problem on how to encrypt a message or group of words. I have started the program and has been sourced by this link: [http://www.microsofttranslato...
[no replies]
operator overloading & conversions
 
I am attempting to convert from an integer called day and translate it to a string consisting of a month followed by a day. For example, Day 2 would be January ...
[2 replies] Last: Im not sure what you when by "a number less than a total of sum of mon... (by onetwothreenewbie)
How to send Http Post request to Servlet using C/C++
 
Hello, I have fair knowledge of c and c++ and did some work on java servlets and jsp. I am working on my college project which needs a http POST request from ...
[no replies]
April 2011 Pages: 1... 2930313233... 37
  Archived months: [mar2011] [may2011]

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