19,876 Topics

Member Avatar for
Member Avatar for akshitha
Member Avatar for kv79

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 …

Member Avatar for kv79
0
138
Member Avatar for complete

How do I create methods in C# like I used to in C++ MFC classes? Aren't there methods for the forms that are called during initialization of a class, for example? I am talking about some sort of wizard that comes with the 2005 Visual Studio.

Member Avatar for Ramy Mahrous
0
28
Member Avatar for emilio

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 ; } …

Member Avatar for emilio
0
108
Member Avatar for MG2008

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. …

Member Avatar for MG2008
0
110
Member Avatar for n.aggel

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 …

Member Avatar for n.aggel
0
80
Member Avatar for complete

How do I switch from code view to form view in C# IDE? I am able to do it when I first create a form, but if I close and reopen a project, that ability seems lost.

Member Avatar for scru
0
53
Member Avatar for dv1r

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++) …

Member Avatar for Narue
0
177
Member Avatar for Hawesch

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 …

Member Avatar for Narue
0
91
Member Avatar for Acidburn

Hello there, is there a way to convert a char[2] = '1', '2' kinda thing to an int ?

Member Avatar for Narue
0
119
Member Avatar for badboy20008

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 …

Member Avatar for Ancient Dragon
0
85
Member Avatar for mana

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 () . …

Member Avatar for Duoas
0
188
Member Avatar for Acidburn

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 …

Member Avatar for Narue
0
76
Member Avatar for Sukhbir

[code=c] void main() { fork(); fork(); printf("main"); } [/code] pls explain me what is the output. how it comes.

Member Avatar for replytoshshir
0
199
Member Avatar for sivaslieko++

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 …

Member Avatar for dubeyprateek
0
204
Member Avatar for cdijuste

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 …

Member Avatar for dubeyprateek
0
100
Member Avatar for jacques95
Member Avatar for carlarolan

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..

Member Avatar for dubeyprateek
0
71
Member Avatar for limac

hi, i wanted to find the factorial with the same problem that I had the previous time: here's the code that I wrote, so how can i find the factorial and display it to the user? [code=cplusplus] #include <iostream> #include <cmath> #include <string> using namespace std; int main(void) { string …

Member Avatar for rajatC
0
216
Member Avatar for emilio

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 ; …

Member Avatar for emilio
0
96
Member Avatar for Karkaroff

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 …

Member Avatar for Narue
0
79
Member Avatar for raniajay

program to print all special numbers less than a given number (a number is special if it is equal to the sum of factorials of digit)

Member Avatar for rajatC
0
101
Member Avatar for Archimag

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- …

Member Avatar for n.aggel
0
124
Member Avatar for raniajay

i have tried to do the pascals law in the following method .....bt i m not getting a triangle shape.could someone help me out in this tight Spot?? here is the code what i have typed... [code=c] #include<iostream.h> #include<conio.h> #include<iomanip.h> long TRIANGLE(int x,int y); int main() { clrscr(); int lines=0,n; …

Member Avatar for Jishnu
0
158
Member Avatar for limac

hi, i am basically a newbie to C++ and tried to make this simple math program but came acroos this error and don't know how to resolve it: [code=c++] #include <iostream> #include <cmath> #include <string> using namespace std; int main(void) { string input = Add; int a, b; cout << …

Member Avatar for Rippie
0
268
Member Avatar for pdwivedi

[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]

Member Avatar for Ancient Dragon
0
185
Member Avatar for pavitragupta

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

Member Avatar for Jishnu
0
142
Member Avatar for kv79

HI, can anyone write me some about decompile for C/C++.Is it possible to decompile ( .exe).

Member Avatar for Jishnu
0
81
Member Avatar for pavitragupta

Can any body please tell me code of Simplified Data Encryption Standards in C language

Member Avatar for Salem
0
423
Member Avatar for sivaslieko++

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 …

Member Avatar for Duoas
0
190
Member Avatar for bobei89

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 …

Member Avatar for bobei89
0
680
Member Avatar for sa-al

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; } …

Member Avatar for invisal
0
116
Member Avatar for silent_letter

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> …

Member Avatar for silent_letter
0
164
Member Avatar for sara_84

