Page Number: Page 1 of 1
Actual Results
- arminho1
- Forum: Programming / Scripting / Coding Forum
- Topic: word which occurs most
- Subject: word which occurs most
- Replies: 1
- Views: 1235
- Subject: word which occurs most
Posted: October 28th, 2003, 10:28 am
Hello i want to write a program that takes the following input: -- Many lines, each contains one word,followed by end. Then it prints out the word that occurs most frequently. For example, if the input looks like this: the boy and the girl end The program will print "the" because this word occurs tw...
- arminho1
- Forum: Programming / Scripting / Coding Forum
- Topic: problems with an output as double
- Subject: problems with an output as double
- Replies: 1
- Views: 934
- Subject: problems with an output as double
Posted: October 26th, 2003, 9:09 pm
hello, i wrote a program that converts a string of digits to a double value.this works as long as there is no point in the string.for example,when the string is 1234 then the output is 1234.0000 but when the input is like 0.1234 then the program fails.who can help me. [code] #include <stdio.h...
- arminho1
- Forum: Programming / Scripting / Coding Forum
- Topic: return value should be a string in C
- Subject: return value should be a string in C
- Replies: 2
- Views: 4834
- Subject: return value should be a string in C
Posted: October 26th, 2003, 2:19 pm
hello, i write a program which converts a constant (hexadecimal)number in a number with a different base.the base comes from the input.my problem is that i should give back the new value as a string.something ist wrong but i don't know exactly what. for example:the number is would be 13 and the base...
- arminho1
- Forum: Programming / Scripting / Coding Forum
- Topic: exponential function in C
- Subject: exponential function in C
- Replies: 2
- Views: 9537
- Subject: exponential function in C
Posted: October 8th, 2003, 1:55 pm
hello, if have a problem with an exercise: the exponetial function is defined by e=1+x/1!+x²/2!+x³/3!+...x^n/n!+... now i should write a function, when x ist given it returns the value of e^x i wrote a function that should work for the factorial.but i have no idea how to continue. thats my code so f...
- arminho1
- Forum: Programming / Scripting / Coding Forum
- Topic: c problem(reverse)
- Subject: c problem(reverse)
- Replies: 2
- Views: 10023
- Subject: c problem(reverse)
Posted: October 7th, 2003, 2:40 pm
i forgot to write a example:
when i type in "unusual" my result should be "lausunu"
thanx
when i type in "unusual" my result should be "lausunu"
thanx
- arminho1
- Forum: Programming / Scripting / Coding Forum
- Topic: c problem(reverse)
- Subject: c problem(reverse)
- Replies: 2
- Views: 10023
- Subject: c problem(reverse)
Posted: October 7th, 2003, 2:35 pm
hello, i'm just learning the c language, and i have some problems with it. so i want to write a function that reverses me a word i typed in. my code looks so far like this: [code] #include <stdio.h> #include <stdlib.h> rev(char * s),j,i; char inbuf[20],conv[20...
