15,551 Topics
| |
I have this problem with my ( .rc) file i do not know why [code] #include "digitron_h.h" MENU_ID MENU BEGIN POPUP "&File" { MENUITEM "E&xit", EXIT_ID } POPUP "&Help" { MENUITEM "H&elp About", HELP_ID } END ID_DIALOGEX DIALOG 0, 0, 98, 52 STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION CAPTION "calc" … | |
I am writing a C program to search for some keyword in a text file The following is the product, but how can I change the char *string[] = { "apple", "orange", "banana", }; to become input from file? (That means there will be one file storing keyword and the … | |
Hi, Here is the ( .rc) file .And i know that the pushbutton is not correct . [code] MENU_ID MENU BEGIN POPUP "&File" { MENUITEM "E&xit", EXIT_ID } POPUP "&Help" { MENUITEM "H&elp About", HELP_ID } BEGIN PUSHBUTTON "1",ID_1,30,30,10,10 END END [/code] so i want to make a pushbutton in … | |
hello i want to build a function which receives a pointer to a head of linked list reverses the order of the list and returns a pointer to the new head. my list is defined like this : [CODE]typedef struct item { int key ; struct item *next ; } … | |
I have a (probably stupid) question about the input buffer. I want to do something while there is no space pressed. But if nothing is pressed, it should be doing it too. The problem is that by using getch(), the script will keep waiting for an input of the user. … | |
I wish a happy 2008 to everyone on this forum. I just obtained the practise of programming{by the way it seems like a great book...} and i have the following code for linked list: [CODE=c] #include <stdio.h> #include <stdlib.h> #include <string.h> typedef struct Nameval { char *name; int value; struct … | |
im trying to make a function that will fill an array with numbers but something seems to be wrong =\ its suppose to be cards.... sorry if my spelling is bad :P [code] #include<stdio.h> #include<conio.h> #include<stdlib.h> typedef struct{ int num,sute,joker,in_use,arr_place; } card; void set_deck(deck[]) { clrscr(); int i=0,j=0,counter=0; for(j=1;j<=4;j++) for(i=1;i<=13;i++) … | |
Hello, I'm new to this and trying to understand how I should code this. I'm looking to be able to write a code where I have the string "test_this_" I'm looking to beable to add the date and time in secs at the end of the statement. Can someone help … | |
Hello there, is there a way to convert a char[2] = '1', '2' kinda thing to an int ? | |
hi I just want 2 know how you can display the first word from a list of words from a text file you have to see that word then it dissapears and you have to type that word than you go to the second word, it shows the word after … | |
I have written a calculater that gets an expression from the user and change it to polish form and then calculates the result it can calculate cos,sin,tan cot,+,-,*,/ the first part is very similar to a program i saw in web(function ReversePolish) it must be able to get () . … | |
whats wrong with the following code?? [code] int j[100] = {0}; int i = 0; for ( ; i < 10; i++ ) { puts( j[i]); } [/code] it keeps giving the warning [quote] warning: passing argument 1 of ‘puts’ makes pointer from integer without a cast [/quote] And when … | |
[code=c] void main() { fork(); fork(); printf("main"); } [/code] pls explain me what is the output. how it comes. | |
I have such an loop: [code=c] int i = 1230; while(i<1300){ int k = 0; Flight removedItem = RemoveQ(&Item); if(removedItem.C_TIME <= 1230){ k = k + 1; printf("%d", removedItem.C_TIME); } i = i + 5; printf("%d", removedItem.C_TIME); [COLOR="Red"]// it prints correct values here[/COLOR] } [/code] Why the if statement does … | |
Please note that I understand that this topic is old and was written in 2004. I am having a similar issue with a few codes that I have written from a book's tutorial. The program has worked with an older compiler; I am currently using Visual Studio 2005 writting a … | |
hello i want to know on how to make a code, for example you are on page 3 you want to go to the page 2 by clicking indicated buton..and also i want to have some example on how to make a graphics like a map using initgraph..thanz.. | |
hi i'm trying to write program to create a mirror print of a binary tree the code is : [CODE]typedef struct Node { int info ; struct Node *left , *right ; } Node ; void swapNode ( Node *n1 , Node *n2 ) { Node *tmp = NULL ; … | |
i posted this problem in C++ forum and people told me its impossible. I'm using a very old version of C++ and most of its features are very similar to C. So i thought maybe you people will understand what the problem is.... In the following code, getch() is executed … | |
Ale Hallan people.. I have something like this: [CODE]void main(){ int flag=1,exit=1; cla_N *head=NULL; char class_name[NAME_LENGTH],choice[1]; double diversity; while (exit) { printf("Please choose one of the options below:\n" "1- Create/update class. \n" "2- Delete class. \n" "3- Insert new species. \n" "4- Delete species. \n" "5- Update species. \n" "6- … | |
[COLOR="Green"]i want to take data from serial port and want to redirect it to the ps/2(keyboard) port. is it possible to do so if yes please help. [/COLOR] | |
like i have a string ch[100] how can i convert each character of it to integer that is ascii value which can be later converted in to binary so that ascii value of each character in a string has a corresponding binary value | |
HI, can anyone write me some about decompile for C/C++.Is it possible to decompile ( .exe). | |
Can any body please tell me code of Simplified Data Encryption Standards in C language | |
I am writing a Queue class implementation, and my Queue holds a object called Flight. I tried to create this object by struct. Some part of my code is here: [code=c] #include <stdio.h> #include <stdlib.h> typedef struct { int C_TIME; int D_TIME; char FL_NUM; char D_CITY; }Flight; #define MAXSIZE 5 … | |
Please help me... after the execution of the program. It write the new information to it. However, the .txt file do not display the new information properly. (The index number stick with the name...). It is a half work program. Please help me solve this problem or else i cannot … | |
hello i have wrote a program that converts a statement to sth like the example below please help me: (9*(1+(3*8)))+(1+(4*5)) into: 9 1 3 8 * + * 1 4 5 * + + [code=c] while((c=getch())!='\0'){ /*i dont know whether it is true or not*/ if(c=='('){ co[k]=1; k++; break; } … | |
I am a new learner of C and I tried to write a program about searching a keywrod from a .txt file and counting the number of time that the keyword repeats My program is below...it can't work...and I can't understand why.... can someone please help me...T_T Thank you [CODE]#include<stdio.h> … | |
[code=c++] #include <iostream> #include <string> #include <algorithm> #include <vector> #include <set> #include <map> using namespace std; class transition // an entry in 'alpha' transition_table { public: transition(string from_state, char input_symbol, string to_state) {from=from_state; input=input_symbol; to=to_state;} static bool smaller(transition a, transition b) { if(a.from<b.from) return true; else if(a.from>b.from) return false; else … | |
i want to compilation flags, how many are there give me some flag names? |
The End.