18,491 Topics

Member Avatar for
Member Avatar for kumarangopi

Guyz Iam happy to say that i moved little.Iam able to run the exe file without header files.It just needed egavga.bgi graphic drive.So i have to copy my exe file and egavga.bgi to other system to make the exe work.My point is i want my program to create egavga.bgi dynamically …

Member Avatar for WaltP
0
309
Member Avatar for kumarangopi

[COLOR=#000000]Does we need turbo c software to run turbo c exe file?[/COLOR] Hmmm sounds wierd! I wrote a program called chart.c in turbo c which is two header files like bimap.h ,xyz.h.When I compile,chart.exe is created.when i run chart.exe in some other machine, its not running unless tc sofware and …

Member Avatar for kumarangopi
0
196
Member Avatar for aismm

Basically the user enters one of the following + - * / % | < > c q followed by one or more spaces, followed by an integer, and then the newline key to get the answer and the current vaule is set to 0 then it keeps on adding …

Member Avatar for WaltP
0
155
Member Avatar for JRM

I have been using Codeblocks, but I think I need to better understand what the "project" concept is all about. My original assumption was that it was a group of source, header and object files that pertained to a particular project. I'm discovering, however, that the IDE doesn't like more …

Member Avatar for manutd
0
203
Member Avatar for paradoxxx

Hey all, I have an array of uppercase letters, mixed with other non-alphaitalic charcters. I need to keep a frequency of the each of the uppercase letters, and how many other characters entered. JONN:sad:

Member Avatar for John A
0
275
Member Avatar for merck120

I am currently working on a program in C, that needs to calculate the permutations of a n integer array. The approach that I have taken is using recursion, using a n-element array of counters incrementing the correct value each recursion, so the subroutine calls itself x (x being the …

Member Avatar for merck120
0
393
Member Avatar for bucsoldier03

i had to make a program that avereage the scores of test grades and displayed the highest grade made and also the lowest grade made and the test average. it also showed the number of vaild scores to. after making the program i have to convert it to C language. …

Member Avatar for pigeonfoot
0
1K
Member Avatar for JRM

hello all, I moved a source file from a cgywin file to codeblocks. The file compiled and ran just fine in the cgywin environment. However, the same file under codeblocks complains about an undefined reference to winmain. error: [code] Project : Console application Compiler : GNU GCC Compiler (called directly) …

Member Avatar for Salem
0
118
Member Avatar for l2u

Hello Im working on a huge server on windows and im not sure what approach for multiclients should I use.. I know multithreading is not good, so I've been using non-blocking sockets until now (1 thread), which has limitation but this can be easily changed.. I wondered what do you …

Member Avatar for WolfPack
0
90
Member Avatar for dev.cplusplus

Hi, to all, I'm having the following problem: I'm trying to convert a CString to long(or number), but the number that is in the Cstring is too big and I loose data of the number. I was thinking in using instead of long use the variable ULONGLONG, but the problem …

Member Avatar for dev.cplusplus
0
148
Member Avatar for chunkmartinez

I just got into creating viruses(not for mallicious puposes).Does anyone know of cool techniques and stuff i could implement and how?

Member Avatar for Ancient Dragon
-1
78
Member Avatar for Mr.UNOwen

How do you create a text file in c with any file type name in the back, such as file.abc or file.gcs or any other dot something. I'de like know how to do it the portable way, but if not, just let me know how to do it for win …

Member Avatar for Mr.UNOwen
0
33
Member Avatar for degamer106

I'm having trouble parsing a line with sscanf. My line is: 1941 How Green Was My Valley; John Ford and I want to separate it into a number, string, and another string. I tried: [CODE] if ( sscanf( buffer, "%d %41[^;] %51s", &pMovie->year, &pMovie->title, &pMovie->director ) == 3 )[/CODE] But …

Member Avatar for degamer106
0
115
Member Avatar for Shiva_nan

Hi , I am developing Library Management Software using Win32 C language. I am using [COLOR=green]Dev c++ 5.0[/COLOR] compiler.. I have to display the Book details in the DataGrid.. I dont know how to add [COLOR=red]Data Grid Control[/COLOR] to Form.. i have searched in lot in the net, but couldnt. …

Member Avatar for Ancient Dragon
0
106
Member Avatar for Einal

Can anyone help me on how to reverse string using c language.Like for example "abc" to "cba".Is it simple as in java?

Member Avatar for Nick Evan
0
58
Member Avatar for Harshita_garg

Hi guys!!! This is my first post on daniweb & i hope i find a solution to my problem.I am developing a software that makes extensive use of Matrices.i have used dynamic memory allocation for matrices.Now this program makes lots of iterations.It works upto certain iterations say 56 after which …

Member Avatar for andor
0
136
Member Avatar for Shiva_nan

Hi, I am working with Win32 programming in C language.. I am using Dev C++ compiler 5.0 .. I had created the tab control in the form with the following coding. [COLOR="Red"]g_hwndTabCntrl = CreateWindowEx(0, //more or 'extended' styles WC_TABCONTROL, //the 'class' of window to create NULL, //the window title WS_CHILD|WS_VISIBLE| …

Member Avatar for Shiva_nan
0
305
Member Avatar for beatle555
Member Avatar for ~s.o.s~
1
272
Member Avatar for Bobbiegirl

I am new to this C thing and am triny very hard to understand but am having a little problem getting thing to work. I have a project that I have been working on and cannot seem to get it to work. This is what I have so far and …

Member Avatar for ~s.o.s~
0
162
Member Avatar for linq

I know how to read string values from Access db, like: CString strFields[5]; COleVariant varstring for(field=0; field<5;field++) { recordset.GetFieldValue(field, varstring); strFields[field]=V_BSTRT(&varstring); } then the string value from db. goes into strFields But what if I know the strFields, and want write to update the db. Does anyone know the adverse …

Member Avatar for Ancient Dragon
0
93
Member Avatar for linq

like .... CString name[5]; for(int i=0;i<5;i++) name[i]="Jack"; .... is this the right way?

Member Avatar for Ancient Dragon
0
126
Member Avatar for aznballerlee

How do I shift my arrays .. starting at a position in the middle of the arrays .. to one place to the right? I tried using a for loop, but it doesn't work. [B]Here is my task:[/B] int insert(string a[], int n, string s, int pos, int max); Insert …

Member Avatar for Ancient Dragon
0
2K
Member Avatar for degamer106

I have the following declarations: [CODE]typedef struct{ int year; // key char title[51]; char director[41]; } MOVIE; typedef struct node{ struct node *left; MOVIE *movie; struct node *right; } TREE_NODE;[/CODE] lets say I create a TREE_NODE called root. Why can't I do this declaration? [CODE]root->movie->year = 1990[/CODE] Whenever I try …

Member Avatar for degamer106
0
112
Member Avatar for aznballerlee

My task for this function is to find the index of the <= string in the array. If more than one string, then retrun the smallest index of such string. Retunr -1 if no elements in array. I came out with a rough code. I hope what I did was …

Member Avatar for aznballerlee
0
138
Member Avatar for boujibabe

I have a palindrome program.Is there a way to ensure user input terminated in a string by a punctuation mark (e.g. ‘!’, ‘.’, or ‘?’.) in an array? And how do i get the program to exclude commas? eg A man, a plan, a canal, Panama! bosters a problem because …

Member Avatar for ~s.o.s~
0
539
Member Avatar for pointers

Hi, I hav defined an array of n elements.Each element represents a structure. Like, [code=c] typedef struct { int dd; int mm; int yyyy; }srik; srik a[n]; [/code] Then how to assign a date (eg:02/07/1984) as a string("02071984") to the first array element(means the first structure) in the array. I …

Member Avatar for Ancient Dragon
0
120
Member Avatar for Savage221

Hello, for the final part of my program I need to count how many letters appear throughout a pretty large input file. Opening the file, storing to an array, etc.. is all taken care of. I'm clueless on how to count each letter that occurs. I've read structures are the …

Member Avatar for WaltP
0
124
Member Avatar for muzzy_cush

[B]I was just wondering how to align data like this:[/B] [code] McBride, Susan $ 1000.00 $ 95.00 5 O'Hara, Catherine $ 2500.00 $ 299.51 5 [/code] [B]To make it look like this:[/B] [code] McBride, Susan $ 1000.00 $ 95.00 5 O'Hara, Catherine $ 2500.00 $ 299.51 5 [/code] The second …

Member Avatar for Ancient Dragon
0
141
Member Avatar for k_raj_k

hi everyone ... i'm not an experienced programmer like many here... I'm a student, just trying my hands on C++. I think i'm comfortable with C and JAVA atleast better than C++. I'm happy to join you guys.:)

Member Avatar for happygeek
0
28
Member Avatar for jess_redrose

Hi everyone, I've worked on this thing for about three days now and am really getting frustrated. I need to make a stack using linear linked lists of arrays. I've got my class to compile without complaining, but am really struggling with the function definitons of push and peek. Any …

Member Avatar for Ancient Dragon
0
141
Member Avatar for tehloki

Hey, it's me again, with another problem on an assignment. The input/output looks like this: [I]Enter the wind speed on the Beaufort Scale: [COLOR=red]7[/COLOR] Enter the number of boats racing (1-10): [COLOR=red]7[/COLOR] Enter the code for boat 1: [COLOR=red]LASE[/COLOR] Enter the time for boat 1: [COLOR=red]29:41[/COLOR] Enter the code for …

Member Avatar for tehloki
0
246
Member Avatar for boujibabe

I'm trying to find a way to convert a number in any given base to decimal and then to the target base. What i'm asking is how will I represent this procedure in the function for example 123 base 4 to decimal= 1x4^2+2x4^1+3x4^0=27. I was thinking of decrementing the raised …

Member Avatar for boujibabe
0
151
Member Avatar for pointers

Hi, I am going to write an exam I found a model question. could u pls solve this question. An array named 'DATE_ARRAY' with n elements present in the memory. Each element in the array is a structure representing the 'Date' information and its type defination is shown below. Type …

Member Avatar for Bench
0
141
Member Avatar for shoegoe

Hi! ..My First Post Am... I need a logic and/or some kind of help to code a c program which accepts a numeric equation and prints it step by step in order of precedence.. Eg: the c program should accept any equation like : 5+(5-3)*6%10/6++ ie the equation may cointain …

Member Avatar for ~s.o.s~
0
142
Member Avatar for sg57

Hello. Im new here and at but a wee little age of 14, so go easy on me :-| Anyways... Before I begin, I want to make a note I can use inline assembly with C, so the loading and storing of the file's data into a buffer is already …

Member Avatar for Ancient Dragon
0
79
Member Avatar for john33

[B]How do we manage the events of controls in the parent from a child form using C#.[/B] :?:

Member Avatar for andor
0
33
Member Avatar for FireSBurnsmuP

I had to use an enumerated data type in my last program, and I couldn't get my program to stop giving me fatal run-time errors. here is the enumerated data type: [code]enum piece {EMPTY, BLACK, WHITE};[/code] Now, the trouble I am having is related to evaluation or assignment of this …

Member Avatar for FireSBurnsmuP
0
192
Member Avatar for Savage221

Hello, well, as the title states, I need to take the file input and store it into a string. It seems simple enough, just setup a for loop going through the total number of characters in the file input, or just do a while !EOF loop, the part I'm not …

Member Avatar for andor
0
105
Member Avatar for nithia

help in ow to append a text file ... a simple programme source code since willl be having exam 2morrow thank you

Member Avatar for may4life
0
101
Member Avatar for JS1988

I really appreciated your replys, it helps me a lot when i can see how it is done they way you did it.It really helped me with my other ones I was working out. Do you know how to write a program to print out the calendar for a whole …

Member Avatar for John A
0
153
Member Avatar for JRM

This is a great group! My next hassle is the care and feeding of gdb-or at least to get it to work right. I have a program that has a custom header which contains a bug. The program is either running wild or locking up. there is no output. I …

0
73
Member Avatar for pointers

Hi, I am a basic learner in c and datastrustures..... I want to know the conepts of trees, graphs... could u provide me a proper tutorial or a good link which discusses trees and graphs concepts in c language....... Thanks & Regards.

Member Avatar for Member #46692
0
138
Member Avatar for paradoxxx

Hi folks, I have an array of chars letters[], it has both mixed letters, and symbols. I nned a code that keeps a count of each letter entered, and any a count for all other non-letter symbols entered. Thanks in advance and God Bless. Jonn.

Member Avatar for paradoxxx
0
155
Member Avatar for indianscorpion2

hi my name is srikanth.i have been trying to develop a source code to print the pascal's triangle for the past three days.i have'nt had any success.i would be greatly obliged if anyone could give me a simple source code to print the pascal's triangle in C.

Member Avatar for Nick Evan
0
606
Member Avatar for neeven

/*QUESTION 2*/ [code] /*Program to compute frequency of a list of marks obtained by a group of students*/ #include <stdio.h> #define SIZE 100 main() { /*define n as number of students.x[SIZE] is a array to store marks of students*/ /*tempo[SIZE] is also used to store marks, but used in computation …

Member Avatar for Ancient Dragon
0
182
Member Avatar for ecoloney

Friends, I have an array of TEdits. They all use the same On Key Down method. How can I determine (from within my On Key Down method) which TEdit called the method ? Thanks,

Member Avatar for John A
0
145
Member Avatar for tilli

hi, i have to write a tcp client code, that takes in input from the keyboard which should be in the form num char num 33 AD 55 (AD being addition) then transfer this in a string buffer to the server, i dont know how to go about doing this, …

Member Avatar for John A
0
100
Member Avatar for orko

Hello, I usually don't complain too much. But this time I am getting mad. I just wrote a linked list, where 1. If the value was not present before in the list, it will be added. In this case, there is a capacity. If the new value increases the list …

Member Avatar for Lerner
0
137
Member Avatar for balgarath

is there any way to check what mode a FILE pointer has been opened in? ("r", "w")?

Member Avatar for Ancient Dragon
0
65
Member Avatar for slash10

am beginner in C..am trying out some questions in books n i want to write a small encryption program that will encode a word..cn any1one help?i want to convert a character such as 'a' to the next character of the alphabet that is 'b'...how should i proceed?

Member Avatar for neeven
0
193

The End.