Forum: C May 25th, 2009 |
| Replies: 6 Views: 420 Hi,
I want to write a code which takes an array of 20 characters and deletes all spaces between characters, it should leave only letters. For example:
input : d a n i w e b
I want... |
Forum: C Apr 26th, 2009 |
| Replies: 6 Views: 1,676 And I tried the code in another compiler. It worked but as I see it gets numbers in decimal but I need to get numbers in hexadecimal...
Thanks... |
Forum: C Apr 26th, 2009 |
| Replies: 6 Views: 1,676 Yes I surely added, I actually directly tried the example code in the cplusplus page you sent... |
Forum: C Apr 26th, 2009 |
| Replies: 6 Views: 1,676 Although itoa function seems very useful, I couldn't use it, I use Ubuntu and gcc compiler. And when I try to compile I get this error:
What is the problem you think?
Thanks |
Forum: C Apr 26th, 2009 |
| Replies: 6 Views: 1,676 Hi I want to write a program which reads a hexadecimal number and returns an decimal number.
I wrote that code(inspired by some code pieces from web):
#include <stdio.h>
int main()
{
... |
Forum: C Apr 25th, 2009 |
| Replies: 8 Views: 925 Yeah I really understand now :) thank you very much :) |
Forum: C Apr 25th, 2009 |
| Replies: 8 Views: 925 In this bold part you say the next read value will be interpreted as an integer but where is the next read value, isnt there only one read value in this code (sentence) ?
Thanks a lot! |
Forum: C Apr 25th, 2009 |
| Replies: 8 Views: 925 can you tell me why I would ignore the read value with this " %*s"? I understood other parts, thank you very much... |
Forum: C Apr 25th, 2009 |
| Replies: 8 Views: 925 I just can't understand what happens in the example there :
what do "i" variable and str[20] array do in this function?
Thanks! |
Forum: C Apr 25th, 2009 |
| Replies: 8 Views: 925 Hi, I am expected to use sscanf function in a program, but I couldn't understand how it works. Can you explain it with an easy example?
Thanks
--
newbiecoder |