Search:

Type: Posts; User: Psyho

Search: Search took 0.00 seconds.

  1. Thread: Need Help

    by Psyho
    Replies
    21
    Views
    2,567

    thanks i managed to do it in the end. If your...

    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...
  2. Thread: Need Help

    by Psyho
    Replies
    21
    Views
    2,567

    It is an order, that i can't do that. Don't know...

    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);
  3. Thread: Need Help

    by Psyho
    Replies
    21
    Views
    2,567

    It reads in from a file, and counts the words,...

    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'...
  4. Thread: Need Help

    by Psyho
    Replies
    21
    Views
    2,567

    Thanks, i forgot something :) the main looks...

    Thanks, i forgot something :)

    the main looks like this now:


    nt main()
    {
    string hol="input.txt";
    Enor t(hol);
    t.First();
  5. Thread: Need Help

    by Psyho
    Replies
    21
    Views
    2,567

    Yes and this is what i get: Breakpoint 1...

    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
  6. Thread: Need Help

    by Psyho
    Replies
    21
    Views
    2,567

    and wk is true right now. which says that we had...

    and wk is true right now. which says that we had already found a w or W in this word.
  7. Thread: Need Help

    by Psyho
    Replies
    21
    Views
    2,567

    The Input file: wewwew wert sddft ass The...

    The Input file: wewwew wert sddft ass
    The program is at the first 'w' right now.
  8. Thread: Need Help

    by Psyho
    Replies
    21
    Views
    2,567

    Second problem

    I am sorry to say, that that was only one half of my problems.

    Next() doesn't even run once, why is it so?
  9. Thread: Need Help

    by Psyho
    Replies
    21
    Views
    2,567

    Thank you.

    Thank you.
  10. Thread: Need Help

    by Psyho
    Replies
    21
    Views
    2,567

    #ifndef ENOR_H #define ENOR_H #include...

    #ifndef ENOR_H
    #define ENOR_H

    #include <fstream>
    #include <string>
    #include <sstream>


    // sorok felsoroló típusa
    // Típusértékek: felsoroló objektumok
  11. Thread: Need Help

    by Psyho
    Replies
    21
    Views
    2,567

    It's not working, if I do that, than : ...

    It's not working, if I do that, than : main.cpp|24|undefined reference to `_darabw' error is what i get.
  12. Thread: Need Help

    by Psyho
    Replies
    21
    Views
    2,567

    Thanks, but what should i do? I have to use...

    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...
  13. Thread: Need Help

    by Psyho
    Replies
    21
    Views
    2,567

    Need Help

    Hello all I have a few problems with my code

    Main.CPP


    int main()
    {
    string hol="input.txt";
    int darabw=0;
    Enor t(hol);
Results 1 to 13 of 13