No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
4 Posted Topics
Dear Sir, I am tring to convert integer to string and using string for further find and replace operations. While doing so I am using for loop to for integers and then wants to store all these integers in strings. But I did not succeed. But If I use only … | |
[CODE]// istream get #include <iostream> #include <fstream> #include<string> #include<cstring> //#include<sstream> using namespace std; int main () { char c, str[256]; ifstream is; cout << "Enter the name of an existing text file: "; cin.get (str,256); is.open (str); // open file ofstream was; was.open("output.mvw"); string st ("There are two needles in … | |
Dear Sir, I am trying to print the string with the following code, but I am getting errors like Undefined symbol 'string' Undefined symbol 'str'. [CODE]#include<conio.h> #include<string.h> #include<iostream.h> void main() { string str = "My name is shridhar"; cout<<"What is your name"<<str; getch(); } [/CODE] I think the problem is … | |
I have following text file input.txt Ram Shaym Rahul Radha Madhuri Sita I want to read this file and create new file from this file showing following change output.txt Ram Shyam Rahul Radha Sridevi Sita I want to replace Madhuri by Sridevi and send output in output.txt Can anyone please … |
The End.