thanks i managed to do it in the end.
If your interested it was this:
from : if (((ch=='w')|| ((ch=='W')) && (wk==false))) => ((ch=='w'|| ch=='W')&& (wk==false))
those which are red, had to...
Type: Posts; User: Psyho
thanks i managed to do it in the end.
If your interested it was this:
from : if (((ch=='w')|| ((ch=='W')) && (wk==false))) => ((ch=='w'|| ch=='W')&& (wk==false))
those which are red, had to...
It is an order, that i can't do that. Don't know why, but I mustn't.
Anyway in:
void Enor::Next()
{
char ch;
f.get(ch);
It reads in from a file, and counts the words, which contain w or W, so if within the same word there are more than one, then that should be counted as 1.
My idea was, that: find the first 'real'...
Thanks, i forgot something :)
the main looks like this now:
nt main()
{
string hol="input.txt";
Enor t(hol);
t.First();
Yes and this is what i get:
Breakpoint 1 (main.cpp:24) pending.
Child process PID: 4864
Program exited normally.
Debugger finished with status 0
and wk is true right now. which says that we had already found a w or W in this word.
The Input file: wewwew wert sddft ass
The program is at the first 'w' right now.
I am sorry to say, that that was only one half of my problems.
Next() doesn't even run once, why is it so?
Thank you.
#ifndef ENOR_H
#define ENOR_H
#include <fstream>
#include <string>
#include <sstream>
// sorok felsoroló típusa
// Típusértékek: felsoroló objektumok
It's not working, if I do that, than : main.cpp|24|undefined reference to `_darabw' error is what i get.
Thanks, but what should i do?
I have to use it, to write what I need to, and otherwise it sais:
main.cpp|24|error: `darabw' was not declared in this scope|
So what i want to ask is, where...
Hello all I have a few problems with my code
Main.CPP
int main()
{
string hol="input.txt";
int darabw=0;
Enor t(hol);