General C++ Programming - February 2010

Call java class from c++
 
Hello every body!! can any body lead me, how can i call Java class from c++ code ?? I just want to run c++ code that cout"its C++" and also call Java class th...
[4 replies] Last: R0mai, my understanding is that JNI provides access from Java to nativ... (by PanGalactic)
value too big for double
 
Hi all, Here's my problem. I'm making an app that draws functions. When I try to draw x*x (or anything else, really) I get a nice parabola in the middle and tw...
[6 replies] Last: Yes, I know I could do this, but I don't think I will.. It would be n... (by hamsterman)
What's the difference between...
 
What's the difference between... Foo bar(); //and Foo bar = Foo(); I've noticed that when creating variables the 1st way, I sometimes get a ...
[19 replies] Last: While that may seem the case with std::stringstream x = std::stri... (by closed account 1yR4jE8b)
Function scoping
 
I'm having problems with the scope of some functions. I'm creating a dictionary class that uses an enty class to store the entries. Now I have this function tha...
[2 replies] Last: I don't get it :( class Dictionnaire{ class Entry{ public: ... (by Swiftle)
by Noxer
Power function on other os and compilers.
 
What types of data values are accepted by the power function on os and compilers besides windows and the VC++ express compiler?
[4 replies] Last: because floating points are lossy, so his statement is sketchy. (by Disch)
overloading casting operators
 
If I have the following code class A { int m_i; public: operator int(){return m_i;); }; VOID MAURHAHRAHRARAR main() { A a; ...
[3 replies] Last: @guestgulkan: had no chance to try it "yesterday"... yep, it does ... (by Incubbus)
by ALB
C++ array problem
 
Count the number of elements in the array when you read the file and fill the array. Loop through the array adding all the elements. The count of elements wil...
[1 reply] : Can you give more information ? or more code which you have done . (by bluecoder)
by nz8202
C++ functions HOMEWORK!!
 
pls help me its my homework but im not enough in this subject. İf P is the population on the first day of the year , B is the birth rate an D is the deat...
[6 replies] Last: if you are not "enough in it"... go to the documentation and read abou... (by Incubbus)
Compiler error on using Boost --- config problem ?
 
I'm trying to use boost (debian lenny, boost installed via debian repos) I wrote a toy program: #include <boost/regex.hpp> #include <iostream> #include <st...
[8 replies] Last: Yes. The manual pages for gcc will go into further detail. ;) (by moorecm)
merging two wav files
 
i'm trying to merge two wav files. i have been trying to do this for around 5 hours, but i havent been able to . i tried so many things using file handling , op...
[2 replies] Last: sorry about that .. i didn't know there was something like that .. i w... (by anurupr)
typedef cause no global operator found error
 
hello, here is the stuation typedef vmml::Vector3<float> vec3 vec3 a; vec3 b; a += b; /* error C2677: binary '+=' : no global operator found which...
[10 replies] Last: Or better yet: template < typename T > Vector3< T >& Vector3< T... (by closed account 1yR4jE8b)
Question on long division using C++
 
Taking an introduction class for C++ and have an assignment to write a program that emulates long division, NOT floating point division. The assignment is: ...
[1 reply] : Post you're code first so we can actually suggest an answer :D (by Seraphimsan)
by jt1991
struggling now!! (1,2)
 
ok i am suppose to write a nested loop which prompt the user to input how many list and how many number in each list that u entered and also their average. but ...
[20 replies] Last: I hope your still checking this thread so that you may find my advice ... (by moorecm)
by Amer
Print the value of Pi
 
Hello every one! I've got a project to print the value of pi ie.; 22/7 using simple c. I tried hard but unable to get it. Please help me out!
[2 replies] Last: One of the two values should be a double (add .0 on one of the numbers... (by Warnis)
Static Casting in C++
 
Hi, I am looking for the answer for the following questions, please: What will return if the static cast fails for pointers with polymorphic object? What ...
[2 replies] Last: How does no one get that... (by Seraphimsan)
Linked list problem using g++
 
Hello everyone, I am new to programming with cpp. I am having issues with a program when compiling in g++, but it works in VS. I would appreciate any insig...
[2 replies] Last: Do exactly what the error message says. Remove LinkedList:: from the ... (by jsmith)
Short question
 
As a math/econ student i spent most of last year making some pretty neat c++ programs, i mean we did stuff to matrixes wich is illegal in most of the states! ...
[2 replies] Last: In the book I'm sure there is source code for nr.h so you go to your s... (by foobarbaz)
problem using accumulate()
 
Hi , when I try to run my program an error message appears: Error 1 error C2440: 'initializing' : cannot convert from 'int (__cdecl *)(CDigit *&,CDigit *&)' t...
[2 replies] Last: thanks, I completely forgot about that. But now it says Error 1 er... (by evanescence)
A Function for Input/Output
 
I am trying to make an Input function and an output function for this: #include <iostream> #include <string> #include <vector> using namespace std; int ...
[7 replies] Last: It is possible to ask the user to input game names without specificall... (by Duthomhas)
How to compile this with g++ (compiles with Visual Studio)
 
I've been practicing polymorphism and using abstract classes lately by writing different implementations of simple data structures using abstract classes. I've...
[4 replies] Last: Technically G++ is correct to the standard - typenames are not carried... (by guestgulkan)
February 2010 Pages: 123... 21
  Archived months: [jan2010] [mar2010]

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