Search:

Type: Posts; User: dezz101

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Replies
    13
    Views
    29,807

    Doing it this way it compiles but when I go into...

    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...
  2. Replies
    13
    Views
    29,807

    OK here is pretty much my code: #include...

    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...
  3. Replies
    13
    Views
    29,807

    k... well I've tried that code but it does not...

    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,...
  4. Replies
    13
    Views
    29,807

    What is the difference between doubleElements(...

    What is the difference between doubleElements( array1, sizeof(array1) / sizeof(array1[0]) ); and doubleElements(array1, sizeof(array1)/ sizeof(array1[0]) ); ????
  5. Replies
    13
    Views
    29,807

    Woops my original sentace should have been: "I...

    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!
  6. Replies
    13
    Views
    29,807

    how to pass array by reference

    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...
  7. Replies
    3
    Views
    1,069

    question relating to arrays

    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...
  8. Replies
    6
    Views
    5,374

    Im not trying to change the value of the const,...

    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...
  9. Replies
    6
    Views
    5,374

    can you not make an array equal to another array...

    can you not make an array equal to another array or something??? sooo consfused :
  10. Replies
    6
    Views
    5,374

    constant structure array - hlep please

    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 :(


    ...
  11. Replies
    5
    Views
    1,928

    Any ideas guys???

    Any ideas guys???
  12. Replies
    5
    Views
    1,928

    Yer my fault lol, I used to have const ints...

    Yer my fault lol, I used to have const ints instead of the #defines and I left the = in there :)
  13. Replies
    5
    Views
    1,928

    I guess my #define should'nt have that '=' there,...

    I guess my #define should'nt have that '=' there, I have taken it out but that is not the issue still
  14. Replies
    5
    Views
    1,928

    const structure array declaration

    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...
  15. Replies
    4
    Views
    1,440

    THANK YOU VERY VERY VERY MUCH!!!!!!!!!! I have to...

    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
  16. Replies
    4
    Views
    1,440

    Strange things (double increment needed????)

    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...
  17. Replies
    10
    Views
    2,387

    Yer ok thats cool, the program is for someone...

    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...
  18. Replies
    10
    Views
    2,387

    sorry zacs7 could you modify my code to what you...

    sorry zacs7 could you modify my code to what you said would help me to understand what you are saying better
    thanx
  19. Replies
    10
    Views
    2,387

    sorry about that I didnt mean to put the...

    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...
  20. Replies
    10
    Views
    2,387

    reading strings with spaces

    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....
  21. Thread: flush stdin

    by dezz101
    Replies
    7
    Views
    3,045

    any1???

    any1???
  22. Thread: flush stdin

    by dezz101
    Replies
    7
    Views
    3,045

    flush stdin

    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...
  23. Replies
    1
    Views
    1,145

    Random behaviour structs please explain

    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...
  24. Replies
    6
    Views
    2,598

    sorry if i asked questions in that last post that...

    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...
  25. Replies
    6
    Views
    2,598

    how does it know that misc.h is a part of the...

    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...
Results 1 to 25 of 54
Page 1 of 3 1 2 3