when i try to find out what the current size of the screen is I keep getting the maximum size for the screen. here is the code:
x = GetSystemMetrics(SM_CXSCREEN);
...
Type: Posts; User: Vertex34
when i try to find out what the current size of the screen is I keep getting the maximum size for the screen. here is the code:
x = GetSystemMetrics(SM_CXSCREEN);
...
Ok thanks for the reference to the faq Hammer, I understand why not to do that now.
Man this is driving me nuts lol, its probably really obvious too!
Ok I am learning how to pass structures to a function and I keep getting an error about return type of main is not int, and it does not display the name.
I am following along in the book that I...
Well just for the record, as far as I know my solution to the original problem he had was not incorrect, other than the fact that I did not include the correct header. Unless that is, there are other...
Ok, thanks for the advice, i hope to be a part of this board for a long time so I am sorry if I was taking it the wrong way, and I will make sure to check over my code thoroughly for errors before i...
ok my bad not tryin to ........ people off, yes it ws obvious, but still no need to get nasty about it. And bruised ego? Yeah right I don't know enough about programming in c yet to have an ego.
Jeez whats your problem, Instead of being a grouch you could have said what the problem was. Anyways I included the wrong header, instead of string.h I should have included ctype.h. I wrote the...
Here is another way to do this
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
if you don not include names in the prototypes then how do I use them in the function?
for example if i do this
void function1(int); //prototype without name
main()
{
ok, i've made quite a few changes this time, I started from scratch this time and tried to make my program code look a little more neat. I also tried to bring each step down into their own functions,...
Ok I worked on it a little more and made a few more minor changes but I still cannot figure out why it hangs when I select not to try again. I did try putting a printf statement at the end of the...
ok here is another go at it, there is one bug in it though, when you type n to quit it hang on my comp, gotta go to class though so I will work on it some more later. Thanks for all of the input you...
ok, i rewrote my code, is this a better way of doing it?
#include <stdio.h>
#include <time.h>
void fillstring(char *s,char *keys,int size);
void typestring(char *s);
int error = 0;
Why is that not a good thing? What kinds of problems could it cause?
Ok here is the first semi useful program written in c. I think I will keep developing this further as I learn more, hopefully one day I will have a full gui interface for it, but thats just wishful...
Ok, thanks for the advice on the CPU cycles, I will think about that a little more when I am coding.
Ok I am learning how to put functions that i write into a header file and then including that file in my source code. But I keep getting and error for undefined reference to rndNumber(), but the...
I am working my way through a c programming book and I am a little confused with the const modifier. It says in my book that after you declare a variable with the const modifier, the content of a...
thanks sand_man, I am trying to learn to apply pointers without using the books examples, i see how I was thinking wrong now.
ok, what i am trying to do is pass the address of a variable to a function, then change the variable within the fuction by using a pointer to the address of the variabel
Why will this code not work?
#include <stdio.h>
#include <stdlib.h>
int newvalue(t);
int main(int argc, char *argv[])
{
int x = 3;
Where can I find the source code to the earliest versions of Linux? I would be nice if I could even find the source to the first version of linux.
-Vertex34
Yeah i have spent many hours learning some of the basics of assembly and have even gotten as far as writing a bootloader and bootstrap program nothing to fancy though. the computer would load up and...
OK, I made it through a c programming book and now I am embarking on my first real program, nothing to advanced though I am just going to try and make a monopoly game. I figure if I can do that then...