Search:

Type: Posts; User: shoobsie

Page 1 of 5 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    3,132

    thanks. IŽll try if with if/else statements...

    thanks.

    IŽll try if with if/else statements then
  2. Replies
    2
    Views
    3,132

    Problem with simple case statements

    Hi, im trying to enter a couple of ints into a function and increment the value of the output depending on the value of the input.

    The two input values are a set of int which have to be...
  3. thanks dave and cdalten :) I made some changes...

    thanks dave and cdalten :)

    I made some changes so it doesnt have to cycle 20 times or even 17.

    It will keep doing it till it finds a set value in the elements array.

    i called it "EOF"
    and...
  4. A bit of a specific problem with reading a file and line

    Hi,

    I posted the other day about a problem that i had regarding reading a header from a file and only taking out the words i need.

    The header of this file is a group of words divided up by ";"...
  5. Hi thanks for your reply. I decided on using...

    Hi thanks for your reply.

    I decided on using strtok and comparing the input to a table of predefined values.

    thus i will be able to get the position in which they occur.

    I might need a bit...
  6. Searching for a list of specific words in a string

    Hi,

    I have a basic problem and am unsure of how to approach it best.

    I have a file which has a header of :

    I have read this file and saved it to a string called readfile.

    the second line...
  7. Replies
    15
    Views
    6,787

    no problem guys, i'll try that tommorrow morning....

    no problem guys, i'll try that tommorrow morning.

    by the way, im using VC++ and windows...
  8. Replies
    15
    Views
    6,787

    and how would the C files be called from the...

    and how would the C files be called from the program?

    and where should they be saved?

    thanks
  9. Replies
    15
    Views
    6,787

    thats my problem!! im still learning!:D i...

    thats my problem!!

    im still learning!:D

    i saw an example in a book and tried to follow it.

    i want to take out a certain section of reused code from the main program so it doesnt make my main...
  10. Replies
    15
    Views
    6,787

    i did declare it, in my main program.....should...

    i did declare it, in my main program.....should it be passed to the header file too...?

    as in..


    int GPS_calculate(int GPSweek, int GPSsec, int SIZE, int buffhour[30],
    int day, char hour, int...
  11. Replies
    15
    Views
    6,787

    hi, how do i pass variables by reference in the...

    hi, how do i pass variables by reference in the parameter list!? :D

    can you give me a small example?

    here's all the errors!! :D
  12. Replies
    15
    Views
    6,787

    thanks. i was wondering where the problem lay....

    thanks.

    i was wondering where the problem lay.

    because when i removed the semi-colon, i end up getting many more errors!!
  13. Replies
    15
    Views
    6,787

    Functions in C

    Hi, just got round to introducing some functions into my C program but am having a problem.

    im trying to introduce two variables into a function which will use the time functions in C to convert...
  14. Replies
    2
    Views
    1,959

    thanks, i'll try that. its actually a hex...

    thanks, i'll try that.

    its actually a hex string so i guess the number of possible characters is reduced
  15. Replies
    2
    Views
    1,959

    finding MSB in a string

    hi,

    i'd like to find the most significant byte or bit within a string of chars. the size of the string is not set and can vary.

    my char is something like:


    unsigned char mystring =...
  16. Replies
    10
    Views
    1,774

    i've found that the problem is that when i shift...

    i've found that the problem is that when i shift the following string left by 1 position or multiply it by two:

    i get the answer F0 when it should be E0. i think the program is adding and an...
  17. Replies
    10
    Views
    1,774

    excellent. its just that in my earlier post, i...

    excellent.

    its just that in my earlier post, i had them the wrong way round.

    i was actually asking if i was correct!....which i wasnt :D

    thanks alot though.
  18. Replies
    10
    Views
    1,774

    i just spoke to a friend and he told me the order...

    i just spoke to a friend and he told me the order of bytes and power of bits is:

    [0][1][2][3]

    within which is

    [0]MSB.........LSB[0] [1]MSB.........LSB[1]

    hope this is right now! :D
  19. Replies
    10
    Views
    1,774

    well. im inputting a string of hexcharacters...

    well.

    im inputting a string of hexcharacters "1234567890" into a function which "squashes" them so that
    squashdum[0] = "00010010" = "12"
    squashdum[1] = "11000010" = "34" and pairs of...
  20. Replies
    10
    Views
    1,774

    Quick question regardin bit shifting

    im trying to shift two bytes of "binary" to OR them together and allow a carry from byte1 to be placed into byte2.

    at the moment, im trying to shift byte1 by 7 places to the RIGHT and byte2 by 1...
  21. Replies
    16
    Views
    1,883

    thanks guys, i'll have an attenmpt at it and let...

    thanks guys, i'll have an attenmpt at it and let you know how i get on! :D
  22. Replies
    16
    Views
    1,883

    im doing it for an assignment but the rules are...

    im doing it for an assignment but the rules are strict regarding the format of the variables. they HAVE to dealt with in their binary representation.
    division will occur by me doing an XOR of the...
  23. Replies
    16
    Views
    1,883

    everything you said in the first three...

    everything you said in the first three paragraphs, i am trying to do. i am trying to divide two very large hex numbers.
    but have taken the route of going down the"working with binary...
  24. Replies
    16
    Views
    1,883

    i initially have two strings.... the top one...

    i initially have two strings....

    the top one is the input and the lower one, a set hex divisor.


    unsigned char numerator[40] = "acbabca2342353cbcaac4352c";
    unsigned char...
  25. Replies
    16
    Views
    1,883

    my original input was hex but i converted it to...

    my original input was hex but i converted it to binary.

    it could be an int or otherwise but im thinking in the mindset that IF i was to write it down in binary.

    for example....



    and now...
Results 1 to 25 of 110
Page 1 of 5 1 2 3 4