Search:
Type: Posts; User: pipa
Search:
Search took 0.06 seconds.
-
April 5th, 2009, 09:06 PM
-
April 5th, 2009, 08:32 PM
Hi all,
I want to pass an array by reference and be able to change the value of array elements in the function I call. I am confused about the prototype declaration in header file and the function...
-
March 24th, 2009, 01:05 PM
Thanks a lot Guys.
It finally worked out well after installing more recent version of g++.
Thanks!
-
March 24th, 2009, 12:18 AM
I installed minGW port for GCC. Now how do I compile my code? When i go to dos prompt...i get the old version g++ and gcc.....did I miss something?
-
March 24th, 2009, 12:00 AM
How do I install the new compiler on my windows platform?
i installed the compiler I have from
http://www.claremontmckenna.edu/math/ALee/g++/g++.html
Can you plz guide me?
Thanks a lot!
-
March 23rd, 2009, 11:52 PM
I get the following for version query:
g++ -v
Reading specs from C:\cygnus\cygwin-b20\H-i586-cygwin32\bin\..\lib\gcc-lib\i586-cygwin32\egcs-2.91.57\specs
gcc version egcs-2.91.57 19980901...
-
March 23rd, 2009, 11:32 PM
In both cases I get compile time error:
Compilation started at Mon Mar 23 21:31:22
g++ -g main.cpp -o main -lm
main.cpp: In function `int main()':
main.cpp:10: no matching function for call...
-
March 23rd, 2009, 11:19 PM
Thanks.
I have no idea...why it doesn't work.Can it be compiler? I am using g++ on windows platform. If I run the same program in linux, it works just fine. I dont know whats going on?
-
March 23rd, 2009, 11:11 PM
Thanks. I just wrote the code in rush to see what I get as a result. I made the suggested changes...but it still wont work .
-
March 23rd, 2009, 11:09 PM
Somehow the ".at" function is not working. When I do v[i], it works just fine......Whats the reason behind it? I have to change the whole code to make this change. Also, its not very safe.
-
March 23rd, 2009, 11:04 PM
Thanks.
I reproduced the error by using a simple code:
#include <iostream>
#include<vector>
main(){
std::cout<<"hello"<<std::endl;
vector<int> v( 5, 1 );
-
March 23rd, 2009, 10:17 PM
Hi All,
I am getting the following error:
Eulerian.cpp: In method `void eulerian::createEul(const class util &)':
Eulerian.cpp:24: no matching function for call to...
-
March 23rd, 2009, 01:53 PM
Thanks Peter_B, I will try this out and read the manual.
-
March 22nd, 2009, 02:42 PM
Thanks again.
I don't have main.h. Is that a problem? What should I do in this situation?
Thanks
-
March 22nd, 2009, 02:06 PM
Yeah, I have a file named main.cpp in that folder.
if I compile by using "make -k"
I get the fllowing:
g++ -g -O2 -Wall -c Eulerian.cpp
In file included from Eulerian.cpp:5:...
-
March 22nd, 2009, 01:42 PM
Thanks for your reply.
I did "make -d" and Emacs printed out a lot of lines...which I was not able to understand.
Also, I dont have any variable named CFLAGS. Can I still use the above rule you...
-
March 22nd, 2009, 12:05 PM
Yeah, g++ is in my path. It works fine from the Dos prompt.
Thanks for you reply!
-
March 22nd, 2009, 01:14 AM
Can somebdy please help me?? Please.
-
March 22nd, 2009, 12:01 AM
Hi All,
I hope I am not doing some unusual thing. I use to work in EMACS and used GDB for running and compiling my C++ code in LINUX environment. I have to move to windows now but I do not want to...
-
September 30th, 2008, 04:11 PM
Hi Guys,
I am not sure if my question make sense or not.Anyways, I just want to kow if there is any way around to deal with the following issue.
class A{
int a;
};
class B{
-
September 30th, 2008, 04:07 PM
-
September 29th, 2008, 11:35 PM
I dont think the above will call "function()" of "derived " class. In the above, we are just creating an object of the "top" and a reference of the "top" (as objTop) and then calling its...
-
September 29th, 2008, 10:36 PM
Thanks for ur feedback, but I want to create an pointer (or reference) of the "top" class rather than the derived class.
Thanks
-
September 29th, 2008, 10:11 PM
If I have the following class structure:
class top{
public:
virtual void function();
};
class derived:public top{
-
September 11th, 2008, 11:33 PM
|
Click Here to Expand Forum to Full Width
|