[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 …

Member Avatar for hkdani
0
184
Member Avatar for pprabhakar

i want to compilation flags, how many are there give me some flag names?

Member Avatar for Salem
0
231
Member Avatar for prasath

hi, will someone point me the reasons why a call to [B]malloc [/B]fails even if we have enough memory ?

Member Avatar for dubeyprateek
0
3K
Member Avatar for jobs

I have a CProgramA that need to call CProgramB just before CProgramA terminates. How can this be achieved?

Member Avatar for Salem
0
247
Member Avatar for corneliu9d

Hello! I'm newly registered, but I have taken a look here before. More precisely, [URL="http://www.daniweb.com/forums/thread73544.html"]here[/URL], a thread which helped me a lot, as I were a total beginner in working with MIDI. My problem is that, though I don't get any errors, I don't hear any sound. The funny thing …

Member Avatar for corneliu9d
0
173
Member Avatar for prahalad

What are the basic questions to be asked about C# for an interview?

Member Avatar for msenthilrajan
0
167
Member Avatar for AbberLine

For this question I would like to reffer to my previous thread: about my game project for school: [URL="http://www.daniweb.com/forums/thread102003.html"]http://www.daniweb.com/forums/thread102003.html[/URL]. I would like to execute a function every few miliseconds. Say every 5 miliseconds. [QUOTE=invisal;495957] This part should call every 5 miliseconds. [code=cplusplus] bool Render() { // Render all the 20 …

Member Avatar for AbberLine
0
1K
Member Avatar for AbberLine

Hi This question gives me a weird feeling, actually I'm not really sure if this is relevant. Anyway, here we go: I'm (still) busy coding my first game in C. The goal is simple: the player is a fisherman and needs to catch all the fish in the water. If …

Member Avatar for AbberLine
0
387
Member Avatar for arunpawar

is there any tutorial for creating simple windows programs which explains easy step by step . i'm looking for tutorial to create windows programs using this.

Member Avatar for Ancient Dragon
0
53
Member Avatar for carobee

hi, i wanted some help in File handling in C. consider i have one File like a.txt a.txt [Marks] Physics = 60 Chemistry = 80 ;Prac(25) Maths = 98 [Grade] Neatness = B Attention = A ;A+(9.5) Now suppose i have to insert new values in this file for the …

Member Avatar for ssharish2005
0
140
Member Avatar for kv79

Hi , I am trying to find some solution about this i try on different tutorial but with no succes. I have no idea what the author want to told me. Here the tutorial [url]http://lib.daemon.am/Books/C/[/url] pick day15 go to Linked list ,and if you know other tutorial who write about …

Member Avatar for Narue
0
81
Member Avatar for sa-al

hello i have a question .how can i write a program that gets a statement from user & prints the result sth like below: 2*3+sin(1-cos(0)) please help me

Member Avatar for ssharish2005
0
89
Member Avatar for n.aggel

hi guys, i have the following code: main.c [CODE=c] #include <unistd.h> #include <stdio.h> #include <errno.h> #include <limits.h> //defines PATH_MAX #define _GNU_SOURCE #ifndef PATH_MAX #define PATH_MAX 255 #endif int main(void) { char mycwd[PATH_MAX]; fprintf(stderr, "\nThe PATH_MAX is %d\n", PATH_MAX); if (getcwd(mycwd, PATH_MAX) == NULL) { perror("Failed to get current working directory"); …

Member Avatar for ssharish2005
0
651
Member Avatar for zawpai

Hi , Could you please give me some suggestions? I would like to create a small buffer in my code because the memory of the hardware is quite small. If so, it can't receive all of the data that I send. Sometimes, the data are over write. How should I …

Member Avatar for ssharish2005
0
118
Member Avatar for jobs

strcpy(buf, "my_id_%d_",i) strcpy(buf1, "my_com_id_%d", j) First I want to place value of i into "my_id_1" like so and copy to buf. And do the same thing in second line the code. Now I want to join both buf and buf1 so it will give me a new string "my_id_1_my_com_id_2". How …

Member Avatar for ssharish2005
0
116
Member Avatar for n.aggel

hi, i am reading the book "Operating Systems Design and Implementation 3rd edition" which analyzes the minix source code... in the part of filesystems we see this code [CODE=c]PUBLIC _PROTOTYPE (int (*call_vec[]), (void) ) = { no_sys, /* 0 = unused */ do_exit, /* 1 = exit */ do_fork, /* …

Member Avatar for n.aggel
0
104
Member Avatar for Jishnu

Hello, I know this much that I want to include two files in my program. But can I decide which files to include at run time? Is this possible? Thanks in advance, -Jishnu.

Member Avatar for Jishnu
0
356

The End.