19,876 Topics

Member Avatar for
Member Avatar for kakilang

can someone explain to me what does below code do?? [PHP]keybd_event(VK_MENU,0x38,0,0); keybd_event(VK_RETURN,0x1c,0,0); keybd_event(VK_RETURN,0x1c,KEYEVENTF_KEYUP,0); keybd_event(VK_MENU,0x38,KEYEVENTF_KEYUP,0); [/PHP]

Member Avatar for Narue
0
352
Member Avatar for tyalangan

I have a long and confusing problem (to me) I'm new to C. I was wondering if anyone could help me with my problem. File: Prime.h #include <stdio.h> #include <stdlib.h> int is_prime(int n); File: is_prime.c #include "primes.h" int is_prime(int n) { int k, limit; if (n == 2) return 1; …

Member Avatar for Narue
0
125
Member Avatar for skywing

Hi, I've downloaded the MS Agent and some sample codes. They worked well but I don't understand the code much. In my dialod-based application, I insert an ActiveX Control (MS Agent Control 2.0) and that's all, I don't know what to do next. :confused: Please. tell me what I should …

0
66
Member Avatar for galmca

hi guys...... i have a problem in writing a program of "how to delete the duplicate elements in an array" for example....if i enter an array like: 10 20 30 40 30 then it should print: 10 20 30 40 so could plz help me out????? i have attempted little …

Member Avatar for Narue
0
96
Member Avatar for marwanessa

[B]Dear all I have what same body to answers this three question PLZ :sad: (1) The brief history of evolution of 'c' language. :sad: (2)The advantages of this language among other available languages :sad: (3) Why it was given the current name 'C' PLZ nooooooooooowwwwwwwwwwwwwww[/B][COLOR=Red]undefined[/COLOR][SIZE=5]undefined[/SIZE]

Member Avatar for Narue
0
75
Member Avatar for Etarr

Im stuck on these functions. How does one start to write a function to print out a set of 4 different patterns? So far ive gotten to the point where im using void PrintPattern(int pattenrsize, int patternnumber, char patterncharacter) now im lost as to how I read in the size …

Member Avatar for Narue
0
93
Member Avatar for gpleonar

I need to write a program that will enter integers until 0 is entered. then the program needs to return the highest integer and the lowest integer. How do I return those integers.

Member Avatar for Narue
0
66
Member Avatar for mr_mooz

Im trying to write a struct for a binary header of a sun raster file to a file on disk. i have a struct for the header data: [CODE] struct rasterfile { int ras_magic; int ras_width; int ras_height; int ras_depth; int ras_length; int ras_type; int ras_maptype; int ras_maplength; }; which …

0
78
Member Avatar for bemrag

hello everyone I changed the program like that but it still give me error please help me. [code] #include <stdio.h> int main () { char A; char G; double a,b,c,d ; double X,u,Y ; double campus,company,telecom,other; double q,w,r; double h,j,t; char P; char C; do { printf("Please enter the chosen …

Member Avatar for Narue
0
97
Member Avatar for Simplicity

How can I have different food items in a snake game? This is a piece of the code I'm given: [PHP] void display_food_at(int8_t x, int8_t y) { set_display_attribute(31); display_character_at(x, y, '#'); } [/PHP] I believe I have to add something somewhere around it..???

Member Avatar for Narue
0
90
Member Avatar for kimimaro

