Maybe Borland c++ 5.02 on vista must be the issue.
@rags_to_riches Are you sure that it counts the number of lines and the number of words?
If thats the case then can someone suggest a good...
Type: Posts; User: aditya_t90
Maybe Borland c++ 5.02 on vista must be the issue.
@rags_to_riches Are you sure that it counts the number of lines and the number of words?
If thats the case then can someone suggest a good...
Writing to the file works perfectly.;)
the file is not read only.
I checked and double checked`
Its only reading the total number of words in the whole file that does not work:(
The problem is that only the last entered line words are counted.
The other words are not counted
#include<iostream>
#include<fstream>
#include<conio.h>
void main()
{
char text[50];
Someone please help me out.
I have to submit this tomorow.
*BUMP*
I did check to see what happens.
The file is being opened.
When i run it without the input text part(i.e. I comment it), the output is
Display all records
All the text from
the file.
OK before anyone says that this is homework, let me say that this is homework.
I understand the question and have even written the code.
The question is.
Write A Program to write to a file, read...
Thanks everyone.
Vart could you please elaborate on...
what is pArr?
is is a variable name or something or is is a keyword?
Thanks
Yes "this" is a keyword in some languages like ecmascript+html
I removed the word "this" with something else.
I seem to have finally got the program right.
Anyone will check if this conforms to...
And how may I do that?
#include <stdio.h>
#include <conio.h>
struct emp
{
char name[25];
int age;
int salary;
};
void fn1(char*,int,int);
void main()
Yes I have never passed an array to a function :p
Anyway thanks for all the help
How am I to pass an array struct to another function?
Can someone give me an example.
I do not want a ready-made program. Just some help.
I do not really follow how to pass an array structure to a...
Yes, but it still does not indent
I was working in Borland C++
They have no indentation.
Was tooo lazy to make everything indented.
Anyways thanks,
Man I cannot imagine that I did not see the obvious LOL
Thanks a million
The output must be
1
01
101
0101
10101
If someone could point me in the right direction...
I tried this but the result goes wrong at the third line and fourth line