Ah .. that is it :D ...
thats fun about coding ... this is something I should have known.. I just was unable to see it. :)..
I placed a
--i;
Type: Posts; User: viper2k
Ah .. that is it :D ...
thats fun about coding ... this is something I should have known.. I just was unable to see it. :)..
I placed a
--i;
Hmm...
I've been following the values .. and the numbers check out...
I've edited the code so it outputs the value changes.
void reverser(char input[], char output[])
{
int i,...
Thanks for the reply ...
I do not really understand what is not right about swapping the bytes in an array ...
This code is just for learning purposes so I'm not asking for a code re-write, I...
I see your point...
Though I must add I;m into my 3th day of C programming so that's why my codes are somewhat bloated...
But aside from that (which I'm interested in also ofcourse...). This...
Hi.. Working on a function.. which should reverse a simple array...
void reverser(char input[], char output[])
{
int i, c;
for(i=0; input[i] != '\0'; ++i);
for (c=0;i !=0; ++c){...
lol :) ok .. I think I'll stick with Pelles and GCC for now then..
My main goal at this moment is to learn C the right way and if I see the replies my humble conclusion is that with VS and so I am...
OK... The plan is to go to C++ & Assambly in time .. but first C :P ...
Well the problem in VS is when I start a new project I only have the options : Visual C++, Visual Basic, Visual C# or visual...
Hi..
I just started out with C and beginning to like it :) .. With the help of "The C Programming Language" by Kernighan and Rithie I certainly have the feeling it will all work out..
Question...
Ah so what I'm actually doing there is converting the input 'char' to a readable int for the compiler?
:) good... now I understand... It frustrates me if I'm using a syntax just because I know it...
AH... that was it :D ..
I thought in windows with CTRL-C you call for EOF :) .. but indeed with CTRL-Z it works just fine .. :)
To Comontater:
Well I can believe there are more efficient ways...
I just started out with C .. and I'm kind of stuck on a very simple code...
What it should do is get input .. and count how much numbers there are.
Why does this not work ??
#include <stdio.h>...