hi I wonder if array can be work along with structure? Below are the declaration of my structure struct employee{ char ID[15]; char Name[20]; char Department[5][30]; int selection; char Post[3][30]; }; struct employee record[200]; I was wondering could if there is anywhere you can : struct employee{ char ID[15]; char …

0
66
Member Avatar for Simplicity

Can any1 help me in this: [COLOR=Red]To the "Snake game" i'm working on, I need to to add a bonus food item that appears at random times in random positions and dissapear after a fixed time.[/COLOR] I really don't know what to do and not even where to place the …

0
87
Member Avatar for bemrag

hello everyone I need help to correcting and executing the program I wrote the program but program gives some errors like; warning C4013: 'printf' undefined; assuming extern returning int warning C4013: 'scanf' undefined; assuming extern returning int : error C2046: illegal case : error C2046: illegal case fatal error C1004: …

Member Avatar for Narue
0
252
Member Avatar for nicoletonyf

Hello there, I have to overload the subscript operator to return the largest element of a collection, the second largest, the third largest, and so on. I don't really understand what to do. Do I have to create an array and sort it? What the output will looks like? I'm …

Member Avatar for jwstickley
0
267
Member Avatar for hopeolicious

It took me about 2 days but I got it lets see if you can do it. Challenge ends on October 27 the program will then be posted for you viewing The program is designed to write a three-structured program in structure form with data members and member functions. In …

Member Avatar for alc6379
1
121
Member Avatar for sachin kumar

Hi All I' m a new member of Dani Web Community.my problem is with nested linked list implementation.when i insert second node in linked list, it always overwrites the first. my declarations are as follows: struct dataset { int key ; char value[30]; struct dataset *ptrdataset; }*ptrd; struct geometry { …

Member Avatar for ZuK
0
164
Member Avatar for navyblue

Hello everyone ! I am a China student and I am a programfan. So I wanna to learn program,but there are many english book in my city! I feel study program so hard because my English is very poor! So I want to make a friend who come from you …

Member Avatar for smarkles
1
274
Member Avatar for prachi

hello frds, i am provided with assignments for evaluation of stack (i.e conversion of prefis ,postfix, infix into each other) i tried for a long time and had to go for searching on net i need it urgently .plzzzzz if any1 knows it let me know prachi

Member Avatar for Narue
0
107
Member Avatar for Simplicity

[COLOR=Blue]Hey guys, For the snake game, I need to use different colours for the snake and food. At least two different colours must be used (other than white and black). How can I change the colours? I tried many ways but none did it properly :sad: ![/COLOR] This is the …

Member Avatar for Simplicity
0
121
Member Avatar for Asif_NSU

I had been using old turbo C++ compiler and with i had the help files on C++. However, the documents with my old version of turbo c++ is quite obsolete now. I want to get the latest docs so that i can look up specific function and class details with …

Member Avatar for vegaseat
0
252
Member Avatar for nicoletonyf

Hello there, I have to write a program using three classes. One for the input, a second for the transaction, and a third one for the report. Can I write the three class definition in one header file? Can I write the three classes in one .CPP file? Can I …

Member Avatar for Ejaz
0
102
Member Avatar for JoBe

Hi ladies and gentlemen, Gotta question, I have a program in wich I make a small array of 100 random numbers wich are smaller then 1000! Like this: # define MAX 100 void srand(int tabel[MAX]); void srand(int tabel[MAX]) { for (int i=0;i<MAX;i++) do tabel[i]=rand(); while (tabel[i]>1000); } This of course …

Member Avatar for JoBe
0
186
Member Avatar for jaeSun

ok, I have an assignment ... it requires the use of pthreads .. i pretty much understand it, well, sorta .... the assignment is to read input from the command line (input redirection) from a file the file contains a list of numbers, 1 per line, 50 total numbers max …

0
70
Member Avatar for tendekai
Member Avatar for vegaseat
0
193
Member Avatar for clartsonly

does anyone know if you can use :bind variables through odbc and vc++ for oracle, so my sql stays in the sga.? if you do, I will send you an invisible prize... ;)

0
78
Member Avatar for Sanirsanir

hi guys, Anybody tell me a site where free system available on C language. Thanks in Advance, Sanir

Member Avatar for vegaseat
0
334
Member Avatar for idicula

