I want to finally get a array with elements stored at each position/index like
p[0] = c
p[1]=a
...
but if i just copy stirngs it stores complete string in the index position.
can you suggest me what I should do in this case
well I just figured out that I can do this using >> operator and using string stream but i have errors in that . can someone help me
#include <iostream>
#include <string>
#include <stdio.h>
#include <fstream>
using namespace std;
int main (int argc, char **argv)
{...
Hi I am novice to programming and trying to read each character from file till white space [next line / space] and append symbols to the read characters.
example:
say I have string
how are you
doing sir
then I should read it into char buffer as
char buff =...
I am newbie to programming , I am trying to write a program in c++ to read strings from the file until white space [ space/ newline] each time i encounter white space i append to the string read append a symbol "$" and push to the buffer. and for the same string append another symbol "(" and...