How to use interrupt function in C programming?
339204
http://www.jkmicro.com/tutorials/cprogramming.html
860477
Here is a program which first computes all the values and then, print it in the actual table manner. If value is 34, table for 1 to 10 will be printed first, then from 11 to 20, 21 to 30 and then from 31 to 34. \n\n#include <stdio.h>\n#include <conio.h>\n\nvoid main()\n{\n clrscr();\n int a[50][12];\n int n;\n printf("Enter the number till which you need tables ");\n scanf("%d",&n);\n for(int i= 1;i<=n;i++)\n  for(int j=1;j<=12;j++)\n   a[i][j] = i*j;\n\n for(int k=1;k<=n/10;k++)\n {\n\n  for(i = 1;i<=12;i++)\n  {\n   for(int j = (k-1)*10+1;j<=(k-1)*10+10;j++)\n    printf("%d&#92;t",a[j][i]);\n   //printf("&#92;n");\n  }\n  printf("&#92;n");\n  getch();\n }\n\n for(i = 1;i<=12;i++)\n  {\n   for(int j = (n/10)*10+1;j<=n;j++)\n    printf("%d&#92;t",a[j][i]);\n   printf("&#92;n");\n  }\n  printf("&#92;n");\n\n}
129684
What is that "pause"??? Is it from java,c or C++\nI havent heard of that in any language.\nHere are the equivalent statements\ncontinue - goto <Label> \nbreak - Exit For
429014
it pretty much pokes the processor and says, "You there! Stop wat ur doin and take care of this input!" E.G. if you press a key on your keyboard, you certainly want it to be processed. Without an interrupt, it would just sit there in the key queue while the processor does anything else it wants.
671787
There is a C language tutorial available on the net.It is available in PDF format.You can search for it on yahoo search.
738418
You should see a printer icon down in the system tray.  Click this to open the printer status box.  In this box you should be able to pause or cancel the operation.
108454
#include "ALLOC.H"\n#include "DOS.H"\n#include "CONIO.H"\n#include "STDIO.H"\n\n\nvoid main()\n{\n char *name;\n printf(" Enter the file name...:");\n scanf("%s",name);\nplaywav(name,1.0);\n\n}\n\n\nvoid playwav(char wavefile[14],float delaytime);\nstruct WaveData {\n  unsigned int SoundLength, Frequency;\n  char *Sample;\n};\n\n\nstruct HeaderType {\n  long         RIFF;      //RIFF header\n  char         NI1 [18];  //not important\n\n  unsigned int Channels;  //channels 1 = mono; 2 = stereo\n  long         Frequency; //sample frequency\n  char         NI2 [6];   //not important\n  char         BitRes;    //bit resolution 8/16 bit\n  char         NI3 [12];  //not important\n} Header;\n\n\n\n\n\nstruct WaveData Voice;         //Pointer to wave file\n\n\nunsigned int    Base;          //Sound Blaster base address\n\n\nchar            WaveFile [25]; //File name for the wave file to be played\n\n\n/*************************************************************************\n***\n** Checks to see if a Sound Blaster exists at a given address, returns\n**\n** true if Sound Blaster found, false if not.\n**\n**************************************************************************\n**/\nint ResetDSP(unsigned int Test)\n{\n  //Reset the DSP\n  outportb (Test + 0x6, 1);\n  delay(10);\n  outportb (Test + 0x6, 0);\n  delay(10);\n  //Check if (reset was succesfull\n  if ((inportb(Test + 0xE) & 0x80 == 0x80) && (inportb(Test + 0xA) ==\n0xAA))\n  {\n    //DSP was found\n    Base = Test;\n    return (1);\n  }\n  else\n    //No DSP was found\n    return (0);\n}\n\n\n/*************************************************************************\n***\n** Send a byte to the DSP (Digital Signal Processor) on the Sound Blaster\n**\n**************************************************************************\n**/\nvoid WriteDSP(unsigned char Value)\n{\n  //Wait for the DSP to be ready to accept data\n  while ((inportb(Base + 0xC) & 0x80) == 0x80);\n  //Send byte\n\n  outportb (Base + 0xC, Value);\n}\n\n\n/*************************************************************************\n***\n** Plays a part of the memory\n**\n**************************************************************************\n**/\nvoid PlayBack (struct WaveData *Wave)\n{\n  long          LinearAddress;\n  unsigned int  Page, OffSet;\n  unsigned char TimeConstant;\n\n\n  TimeConstant = (65536 - (256000000 / Wave->Frequency)) >> 8;\n  WriteDSP(0x40);                  //DSP-command 40h - Set sample frequency\n  WriteDSP(TimeConstant);          //Write time constant\n\n\n  //Convert pointer to linear address\n  LinearAddress = FP_SEG (Wave->Sample);\n  LinearAddress = (LinearAddress << 4) + FP_OFF (Wave->Sample);\n  Page = LinearAddress >> 16;      //Calculate page\n  OffSet = LinearAddress & 0xFFFF; //Calculate offset in the page\n  /*\n      Note - this procedure only works with DMA channel 1\n  */\n  outportb (0x0A, 5);              //Mask DMA channel 1\n  outportb (0x0C, 0);              //Clear byte pointer\n  outportb (0x0B, 0x49);           //Set mode\n  /*\n      The mode consists of the following:\n      0x49 = binary 01 00 10 01\n                    |  |  |  |\n                    |  |  |  +- DMA channel 01\n                    |  |  +---- Read operation (the DSP reads from memory)\n                    |  +------- Single cycle mode\n                    +---------- Block mode\n  */\n\n\n  outportb (0x02, OffSet & 0x100); //Write the offset to the DMA controller\n  outportb (0x02, OffSet >> 8);\n\n\n  outportb (0x83, Page);           //Write the page to the DMA controller\n\n\n  outportb (0x03, Wave->SoundLength & 0x100);\n  outportb (0x03, Wave->SoundLength >> 8);\n\n\n  outportb (0x0A, 1);              //Unmask DMA channel\n\n\n\n  WriteDSP(0x14);                  // DSP-command 14h - Single cycle playback\n  WriteDSP(Wave->SoundLength & 0xFF);\n  WriteDSP(Wave->SoundLength
551354
It's a bit tricky, but the function you want to call is the Interaction.Command function  This exists in both VB6 and VB.NET, although the .NET version is enhanced to a be a bit more powerful.  \n\nWhen you call the interaction.command function, it returns a variant data type containing everything in the line after the program name.  So, if you had typed something like:\n\nmyExecutable.exe /a=myName /b=myHeight\n\nyou would do the following:\n\ndim strCommand as string\nstrCommand=interaction.command\n\nThe value in strCommand at this point would be:  \n\n/a=myName /b=myHeight\n\nYou have to parse through the return to find whatever separator characters you defined, count arguements, etc. The best way I've found to do this in VB6 is with a loop from 1 to the len(strCommand).  Test each character looking for your separator charactors, and then you just use the MID function to extract thos parts to wherever you need to put them.
260093
Here it is:-\n\n/* Convert.cpp */\n/* Display the reverse of the input */\n/* By Senthil */\n\n#include <iostream.h>\n#include <conio.h>\n#include <string.h>\n\nvoid main()\n{\nchar inp[10];\nint cnt = 0, ex = 0;\nclrscr();\n\ncout<<"Enter some characters (max limit 10) : ";\ncin>>inp;\n\ncnt = strlen(inp);\ncnt--;\nfor(ex = 0;ex != cnt;ex++,cnt--)\n{\ninp[ex] = inp[cnt];\n}\ncout<<"The reverse of the string is : "<<inp;\ngetch();\n}
483878
Refer to some site dood ... type "difference between difference alloc statements in C" in Y! Search
345718
int main (void)\n{\nint a,rem\ncout<<"enter the number";\n<<cin a;\nrem=a/a;\nif(rem>0)\ncout<<"its integer";\nelse\ncout<<"not a integer";\nreturn 0;\n}
393534
C:&#92;Program Files&#92;Windows NT&#92;Pinball&#92;\n\nclick on start, then run\npaste in the above line and click on ok
375500
The reset interrupt is at location 0000H and is 3 bytes long. All other interrupts are 8 bytes long. Its at location 0000H because that's where the processor starts executing code on power up. Why 3 bytes? The architecture was designed to have all of the interrupts located at the beginning of ROM. For a reset interrupt, the code in the interrupt will be a LJMP (long jump) to another location in ROM, which takes 3 bytes.
186666
#include <time.h>\n#include <stdlib.h>\n\n#include <iostream.h>\n#include <algo.h>\n\ntypedef double T;\n\nvoid test(int N)\n{\n  if(N < 1)\n  {\n    cerr << "Input value " << N << " too small." << endl;\n    return;\n  }\n\n  T* data = new T[N];\n  if(!data)\n  {\n    cerr << "Could not allocate data - " << N*sizeof(T) << " bytes." << endl;\n    return;\n  }\n  for(int i=0; i<N; ++i)\n    data[i] = rand();\n\n  time_t begin = clock();\n  sort(data, data+N);\n  time_t end = clock();\n  double time_elapsed = double(end-begin)/CLOCKS_PER_SEC;\n\n  cout << time_elapsed << endl;\n  delete[] data;\n}\n\nint main(int argc, char* argv[])\n{\n  if(argc != 2)\n    cerr << "Usage: " << argv[0] << "<array-size>" << endl;\n  else\n  {\n    for(int i=0; i<10; ++i)\n      test(atoi(argv[1]));\n  }\n  return 0;\n}
830169
start with C. read any good book available on C programming
589666
#include <iccclkeh.hpp> \n\nclass \n{\n       IccClock(UpdateMode update = manual);\n       IccAbsTime& ansTime();\n       void cancelAlarm(const IccRequestId* reqId= 0);\n       const char* date (DateFormat format= defaultFormat;\n            char dateSeparator='&#92;0');\n       unsigned long dayOfMonth(); \n       DayOfWeek dayOfWeek();\n       unsigned long daysSince1900();\n       long double milliSeconds();\n       MonthOfYear monthOfYear();\n       const IccAlarmRequestId& setAlarm (const IccTime& time,\n            const IccRequestId* reqId= 0);\n        const char* time(char timeSeparator= '&#92;0');\n        void update();\n        unsigned long year();\n        typedef enum{\n              defaultFormat,\n              DDMMYY,\n              MMDDYY,\n              YYDDD,\n              YYDDMM,\n              YYMMDD,\n              DDMMYYYY,\n              MMDDYYYY,\n              YYYYDDD,\n              YYYYDDMM,\n              YYYYMMDD,\n       } DateFormat;\n       typedef enum {\n              Sunday,\n              Monday,\n              Tuesday,\n              Wednesday,\n              Thursday,\n              Friday,\n              Saturday,\n       } DayOfWeek;\n       typedef enum {\n              January,\n              February,\n              March,\n              April,\n              May,\n              June,\n              July,\n              August,\n              September,\n              October,\n              November,\n              December,\n       } MonthOfYear;\n       typedef enum {\n              manual,\n              automatic,\n       } UpdateMode;\n };
90440
int main()\n{\nint minutes,hours;\nprintf("Enter the number of minutes /n");\nscanf("%d",&minutes);\n\nhours=minutes%60;\nminutes=minutes-(60*hours);\n\nprintf("Time is %d hours and %d minutes",hours,minutes);\n}