hey does anyone what these errors mean: ----------------------------------------------------------------- --------------------Configuration: a1 - Win32 Debug-------------------- Compiling... a1.cpp C:\Documents and Settings\Jinu\My Documents\Stuff\C++\Development\a1.cpp(46) : error C2146: syntax error : missing ';' before identifier 'bSq' C:\Documents and Settings\Jinu\My Documents\Stuff\C++\Development\a1.cpp(47) : error C2146: syntax error : missing ';' before identifier 'rightNum' C:\Documents and Settings\Jinu\My Documents\Stuff\C++\Development\a1.cpp(48) : …

Member Avatar for MoreCom
0
341
Member Avatar for tendekai

#include<stdio.h> #include<conio.h> #include<string.h> #include<iomanip.h> FILE *fp1, *fp2; int count; struct record { char name[20]; int empnum; char depart[20]; float hours; float rate; }; void main() { clrscr(); record h; int acount=0,adcount=0,scount=0; float grosspay,totalg=0; float tax,totalt=0; float health,totalh=0; float pension,totalp=0; float netpay,totaln=0; float deductions; fp1=fopen("employ.dat","r"); fp2=fopen("payrol.dat","w"); count = 0; printf(" ""Page1\n"); …

Member Avatar for Narue
0
198
Member Avatar for smiler

write a programm that define a linked list class , the program use this class to manipulate students data acadmy to the following options: 1- add new student . 2- remove student. 3- list all students data. 4- search for student data using ID . 5- search for student data …

Member Avatar for alc6379
0
95
Member Avatar for dex

hi how can i create animation on pulpit ? i can draw on pulpit : GetDC(0) but i can't refresh my picture on pulpit (clear pulpit) who can help me

0
55
Member Avatar for tendekai

#include<stdio.h> #include<conio.h> #include<string.h> FILE *fp1, *fp2; int count; struct record { char name[20]; int empnum; char depart[20]; float hours; float rate; }; void main() { struct record h; int acount=0,adcount=0,scount=0; float grosspay,totalg=0; float tax,totalt=0; float health,totalh=0; float pension,totalp=0; float netpay,totaln=0; float deductions; clrscr(); fp1=fopen("employ.dat","r"); fp2=fopen("payrol.dat","w"); count = 0; printf(" ""Page1\n"); …

Member Avatar for vegaseat
0
131
Member Avatar for Anu

Hi again, since my last thread I proceeded a bit and in the meanwhile took a closer look on Mode13h. I started programming some simple games like Snake etc, but I'm stuck on a specific function I couldn't discover yet: I need a getch(); which aint actually waiting for the …

Member Avatar for vegaseat
0
230
Member Avatar for Jpowers22

Recently we have been asked to create a hybrid sort based upon quicksorting down to a certain point and insertion sorting from then on. We are to calculate the efficency based upon previous tests. I had very little problems implementing a quicksort algorithm, but for the life of me, I …

Member Avatar for subtronic
1
3K
Member Avatar for jasweb2002

I need to write a class using a vector and this is my first time using vectors. But I have looked through several books/web pages and can't see why this thing won't compile. #include <vector> template <class el> class pQ { public: private: vector<el> a(1); }; Any ideas. There must …

Member Avatar for jasweb2002
0
100
Member Avatar for skywing

Is there a way to change the button's shape from rectangle to circle like those in Windows Media Player ? :?:

Member Avatar for vegaseat
0
150
Member Avatar for cblue

Does anyone know how to get a loop to display the numbers across the screen in groups of 10 usin a while loop? for example 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 etc.....

Member Avatar for Dave Sinkula
0
103
Member Avatar for jasonburgess

Hey guys, Could you help me with this particular program, say, named wsh (wimpy shell) that reads commands from standard input, executing them one at a time. After starting the process to run a command, wsh waits for the process to complete before processing the next command. For example, the …

Member Avatar for Narue
0
102
Member Avatar for arizona24

program of strack -------------------------------------------------------------------------------- Hi, I,m Arvind .I have problem in stack programming,please tell me how to enter no's in a stack and how to check for overflow & underflow using push & pop function. arizona

Member Avatar for Narue
0
138
Member Avatar for HollywoodTimms

