Search Results

Showing results 1 to 10 of 10
Search took 0.01 seconds.
Search: Posts Made By: newbiecoder ; Forum: C and child forums
Forum: C May 25th, 2009
Replies: 6
Views: 420
Posted By newbiecoder
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
Posted By newbiecoder
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
Posted By newbiecoder
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
Posted By newbiecoder
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
Posted By newbiecoder
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
Posted By newbiecoder
Yeah I really understand now :) thank you very much :)
Forum: C Apr 25th, 2009
Replies: 8
Views: 925
Posted By newbiecoder
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
Posted By newbiecoder
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
Posted By newbiecoder
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
Posted By newbiecoder
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
Showing results 1 to 10 of 10

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC