very interesting, I to was wondering this some time back. It's good to have an insight.
Type: Posts; User: Cero.Uno
very interesting, I to was wondering this some time back. It's good to have an insight.
awesome dude, thank you so much, saved me best part of next two hours :)
For some reason, the value held within my integer is being altered by this one function. I've been able to narrow the bug down to this one function by printing the contents of this integer step by...
I want the memory address of string alphaPosition sent to the function hence why I'm using the & operator before the string when passing the parameter.
Adjusting the prototype to reflect your adjustment results in the following:
I'm getting the following error althrough the program is compiling a exe. I've been learning pointers and while playing with integers was fine, adopting the same stragety with a character array of...
thank you very much, using that extension to my command compiles it perfectly.
Hello,
I'm attempting to play a wave file for my windows specific console program. I've included the windows.h in order to use the PlaySound() function. I inccur the following when compiling...
indeed I am declaring a conflicting variable, my own fault, checked functions but not variables, thanks for feedback, at least I know to watch out for similar errors in future and have learnt...
I have the necessary header file included. I have no overshadowing functions. If I put the above two lines at the very beginning of C's entry point (int main()), it compiles fine however if I move...
I'm following the example from the following url on this site and I'm having trouble simply obtaining a time.
time_t begin, finish;
begin = time( NULL );
forgive me, I meant DESC order.
I'm using an extra array to return the values back to the original after sorting, perhaps theres a more efficient way like excluding the second array which I've yet...
thanks laserlight
It seems my approach was wrong, I managed to do it through, my first algorithm:) woot
void sort_numeric(int scores[10])
{
int buffer[10] = { 0,0,0,0,0,0,0,0,0,0 };
Hi,
I'm having trouble sorting the numbers in ascending order from an array. As always I'd appreicate some feedback, my logic is failing me somewhere.
int test[10] = { 130, 140, 70, 30,...
Hello guys,
I'm fully aware I can clear the command line interface with:
system("cls");
however doesn't this limit my program to Windows only?, if so are they any good techniques to...
this function is invoked for both inputs OF x and y.
x = get_coord(input[1]);
y = get_coord(input[0]);
return (x - '0');
works good.
returning coordinates, I'm using a matrix for a gridding system for my battleships game. I'm attempting to make the function generic, should the value be B on the display from the users input then I...
Can you recommend any alternative..., would you say
return (x - 48);
is bad programming practice?
compiles ok but errors out.
Hi guys,
I'm having trouble with the following function, can anyone spot whats wrong, I can't get atoi to work, the only work around thus far is doing this which I don't particularly like
...
I have a quick question, in php and I'm fairly sure C++, I can use the dot to append pieces of a string together, is this possible in C.
strcat(output, temp);
The aboves adds the contents...
thanks Salem,
changing
char temp[sizeof(code)];
to
This is an exercise, the output SHOULD be Newt Is Upset Because He Thinks He Is President hence the first letters of the code, I cant crack this damn puzzle.
char code[] = ".kmpeqgf dmqz szupzq ziafziap zu ezaufmgfue kozqsdqyq fdabqd qouxaB .pqfoqbege eU zaufmgomhq kmitsuT .kdqbbuxe kxszuiazw faz eu kmitsut qtF .femq szupmqT kxxmuoqbeq eqdufiaze qeg pzm...