Here is what I have so far. #include <iostream.h> int main() { int i, total[3]; int myValue[3][3]; myValue[0][0] = 53000; myValue[0][1] = 5; myValue[0][2] = 1; myValue[1][0] = 89000; myValue[1][1] = 3; myValue[1][2] = 2; myValue[2][0] = 93000; myValue[2][1] = 3; myValue[2][2] = 3; for (i = 0; i < …

Member Avatar for Narue
1
485
Member Avatar for Alfy

i am suppose to multiply the two matrices together using a for loop, but the only way i can figure it out is by using printf( a[0][0] * b[0][0] + a[0][1] * b[1][0]) 4 times to find each piece. Please help. #include <stdio.h> int main() { int i,j,k; int a[2][2]={{1,2},{3,2}}; …

Member Avatar for Waskar
0
139
Member Avatar for trashed

[CODE]// Calcolo formula per Legge di Murphy ([url]www.andreagozzi.com[/url]) // Inclusione librerie in directory di sistema #include <math.h> #include <stdio.h> #include <string.h> // Funzione Main() main() { // Dichiarazione delle variabili float urgenza; float complessita; float abilita; float frequenza; float importanza; float e; // Impostazione variabile e fissata al valore 0.7 …

Member Avatar for trashed
1
192
Member Avatar for Alfy

write a function begins(string1, string2) that reurns true if string1 begins string2. Write a program to test the function. program: #include<stdio.h> #include<string.h> char begins(char sentence1[],char sentence2[]) { int i,j=0; for(i=0;sentence1[i]!='\0';++i) { if(sentence1[i]==sentence2[i]) j=j+1; else if(j==i) printf("True\n"); } return(0); } int main() { int i, j=0; char string1[100],string2[100]; printf("Enter a sentence:\n"); …

Member Avatar for Alfy
0
120
Member Avatar for microsoftne

I have created a simple webform that has a submit button. I cannot figure out how so that when the button is pressed it sends the form to an email address. Can anyone help? Thanks

Member Avatar for Narue
0
89
Member Avatar for rmerchan

I am getting a -NaN message and I don't understand why? The program so far compiles okay. But prints "the value of lat1 is -NaN." Any help would be greatly appreciated. # include<stdio.h> # include<math.h> float get_lat1(); int main (void) { float lat1; get_lat1(); printf("the value of lat1 is %f …

Member Avatar for Dave Sinkula
0
195
Member Avatar for HollywoodTimms

I gotta write a program that reads a file and determines a customers priority number. The program then builds a priority queue using hte priority number and prints the list of people waiting. Here is what I have so far int main() { int myValue[3][3]; myValue[0][0] = 53,000; myValue[0][1] = …

Member Avatar for HollywoodTimms
0
139
Member Avatar for minnie

[B]Is it possible to convert from VB code to C and what is the best way to do this?[/B]

Member Avatar for vegaseat
0
437
Member Avatar for bemrag

thank you for your replies but, I can't open the program. program doesn't work. If you have any different ideas please contact me. thanks....

Member Avatar for Dave Sinkula
0
112
Member Avatar for zoey

Hi can any one help me with the code to reverse 2 strings with [B]unequal[/B] number of characters in them...read the first line and secondline relpace the second line with reversd first line...and replace first half with reversed second line... thanks, zoey

Member Avatar for Narue
0
151
Member Avatar for Fleetfoot18

I'm suppose to execute the program in cmd prompt like this: fifo.exe data.txt However, I cannpt even get the program name which is fifo.exe. I found out that argc (parameter of main) does not even go to 1. It shows -1 instead. Why is this so? Anyone can help me?!?! …

Member Avatar for Dave Sinkula
0
80
Member Avatar for ooicheesan

:( ...hello there..currently i am doing the serial communication between my Vb at comm 1 with my PICDEM 2 PLUS BOARD..so i manage to send my data to the board to light up the LED but the data i send back by the board to VB that is "ok" to …

0
68

The End.