No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
20 Posted Topics
Hi İ have trıed to remove the double spaces in the gıven string...but ıt doesnot work ıf u have more than 2 spaces in the sentesne...iam trying for that now(if we have more than 2 spaces in the given sentense..) [code=cpp]//removınf double spaces ın the gıven sentense... #include<fstream> #include<iostream> #include<string> …
Hi freinds i have problem with the implementation of the logic. I have placed a node A(x,y,z) in the cubic box and at a particular distance from this node i need to place another node B. I know x,y,z coordinates of the node A and this distacne at which i …
hallo friend iam dealing with strings in C and C++. I want to know how strcat(),strcpy()...etc functions are defined in the cstring library function. Can we see the definition of these inbuilt library functions. Please give me reply friends, Thanks, Rama
Hallo friends i have wrtten code for my project in c++, but i have no idea about how GUI is used eith c++ and which one is used. For the beginner i have no idea about GUI and how to start it. Which one you prefer to use with c++ …
Hi friends i have one question about OOP. I have [CODE]class A { /function body here }; class B:public A { /function body here }; class C:public A { /function body here }; int main() { B b[20]; C c[40]; } [/CODE] Each object of the derived classes(B and C)has …
Hallo friends i have particular number of nodes in a box. I need to connect all these nodes as a teravalent network. I have no idea how to proceed for this task. Please give me,atleast, idea to proceed. Thanks for your help,
Hi friends how to generate random numbers in between 0 to 1. I need to generate around 100 random numbers in between 0 to 1..please help me.. Thanks,
From the given code below everytime i need to print the name as rama+value of the integer variable. if i=10; then the output:rama10 should be printed... i have probelm to add string to the integer variable..please help anyone...thanks in advacne... class abc { private: int a,i; string name; public: void …
Hi friends..i have doubt about C++ programming. How to give names for the elemetns in an array of objects...
Hi all i want to use GUI wıth the Mıcrosoft vısual C++. I have taken some reference code for Win32 GUI and compiled ıt..but ı was gettıng error to compile this code. This is the code which ı compiled... [code=cpp]#include <windows.h> int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int …
Hi.....ı have changed ur code to get result...instead of using char..use string data type for the name variable with getline function.[code=cpp] #include <iostream> #include <string> using namespace std; int main() { string name; //string data type for group of the characters... cout <<" do you remember you name? " << …
I thınk you can't gıve bınary number like an integer.The number which u are giving is taken as an integer..i have used code for this conversion with predefined libraries... [code=cpp]#include <iostream> #include <bitset> #include <string> using namespace std; int main() { string s; cout<<"Enter the bınary number u want to …
I have code for this for only one name... [code=cpp] #include <fstream> //for fıle ınput and output.... #include <iostream> #include <string> using namespace std; int main() { string fullname="This is crazy"; string firstname,lastname,middlename; int spacepos=fullname.find(' '); firstname=fullname.substr(0,spacepos); cout<<"First name is "<< firstname<<endl; fullname.erase(0,spacepos+1); spacepos=fullname.find(' '); middlename=fullname.substr(0,spacepos); cout<<"Middle name is "<<middlename<<endl; …
HI i trıed to compıle your program wıth the get functıon for all the varıables....i got ıt. [code=cpp]//wrıtıng data output the fıle ın the dısk #include <fstream> //for fıle ınput and output.... #include <iostream> #include <string> using namespace std; class Name { public: void set(int inID, string Inlastname, string Infirstname) …
You need to remove re-definition of these variables agian here..remove these lines double x; // assume x is largest double y; double z;
Hallo friend please post your complete code here..so we can help you..
Hi iam also new to C++ programming Language. I downloaded Microsoft Visual C++ 2008 compiler for free and i have started compiling all programs from the OBJECT-ORIENTED PROGRAMMING IN C++ by Robert Lafore book. It doesn't matter which book you use but first install compiler and take one book and …
Hi Here iam pasting code for your question....when u compile it u will get what you want....please reply me if you want more than this.. [code] # include<iostream> using namespace std; /* This program will prompt the user for two fractions and then it will figure their sum in a …
Hallo I can help you if u can write your question correctly. There is one requirement that ....Make sure your program can produce the same output as shown in the screenshots..... Where are screenshots here. Please post total question..so i can help you to write program for that..
The End.
brk235