- Upvotes Received
- 2
- Posts with Upvotes
- 2
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
Re:
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 … | |
Re:
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? | |
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 | |
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 | |
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 … | |
Re:
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 … | |
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 … | |
Re:
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 … | |
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 | |
Re:
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 … | |
Re:
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. | |
Re:
[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; } … | |
Re:
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 … | |
Re:
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++? | |
Re:
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 … | |
|
Re:
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 … |
Re:
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 … | |
Re:
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 … | |
Re:
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) | |
Re:
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 … | |
Re:
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 … | |
Re:
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(); } | |
Re:
Please tell me what is the basic differences between C and C++? | |
Re:
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; … | |
Re:
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 … | |
Re:
:S Can you explain me how to link classes with each other? | |
Re:
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) { … | |
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 … |