Tried. And gives no error.
I've also tried to write it my way (noobie way) and it still gives no error. I surrender, I dont know why I got the error before but not now. =p
What I know is that the...
Type: Posts; User: Spiegel
Tried. And gives no error.
I've also tried to write it my way (noobie way) and it still gives no error. I surrender, I dont know why I got the error before but not now. =p
What I know is that the...
Yeah, I've seen that kind of questions myself. ^^
Honestly, I felt so frightened by the level of those questions, that I thought "I could never learn C/C++, if that's the average level for a...
If anybody's still following this thread, I'd like to ask a question that is not important enough to deserve a new thread itself.
The question is: is it just the compiler I'm using, or it's an...
I'm not sure what you mean with "required up to calc", but I'm learning from a friend who is studying at the university.
I have a high-school diploma in accounting and programming, but the kind of...
This is just a test project, just to learn and explore specific features.
I needed to learn this in order to implement it in another exercise I'm doing:
- given two rational numbers, perform...
Yeah, I know I can just write down the whole function without any prototype, but I hate having full spans of code BEFORE main.
Anyway I think I'll follow laserlight's suggestion: all or nothing. =)...
Got the point with the full prototype of a function and sounds reasonable. Will always do.
Ehm. "Problem" with the return type of pass_struct?
No problem, just useless data passing for and back....
I've done everything you said and now it works!! Happy! ^.^
I've checked the "sizeof" of "oggetto1" and "*oggetto1" and you're right, they're different.
I'm an idiot, I've taken the size of the...
Hi everybody!
I hope you all had a merry christmas... =)
....because I need your help!! >.<
I'm new to C and I'm getting to like this language more and more at every step I take, but I...
Good, thus using this program on a PC will never have a problem with endianness. =)
I came up with the union idea just because of the little/big endian problem, but I wasnt planning on portability. I was concerned just because I noticed that the RAW file is written with bytes...
That was a test code, made to fit a specific case to avoid time-wasting code writings.
In the final code I've made a "for" cicle to initialize all the array elements limited to "sizeof(unsigned...
Actually, in the meanwhile I've found my own solution! ^^
I've learnt about unions and used this method to solve my problem:
FILE *ptrRAWread;
union twobytes
{
Hi.
First of all, just to let you know, I'm a beginner and I can barely use structures and (maybe) lists. ^^'
What I'm trying to do is make a program to read 16 bits values from a header-less...