15,551 Topics
| |
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 … | |
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 … | |
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 … | |
[B]How do we manage the events of controls in the parent from a child form using C#.[/B] :?: | |
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 … | |
help in ow to append a text file ... a simple programme source code since willl be having exam 2morrow thank you | |
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 … | |
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. | |
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. | |
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. | |
/*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 … | |
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, | |
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, … | |
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 … | |
is there any way to check what mode a FILE pointer has been opened in? ("r", "w")? | |
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? | |
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. | |
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 … | |
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 … | |
Hi, I am a basic learner, could u pls provide me the c code for the pascal triangle....... Thanks & Regads | |
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): … | |
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 … | |
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). … | |
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 … | |
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. | |
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 … | |
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> … | |
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 | |
[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); } … | |
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 … |
The End.