the code i was testing (with printout for checking) was
BOOL result = SystemParametersInfo(SPI_SETMOUSESPEED, 0, (void*)value, 0);
if(result)
printf("\nSuccess\n");
else
...
Type: Posts; User: Whyrusleeping
the code i was testing (with printout for checking) was
BOOL result = SystemParametersInfo(SPI_SETMOUSESPEED, 0, (void*)value, 0);
if(result)
printf("\nSuccess\n");
else
...
Hi, for a CAD type program im writing i need to change the mouse speed in different design mode (the sensetivity is too high for the right precision) and i cant find the right function, ive tried...
Isnt this considered cheating?
The answer given in your boot is correct, for a declaration. but accessing that spot in the array would be your answer.
Hey, thanks for all the help. but im a little lost on what some lines do (it works great, i just want to understand it):
in this line what does setw(10) do? also, i was warned by quite a few people...
on the length of the input, i was meaning to cap it at 64, the database is meant to hold individual words, and i dont know any words that are 64 letters long...
Well, with a little help from here and a lot of man page referencing i finally got around to what i wanted to do (sorry if i was ever unclear on what i was asking, ive never really worked with file...
I did read it, quite a few times. I think i should specify my question more, does using the read function to read a string from a binary file produce human readable output or is there some 'binary...
So, i get that part, but can i just go write("some string", size) and then later just read(*chararray, size) and have chararray contain "some string"? or do i have to break it down and write it...
I really feel like what im doing is way over-complicated for my purposes, but to the best of my knowledge, read and write deal only with strings, so i cant just tell it to write an integer, also,...
@whiteflags, what do you mean i dont need to format bits?
alright, so ive written my own little method of serializing a class, but im having trouble reading the strings i write to the file...
my class:
class datas
{
public:
...
So im wanting to be able to save the contents of classes in my code to a file and load them back at a later time, ive been looking at boost for serialization but i cant seem to find a good enough...
Gracias.
Hello everyone,
im just getting a little practice on working with strings recently so i decided to try my hand at a chatbot, i wrote a super simple example and one of the responses works... but...
im not THAT bad at this. i know how to compile... what i was asking was using C what code would i use to for instance, call gcc?
i.e.
int main()
{
compile("file.c");
return 0;
}
well, im using emacs. which, i dont beleive is an IDE. What code would i use to call gcc from inside a program?
So i guess i should specify that i want the program to not just write the source code for another program, but compile and possibly run it. is this as simple as im thinking? like, could i call gcc...
So i was sitting in calculus today absent-mindedly not studying for the final when i thought of something. Is it possible to write and compile a program, that writes and compiles a program? (oooOOo...
If you dont really know what your doing, try starting with something easier, like a bmp. they are easier to read than JPEGs
It works perfectly now. I think i love you.
if (st[i] == " ") // this is the line that its having an error with
{
x++;
continue;
}
What exactly happens when you pass back the pointer, are you just passing back one letter? or the rest of the phrase?
Hello everyone
Im working on a function that takes a character array and returns the nth word in the array into another array using pointers. But Soooomehow, its not working... sigh...
It would be...
Thanks! i think thats fixed it!