Search:

Type: Posts; User: Tom.b

Search: Search took 0.00 seconds.

  1. Thread: spelling checker

    by Tom.b
    Replies
    8
    Views
    2,108

    All problems are solved except for 1, it is in...

    All problems are solved except for 1, it is in the function dubbelewoorden. This function is supposed to delete double words. Problem is it works but only for 1 word. Example if i type:be be be aaaa....
  2. Thread: spelling checker

    by Tom.b
    Replies
    8
    Views
    2,108

    // File: P5.cpp // Tom Bruls // 0719757 #...

    // File: P5.cpp
    // Tom Bruls
    // 0719757

    # include <stdio.h>
    # include <string.h>
    # include <ctype.h>

    # define MAXLINE 256
  3. Thread: spelling checker

    by Tom.b
    Replies
    8
    Views
    2,108

    i have this code right now: // File: P5.cpp...

    i have this code right now:


    // File: P5.cpp
    // Tom Bruls
    // 0719757

    # include <stdio.h>
    # include <string.h>
    # include <ctype.h>
  4. Thread: spelling checker

    by Tom.b
    Replies
    8
    Views
    2,108

    i already have this see the while loop with the...

    i already have this see the while loop with the j<=length. Or do you mean something different? For the second problem i search for end of a word and then compare it to the string "teh". And do this...
  5. Thread: spelling checker

    by Tom.b
    Replies
    8
    Views
    2,108

    spelling checker

    hi,

    Im making a spelling checker for a new task.



    # include <stdio.h>
    # include <string.h>
    # include <ctype.h>
  6. Replies
    8
    Views
    1,669

    I found it! Should be u/12.0. With 12 it returns...

    I found it! Should be u/12.0. With 12 it returns 0.00000 everytime.
  7. Replies
    8
    Views
    1,669

    I work with visual c++ and I don't get these...

    I work with visual c++ and I don't get these warnings. To be honest I dont really know how to solve the warnings you wrote.

    The program is supposed to solve non-lineair equations numerically. ...
  8. Replies
    8
    Views
    1,669

    Function not working

    Hello,

    First my code:


    #include <stdio.h>
    #include <math.h>

    double reken (double vplus, double vth, double rxbeta, double voutold, double nextvin)
    {
  9. Replies
    20
    Views
    3,475

    This is what the manual actually says: Write a C...

    This is what the manual actually says:
    Write a C program that performs the conversion of a 16 bit two's complement binary number into its corresponding decimal value. Read the bits digit-by-digit...
  10. Replies
    20
    Views
    3,475

    Another week, another problem

    Hi,

    I got a new (for you easy) task. I should write a short code for two's complement to decimal conversion. I shoud use scanf("%1d", &bit) to get the number. Then use a for loop. Build a...
  11. Replies
    20
    Views
    3,475

    I got the zero before the value with "%08x"....

    I got the zero before the value with "%08x". Youre right number should be printed as unsigned int to get 4294967295 as in the manual. Thanks for your help both! I really appreciate it.
  12. Replies
    20
    Views
    3,475

    Yes that makes sense. But this doesnt:...

    Yes that makes sense. But this doesnt:
    http://i38.tinypic.com/b66f6u.jpg
    Why do i get the -1 value?

    I use Visual C++ 2008 Express Edition. No warnings or errors here.
  13. Replies
    20
    Views
    3,475

    I see i forgot about the ' '. But now i get...

    I see i forgot about the ' '. But now i get errors beginning from shiftleft saying:
    error C2015: too many characters in constant
    And why does this not perform any bit operation? What do I need to...
  14. Replies
    20
    Views
    3,475

    Thanks for your help. The task said: "Write a...

    Thanks for your help. The task said: "Write a simulator for a 32-bit ALU in C. Use unsigned ints for input a,b and result.
    For ALU see this Arithmetic logic unit - Wikipedia, the free encyclopedia...
  15. Replies
    20
    Views
    3,475

    New problem

    I got a new task. I should make a ALU simulator in C. It should:
    - read the hexadecimal values of 'a' and 'b'
    - perform alu operation
    - output must look like this example:

    32-bit ALU Simulator...
  16. Replies
    20
    Views
    3,475

    Thanks for your help! I changed it and it seems...

    Thanks for your help! I changed it and it seems to work fine now. I also tried it with switch function so it would give an error message when people tried to type something different. But I also...
  17. Replies
    20
    Views
    3,475

    Problem with my code

    Hello,

    I just started with programming C. My first task is to code a simple system that ask a question that you can answer with y (yes) or n (no) and goes to the next question. And at the end...
Results 1 to 17 of 17