I am sorry if this is a stupid question but I have looked around and can not find the answer anywhere.
What do these two operations do?
a |= b
and
a=a>>1
Type: Posts; User: the_head
I am sorry if this is a stupid question but I have looked around and can not find the answer anywhere.
What do these two operations do?
a |= b
and
a=a>>1
I have a program with two windows. I open the second window by pressing a button. And close it using the DestroyWindow( ), I also tried PostQuitMessage(WM_QUIT ). Both of these functions result in...
If you know the answer you will know what i am talking about
i used this code to set up the grammer for dictation, this will recognise any word. but i want to load up a list commands and only recognise these commands.
SUCCEEDED(hr =...
i have it working perfectly in dos so i know the printer port can do the job. it is just inpout32.dll is a slow way to control the port.
i used inpout32.dll in my program to give me control over the printer port, but it is to slow. I am using it to control a Infra red Circuit and speed is Crucial .
Is there a faster way to access...
i have a .exe file i need to run from within my c program. the .exe has to have a number after it so i use
system("c:\\program.exe 1");
is there a way to run this when i dont know the number...
Q(1);
This is my code for reading in a number and storing it in a file.
but when i go to print out the number from the file it wont work.does anyone know why.
Q(2);
when the number is stored in...
i dont know what insertion sort is can anybody explain it to me and maybe give me an example
i have programed blackjack it works but i know there is a better way of doing it. Does anybody know where i can find source code for a simple game of blackjack.
i was once told that the best way...
i dont have the cds
i am using microsoft visual c++ to compile and i want to run it in dos
i want to scan in a char y or n.
i use scanf("%c",&ans); when i press y or n the y on n shows up on the screen. is there any way to scan in the char without displaying what was pressed.
I have an array of 50 elements each element has a string with no more than 50 letters. i need to sort these alphabetically.
what is an easy way of doing this.
how do you sort an array of strings into alphabetical order using bubble sort.
do you use strcpy() to swop the strings around.
to pass the array.
put
void array_name(int []) if it is an integer array
then when you are calling your function
put
function_name(array_name)
(1)
is there a way tp clear the screen that will work in any compiler.
i tried <conio.h> and clrscr() but it does not work in my compiler(microsoft visual 6).
(2)
what is the best way of...