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....
Type: Posts; User: Tom.b
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....
// File: P5.cpp
// Tom Bruls
// 0719757
# include <stdio.h>
# include <string.h>
# include <ctype.h>
# define MAXLINE 256
i have this code right now:
// File: P5.cpp
// Tom Bruls
// 0719757
# include <stdio.h>
# include <string.h>
# include <ctype.h>
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...
hi,
Im making a spelling checker for a new task.
# include <stdio.h>
# include <string.h>
# include <ctype.h>
I found it! Should be u/12.0. With 12 it returns 0.00000 everytime.
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. ...
Hello,
First my code:
#include <stdio.h>
#include <math.h>
double reken (double vplus, double vth, double rxbeta, double voutold, double nextvin)
{
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...
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...
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.
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.
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...
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...
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...
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...
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...