Doing it this way it compiles but when I go into the debugger and try run the program it doesnt run??? sorry for the length of code...
Type: Posts; User: dezz101
Doing it this way it compiles but when I go into the debugger and try run the program it doesnt run??? sorry for the length of code...
OK here is pretty much my code:
#include <hidef.h> //common defines and macros
#include "derivative.h" //derivative-specific definitions
#include "ADC.h" //allows convenient use...
k... well I've tried that code but it does not work, obviously my sample code is much different to what I am trying to write but surely the error is the same??? if I use:
doubleElements( array1,...
What is the difference between doubleElements( array1, sizeof(array1) / sizeof(array1[0]) ); and doubleElements(array1, sizeof(array1)/ sizeof(array1[0]) ); ????
Woops my original sentace should have been:
"I have an array of 4 elements and a function that can take an array of 4 elements....."
no & before it you say... Il give it a whirl thanks!
Hey guys, I have an array of 3 elements and a function that can take an array of 4 elements, I want to manipulate the 4 elements in the function and pass them mack by reference, hopefully my sample...
Hey guys, i've had sooo much trouble with just something that is probably really simple, would appreciate the answer please :)
I'm trying to make one array equal to another array, to make it worse...
Im not trying to change the value of the const, im declaring it and setting it to be equal to the const Saints struct
and what is this code going to do??
const Note_Beats Song(Saints);
doesnt...
can you not make an array equal to another array or something??? sooo consfused :
I've got a constant structure array that represents a song, i declare another const struct of the same type and make this constant structure array = the other one, what is the correct code :(
...
Any ideas guys???
Yer my fault lol, I used to have const ints instead of the #defines and I left the = in there :)
I guess my #define should'nt have that '=' there, I have taken it out but that is not the issue still
Hey guys, im trying to write some code for a micro-controller outputs to a little speaker a song that is programed in C, but I want to make it so that it can play other songs just by changing where...
THANK YOU VERY VERY VERY MUCH!!!!!!!!!! I have to finish off the assignment and then have alook at how this works, but you solved the problem and for that I thank you mate. cheers
Hi guys, I've got a really strange problem with my program that I have written for an assignment that is due today. Below is a sample program that I have written that demonstrates the weird thing...
Yer ok thats cool, the program is for someone else who I am helping in an intro to c class that i beleive has not yet learnt dynamic memory allocation, so my question is, is ther any other way this...
sorry zacs7 could you modify my code to what you said would help me to understand what you are saying better
thanx
sorry about that I didnt mean to put the fflush(stdin) in just something someone told me to try tried and forgot to get rid of because there was no change, so the program is as below:
#include...
hi guys im having trouble allocating strings (with spaces) to an array and then printing them out to screen. here is an example prog that I created hopefully you can understand what im trying to do....
any1???
Hey, now i know your not sposed to flush(stdin) nstuff, but can someone give me an alternative please. I have used fscanf to read many doubles to a dynamic memory allocated pointer. I have then...
Hi I was working on my project file and I have to do work with structs. So I created a sample program that is small to see how to implement in my program.
Below is the program:
#include...
sorry if i asked questions in that last post that you had already answered matsp, it sorta makes a little more sence now that I have seen your post. I will try to create a small project to see how to...
how does it know that misc.h is a part of the project, as I cant right click on the project window and insert a .h file. Is it good enough that they are in the same directory and for that matter how...