Forum: C++ Feb 6th, 2009 |
| Replies: 2 Views: 242 Hi CPPRULZ ,
Might be these links can give you the answers.
1) http://www.codersource.net/cpp_copy_constructors.html
2) http://www.daniweb.com/forums/thread38304.html |
Forum: *nix Software Dec 3rd, 2008 |
| Replies: 2 Views: 953 Hi,
In my Linux machine there are three NIC connected. Is it possible to add a primary DNS server and a secondary DNS server for each interface? Or all interface are configured through a single... |
Forum: C Dec 3rd, 2008 |
| Replies: 5 Views: 554 If you look at the man resolv.conf, you can see different configuration options. I have to use some of those options. Is it possible to do with the 'resolver', a set of routines in the C library. Can... |
Forum: C Dec 2nd, 2008 |
| Replies: 5 Views: 554 Thanks for your reply. I have to use libraries to open this file.
With the help of the library routines I can add name server,
read the contents etc. Does this possible with Resolver ... |
Forum: C Dec 2nd, 2008 |
| Replies: 5 Views: 554 Hi All,
Can anyone tell me about a library that helps me to read contents from /etc/resolv.conf file and also update the same file with new entries. Does this possible with Resolver library... |
Forum: C++ Sep 3rd, 2008 |
| Replies: 4 Views: 682 Replace your line 9 with "string Data[20];"
also don't forget to comment line 34. |
Forum: *nix Software Sep 3rd, 2008 |
| Replies: 3 Views: 3,208 Hi,
Which software you need to install? But why do you looking to extract file from .bin?
Which Linux flavour you are using?
If you have any rpm file install it by using "rpm -ivh rpmname".... |
Forum: *nix Software Sep 3rd, 2008 |
| Replies: 1 Views: 691 Hi,
I am using kubuntu 8.0. In the init script "start-stop-daemon --stop --quiet -p $PID_FILE" used to stop a daemon. It is also specified at the top that PID_FILE="/var/run/daemon.pid".
I can... |
Forum: *nix Software Aug 29th, 2008 |
| Replies: 1 Views: 936 Hi all,
I am using kubuntu 8.0. The following problems am facing,
To stop a network we use
/etc/init.d/networking stop - I can ping after stopping.(so it is not working.)
Also anybody know... |
Forum: VB.NET Jul 28th, 2008 |
| Replies: 6 Views: 1,830 Hi,
When i run my application the browser control should displayed in a full screen with no tittle bar.
I need help to do the following,
1, When i pressed any key the browser control should... |
Forum: VB.NET Jul 25th, 2008 |
| Replies: 6 Views: 1,830 i solved all the things that i have mentioned in the prevoius post.
Ur post really helps me a lot i have some more questions not this time...
Thanks
Renjith |
Forum: VB.NET Jul 25th, 2008 |
| Replies: 6 Views: 1,830 Thanks for the valuble reply..
Actually my form has some other controls and a web browser too. In the code i mentioned the web address(for example- http://dictionary.com) to display in the browser... |
Forum: VB.NET Jul 24th, 2008 |
| Replies: 6 Views: 1,830 Hi,
I have a webBrowser and a Button. When i clicked the button I want to display a URL. When it displayed the WebBrowser should be in fullscreen. How can do this?
Thanks in advance.
Renjith |
Forum: C++ Jul 9th, 2008 |
| Replies: 7 Views: 1,471 http://www.computing.net/answers/programming/c-private-constructor-why/11546.html |
Forum: C++ Jul 9th, 2008 |
| Replies: 1 Views: 377 Refer the following link and try to do it by yourself
1, http://www.cplusplus.com/doc/tutorial/templates.html |
Forum: C++ Jul 8th, 2008 |
| Replies: 6 Views: 1,477 http://www.daniweb.com/forums/thread95385.html |
Forum: C++ Jul 8th, 2008 |
| Replies: 7 Views: 615 In OPTION 2 comment the following line
//inWord();
in your main function. |
Forum: C++ Jul 3rd, 2008 |
| Replies: 9 Views: 2,179 Try this,
#include <vector>
#include<iostream>
using namespace std;
int main()
{
vector<const int*> v;
return 0;
} |
Forum: C++ Jul 2nd, 2008 |
| Replies: 5 Views: 531 like this,
#include <iostream>
#include <string>
#include <sstream>
using namespace std;
int main()
{ |
Forum: C++ Jul 2nd, 2008 |
| Replies: 4 Views: 420 #include<iostream.h>
main()
{
int t,n;
cout<<"Enter a number:";
cin>>n;
t=n%10;
n=n/10;
cout<<"is:"<<n;
cout<<"is:"<<t; |
Forum: C++ Jul 2nd, 2008 |
| Replies: 4 Views: 1,416 http://linux.softpedia.com/get/Programming/Widgets/Qt-179.shtml
Yoe can easily follow this by referring Qt assistant |
Forum: C++ Jul 1st, 2008 |
| Replies: 6 Views: 1,840 Try this,
char * fbuffer;
long fsize;
ifstream cpy ("sample.txt");
ofstream target (finaldir.c_str());
cpy.seekg(0,ios::end);
fsize=cpy.tellg();
cpy.seekg(0,ios::beg);
fbuffer = new char... |
Forum: C++ Jul 1st, 2008 |
| Replies: 10 Views: 780 cout<<endl;
cout<<"\n";
both the above statements are same. Both are used to put a new line. |
Forum: C++ Jul 1st, 2008 |
| Replies: 10 Views: 780 else it will print 1223334445555...
to print like this
1
22
333
... i included that line.
Also u have to learn what happend if ypu put a semicolon at the end of for loop. Avoid mistakes.
You... |
Forum: C++ Jul 1st, 2008 |
| Replies: 10 Views: 780 Remove the semicolon after the loops.
that is
#include<iostream.h>
#include<conio.h>
void main()
{
cout<<"\n\n\n\tPATTERN\n\n\n\t" ; |
Forum: C++ Jul 1st, 2008 |
| Replies: 6 Views: 1,840 No. You are getting some garbage values.
To avoid this make sure last content of the file is '\0'.
simply write '\0' to end of the file. |
Forum: C++ Jul 1st, 2008 |
| Replies: 5 Views: 1,569 This will work fine.
You are getting and printing values to/from unallocated memory. You didn't get any garbage value because no other process intervening. |
Forum: C++ Jul 1st, 2008 |
| Replies: 3 Views: 1,867 case '1' : int HipValley(int& Rise1, int& Rise2, double& Eave, float& a);
what is this?
int HipValley(int& Rise1, int& Rise2, double& Eave, float& a);
is this a function call?
If so no... |
Forum: C++ Jun 30th, 2008 |
| Replies: 5 Views: 525 you can use like Object . Variable name; |
Forum: C++ Jun 30th, 2008 |
| Replies: 7 Views: 2,633 http://www.faqs.org/qa/qa-117.html |
Forum: C++ Jun 27th, 2008 |
| Replies: 6 Views: 2,277 thats what i mentioned in my previous post.
You can declare
string name;
instead of that character array. It will work |
Forum: C++ Jun 27th, 2008 |
| Replies: 9 Views: 625 my prevoius posy only help you to remove the error. this will works fine
#include <iostream>
#include <string>
using namespace std;
const int NR_PLAYERS = 4;
void inputInformation(int... |
Forum: C++ Jun 27th, 2008 |
| Replies: 9 Views: 625 use the following
names = (string*)namesMore;
instead of
names = namesMore; |
Forum: C++ Jun 27th, 2008 |
| Replies: 6 Views: 2,277 you can use either
cin.getline (name, '\n');
orn declare a
string name;
insread of character array. |
Forum: C++ Jun 18th, 2008 |
| Replies: 3 Views: 5,652 library for doing RSA encryption/decryption in c++?
go to http://www.cryptopp.com/ |
Forum: C++ May 20th, 2008 |
| Replies: 11 Views: 1,104 I think you are thinking about including a file in another file. Write a main function in one file and include the needed header files with that file. Also in each class include the header files... |
Forum: C++ May 19th, 2008 |
| Replies: 8 Views: 842 go through this links. This will clear you all about function pointers.
1,, http://www.newty.de/fpt/index.html
2, http://www.cprogramming.com/tutorial/function-pointers.html |
Forum: C++ May 16th, 2008 |
| Replies: 8 Views: 842 Hi,
You cannot use try as a function name in c++, because try is a keyword in c++ used for exception handling.
The following code should work.
#include<iostream>
#include<fstream>... |
Forum: C++ May 15th, 2008 |
| Replies: 4 Views: 461 I used the following method to debug
g++ -g test.cpp -o test
If i use g++ test.cpp -o test then try to use break point i got the same error. But using the above methode it could working fine.... |
Forum: C++ May 15th, 2008 |
| Replies: 4 Views: 461 Actually there is no such file named init.c in the directory. I think it may be one of the file related to gdb. I compiled my file using the option -g. And run by gdb executablefilename. then i... |