thanks.
IŽll try if with if/else statements then
Type: Posts; User: shoobsie
thanks.
IŽll try if with if/else statements then
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...
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...
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 ";"...
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...
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...
no problem guys, i'll try that tommorrow morning.
by the way, im using VC++ and windows...
and how would the C files be called from the program?
and where should they be saved?
thanks
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...
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...
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
thanks.
i was wondering where the problem lay.
because when i removed the semi-colon, i end up getting many more errors!!
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...
thanks, i'll try that.
its actually a hex string so i guess the number of possible characters is reduced
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 =...
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...
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.
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
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...
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...
thanks guys, i'll have an attenmpt at it and let you know how i get on! :D
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...
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...
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...
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...