15,550 Topics

Member Avatar for
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
107
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
116
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
27
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
88
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
89
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
61
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 iamthwee
0
118
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
135
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
558
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
121
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
121
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
85
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
126
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
57
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
176
Member Avatar for pointers

Hi i hav a doubt could u pls explain me.............. wt s da sizeof(int*) , sizeof(int**),sizeof(int) in the following code [code=c] int **p; int *q; p=(int *)malloc(sizeof(int *)) *p=(int *)malloc(sizeof(int)) **p=12; q=*p; [/code] Thanks and regards.

Member Avatar for Salem
0
95
Member Avatar for mandanainred

I am working on an assignment to get an intiger from user, find all prime numbers smaller that it, and show all of them which dont contain a '1'. for breaking the integer into digits, I am using " x / 10 % 10 " algorythem, but I as it …

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

I hav one doubt regarding post decriment,the code in c is as follows............. void main() { clrscr(); while(i--!=6) i=i+2; printf("%d\n",i); getch(); } I know the output is 5, but i read in a book dat the post incriment or decrement operators are evaluated after reaching semicolon(;).....but in while condition,the ondition …

Member Avatar for jim mcnamara
0
176
Member Avatar for pointers

Hi, I am a basic learner, could u pls provide me the c code for the pascal triangle....... Thanks & Regads

Member Avatar for WolfPack
0
84
Member Avatar for mandanainred

what is wrong with this code? [color=#0000ff]int[/color][color=#000000] myFunction([/color][color=#0000ff]int[/color][color=#000000] b)[/color] { [color=#0000ff]int[/color][color=#000000] c;[/color] [color=#0000ff]double[/color][color=#000000] z = b;[/color] [color=#0000ff]double[/color][color=#000000] d;[/color] [color=#0000ff]int[/color][color=#000000] y=0;[/color] [color=#0000ff]while[/color][color=#000000] (d<0)[/color] { d= (z/pow(10,y)); c = ([color=#0000ff]int[/color])d; c = c%10; [color=#0000ff]if[/color][color=#000000] (!(c=1))[/color] ++y; [color=#0000ff]else[/color] b=0; } [color=#0000ff]return[/color][color=#000000] b;[/color] } The compiler gets 3 erros of the pow(): - math.h(575): …

Member Avatar for Nick Evan
0
125
Member Avatar for slacke

Hello I need to work out some parallel port output signals. I found a short program to test bits on that port. It tells I need to set the permission with ioperm() as this: [CODE] #include <asm/io.h> #include <iostream> #include <cstdlib> #include <unistd.h> #define base 0x378 /* printer port base …

Member Avatar for slacke
0
195
Member Avatar for woj117

Hi, I have a list view report style. Im trying to sort by click on a header, and it works fine, but it sort only the items, and I would like to have ability to sort also subitems (like in Windows explorer when user click for example [B]size [/B]of header). …

Member Avatar for WolfPack
0
99
Member Avatar for paul_5

Hello everyone I'm new to this forum so please excuse me if I've asked this question in the wrong area. I'm trying to locate software (free if available) that would allow me to wrap a program allowing it to run for x number of minutes or days before requiring the …

0
41
Member Avatar for Tart

Hi, I'm a newbie. Is there any way to record packets sent by an external program (like WPE) and then store the sent data? Thank you.

Member Avatar for Ancient Dragon
0
53
Member Avatar for gwinera

Hello! I am first year student and i really need your help with writing very simple assignment! I am sure that this will be easy to solve for you! I have done something but it is not working! Can you check why?: Division of text into sentences. Write filter that …

Member Avatar for gwinera
0
90
Member Avatar for tlly

i'm a newbie to programming and i just wrote a program in 'C' but i'm having problem running it.It compiles, however, when i run it, it crashes on windows.Can anyone tell what i've done wrong?? if possible give me a solution... converter.c [code]#include <stdlib.h> #include <stdio.h> #include <malloc.h> #include <string.h> …

Member Avatar for iamthwee
0
185
Member Avatar for snedan

hi guys i need a little hint on how to break an integer into its component so if you have like 1567 i need to get 4 integers with 1,5,6,7. Thank you

Member Avatar for ~s.o.s~
0
96
Member Avatar for ramyasree

[code=c]struct DATA { pid_t pid; int lenth; char buff[128]; }; main(int argc, char* argv[]) { int pos,chlds,fd[2],ifd,ofd,i,n,nofreads[50]; struct DATA data; pid_t pid,child[50]; FILE *fp; pipe(fd); chlds=atoi(argv[1]); ifd=open(argv[2],O_RDONLY); for(i=0;i<chlds;i++) nofreads[i]=0; for(i=0;i<chlds;i++) if((pid=fork())==0) { // ONLY CHILD COMES HERE close(fd[0]); data.pid=getpid(); while((data.lenth=read(ifd,&data.buff,128))>0) { write(fd[1],&data,sizeof(data)); //sleep for random time (0-chlds seconds) sleep((rand()%10)+1); } …

Member Avatar for WaltP
0
179
Member Avatar for Dextral

Hi, I'm updating an IM client C app (for Windows XP) so that when a users screensaver comes on their presence state changes from online to away. What I've done so far is add: [code=C] while(TRUE){ refreshAutoAway(); Sleep(1000); } [/code] to the end of the WinMain function. This all does …

Member Avatar for Ancient Dragon
0
89
Member Avatar for rxgmoral

dll problem,help me:) i create dll project ,the dll is Use MFC in a Static Library i hope exe call ListCtrl class from dll ==================DLL==================== <<<<<<<<<<ListCtrl.h>>>>>>>>>>>>>>> [code=c] #pragma once class AFX_EXT_CLASS ListCtrl :public CListCtrl { public: __declspec(dllexport) ListCtrl(); __declspec(dllexport) ~ListCtrl(); public: DECLARE_MESSAGE_MAP(); public: afx_msg void OnNMClick(NMHDR *pNMHDR, LRESULT *pResult); }; …

Member Avatar for Ancient Dragon
0
181

The End.