Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
2
Posts with Upvotes
2
Upvoting Members
1
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
0 Endorsements
Ranked #1K
~7K People Reached
Favorite Tags
Member Avatar for Dannyo329

I've been trying to fix a problem with getline() and cin.getline().Here's a example I've made and it still has the problem: [TEX]" No matching function to 'getline(std::istream&, char[100])' "[/TEX] Here's the code: [CODE] #include <iostream> #include <windows.h> #include <string> using namespace std; int main() { char name[100]; cout << "\nEnter …

Member Avatar for Jamblaster
0
2K
Member Avatar for CPPRULZ

When a parameter in a function definition (for say class distance) is abc(distance a) and in the main you call this function and pass distance b, what is the relationship thereafter between distance a and b? Do there adresses become equal-if so what implications does that have in the program?

Member Avatar for CPPRULZ
0
113
Member Avatar for RenjithVR

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 /etc/resolv.conf file? Thanks in advance. Renjith

Member Avatar for wldake
0
161
Member Avatar for RenjithVR

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 routines? Any useful links or sample programs regarding this? Thanks in advance. Renjith

Member Avatar for stephen84s
0
193
Member Avatar for RenjithVR

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 how to replaced the gateway. I used the "route add" command but it is adding it to …

Member Avatar for BillBrown
0
120
Member Avatar for gargg321

Hi all, I have to install a software in linux from a .bin file. But firstly I have to extract .rpm files from it to proceed. Please guide me about how to do it. I haven't worked on a linux machine before. Its my first attempt. So please explain in …

Member Avatar for BillBrown
0
252
Member Avatar for RenjithVR

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 start daemon, but when i try to stop, it is not stopping. Also no .pid file is generated in …

Member Avatar for TheOgre
0
101
Member Avatar for raul15791

I have this problem. This program runs well except that it skip the value of the first item in list. I think it is because of the cin.ignore(). But if I don't use the cin.ignore(). The cin will only read the first input and none after that. Help? [CODE=cplusplus] #include …

Member Avatar for raul15791
0
111
Member Avatar for RenjithVR

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

Member Avatar for RenjithVR
0
177
Member Avatar for chickenlord500

been working on this code for 2-3 hours using the basic c++ information. tearing out my hair trying to figure out what is wrong writing hangman programm but trying to use functions to initialize programm and enter and response computer saying little or no error but wont launch can't figure …

Member Avatar for Sky Diploma
0
155
Member Avatar for brain

Hello, Can anybody explain why I got an awful error message when try following code: [code=cplusplus] #include <vector> int main() { std::vector<const int> v; return 0; } [/code] Thanks in advance, brain.

Member Avatar for brain
0
292
Member Avatar for Agni

[code=c++] #include <iostream> using namespace std; class Lock { friend class First; private: Lock() { } }; class First : virtual public Lock { public: void function() { cout << "function1" << endl; } }; class Second: public First { public: void function2() { cout << "function2" << endl; } …

Member Avatar for ash05
0
158
Member Avatar for faisaly
Re: C++

Dear All, Kindly help me regarding this questoin of C++(OOP). Write a template function that returns the average of all the elements of an array. The arguments to the function should be the array name and the size of the array (type int). In main(), exercise the function with arrays …

Member Avatar for RenjithVR
0
258
Member Avatar for FTProtocol

Well in VB6 they use Chr() example: [code] Do sChar = Chr(GetRandomNumber()) Loop While sChar = Chr(34) [/code] Just wondering if there is a similar function in c++?

Member Avatar for William Hemsworth
0
151
Member Avatar for prab

Hi all, I am new to OOP. I am using classes to create a phone book in C++. I don't know how to program, when the user enters the information and click save to generate a file. Also, how do I make GUI using C++. Can any one help me …

Member Avatar for ninjaneer
0
595
Member Avatar for bjaanes

Hi =) I am very new to c++ and have started messing around with some lines of code, but I am totaly stuck on this one: [CODE] #include <iostream> #include <string> #include <sstream> using namespace std; int main() { int antnames; cout << "How many names do you want to …

Member Avatar for Nick Evan
0
144
Member Avatar for Dannyo329

I 've linked the two files together, main.cpp and myClasses.h, I've declared a variable, but what I'm asking is can you access a variable from myClasses.h? Here's a example of what I got so far: [CODE] //main.cpp #include "myClasses.h" #include <iostream> using namespace std; int main() { ClassOne myClass_instance; s …

Member Avatar for Dannyo329
0
102
Member Avatar for integer*09

Im able to copy the entire content of say file A to file B but the last line of file B end with several unwanted tttttt. I suspected the number of "t" is related to the number of line if read and written. Any advise will be greatly appreciated. file …

Member Avatar for integer*09
0
161
Member Avatar for crioto

I have some number: [code] int i = 43; [/code] I need to divide this number in to two digits. For example - 43, to get a 4 and 3. Help me pls)

Member Avatar for crioto
0
84
Member Avatar for SteveDB

Hi all. A while back I'd posted regarding a do-while routine, using switch. It appears that my main is working, and my switch.... it just keeps looping around my main menu. I'm not entirely clear on why either. Here is the code. (One responder to a previous post told me …

Member Avatar for SteveDB
0
81
Member Avatar for pradhan.nc

Please refere the following program #include<iostream.h> #include<conio.h> using namespace std; int main() { [B]int a[10]={1,2,3,4,5,6,7,8,9,10}; cin>>a[-1]; cin>>a[15];[/B] cout<<a[-1]<<" " <<a[15]; getch(); } To my surprise this code works perfectly ok. I thought it will give me some compiler error or runtime error as I am [B]writing in the array index …

Member Avatar for Salem
0
155
Member Avatar for anuizath2007

can u pls tell me whr i have gone rong------i have got 2errorz... #include<iostream.h> #include<conio.h> void main() { cout<<"\n\n\n\tPATTERN\n\\n\n\t" ; for(int i=1; i<=9; i++); {for (int j=1;j<=i; j++); cout<<i; } getch(); }

Member Avatar for Nick Evan
0
129
Member Avatar for allena
Member Avatar for n1337
0
486
Member Avatar for lomo

I have to store my input values from function 1 into another array caled namesMore in function 2. Not to sure how to store into second array #include <iostream> #include <string> using namespace std; const int NR_PLAYERS = 4; void inputInformation(int goalsP[], int cardsR[], string names[]) { for(int i =0; …

Member Avatar for lomo
0
75
Member Avatar for Haktivex

Greetings. Would anybody happen to have a prebuilt GNU MP Library (static) for Visual Studio 2005? I cannot seem to find one and cannot compile it myself. When I attempt to use it, I get unresolved symbol errors. If this is not possible, does anybody know a simple class or …

Member Avatar for RenjithVR
0
101
Member Avatar for WondererAbu
Member Avatar for Cybulski
0
149
Member Avatar for shankhs

Hi all, Do u have any idea that whether I can pass any function as a parameter to another function? like: [code] #include<iostream> #include<fstream> #include<vector> using namespace std; int i=5,j=8; int add() { int c=i+j; return c; } int sub() { int c=j-i; return c; } int try(int *add) { …

Member Avatar for RenjithVR
0
152
Member Avatar for RenjithVR

Hi , I am using openRTSP test program. In the make file i used debugg option. But when i tried to debugg for example : "b 320", i got the following error. No line 24 in file "init.c". I don't know about this error. But gdb is working fine. For …

Member Avatar for RenjithVR
0
130