15,540 Topics

Member Avatar for
Member Avatar for vijaysoft1

I am trying to to Develop a Dictionary in C and it is completed almost . I want to create a List box (Auto Complete) Function . I created the List box as same as the image . And loaded the array into it . Initially the list is A-Z …

Member Avatar for Prabakar
0
182
Member Avatar for madankumar

HI I would like to pass new argument to cureently running process with out interuption in unix using c code can any one Idea on this Please suggest Thanks in Advance Madan

Member Avatar for madankumar
0
77
Member Avatar for the reaper

hello all...i need help with the code below.. [code] #include <stdio.h> #include <windows.h> main() { MessageBox(0,"hello world","hello world",0); fflush(stdin); getchar(); } [/code] now i know it is perfectly clean code...but the problem is if i put 2 messagebox functions linke this [code] #include <stdio.h> #include <windows.h> main() { MessageBox(0,"hello world","hello …

Member Avatar for the reaper
0
111
Member Avatar for plike922

i am trying to write a program that finds all twin primes between 1 and 100. any suggestions? [CODE]#include <stdio.h> #include "genlib.h" #include "simpio.h" int main() { int n1, n2, y, x; printf("This program list all the twin primes.\n"); for (y = 3; y <= 98; y += 2) { …

Member Avatar for jaikjoel
0
276
Member Avatar for abhisdm

I'm getting an error msg as Type mismatch in redeclaration of 'putw' for the following code... Can anyone suggest the reason for this??? [code]#include<stdio.h> union pw{ short int i; char ch[2]; }; int putw(short int num, FILE *fp); int main() { FILE *fp; fp=fopen("test.tmp","wb+"); putw(1000,fp); fclose(fp); return 0; } int …

Member Avatar for ArkM
0
150
Member Avatar for dongzhe

for my new job, i have to learn coding for the chips. i know c, but i don't have any idea about how to coding for chip. anyone can give me some hit where is good place to get start.

Member Avatar for swaira umar
0
150
Member Avatar for dummy programer

I NEED HELP WITH THIS PROBLEM!!!! ANYONE!!!! /*3. Write the function: double max_norm(double *v, int n) to compute the maximum norm of vector v[] with n elements. The max norm of a vector is computed by taking the maximum absolute value of its elements. In prob3() compute x1[]=a[][]*x0[], call max_norm() …

Member Avatar for dummy programer
0
67
Member Avatar for piods

how to cast a floating point to display an fraction form?? is there a way??

Member Avatar for ArkM
0
129
Member Avatar for makubexiii

I'm almost finished with this but got stuck in trapping it when 1)there is a winner 2) a player attempts to enter a position that has been previously filled [CODE]#include<stdio.h> #include<conio.h> display(); game(int turn, int board[3][3]); output(int board[3][3]); main() {int turn=1, board[3][3]={0}; clrscr(); display(); while(turn <= 9) {game(turn, board); turn++; …

Member Avatar for makubexiii
0
111
Member Avatar for acchao

Hey, This a bit of a lengthy problem to explain, please bear with me. My goal: Read in a data file (written in ASCII) and convert it to a smaller format (such as binary) The Problem: I start off with a proprietary format called Heim RawData. I currently don't have …

Member Avatar for Adak
0
230
Member Avatar for monjuri

hello everyone. i m monjuri. i want to find out the execution time of a C program. it works fine. but i want the time in milisecond or microsecond. Can anybody help me??? here is my code: /*insertion code*/ #include <stdio.h> #include <time.h> #define maxsize 10 int A[maxsize]; int value,j,i; …

Member Avatar for ArkM
0
150
Member Avatar for Clockowl

Hey guys, I'm parsing this WaveFront .obj file, still (for those that have read the previous post), but it has some really weird error in it that I haven't seen in a program before. The parsing algorithm starts out like this: [code]Open the file in textmode. Get filesize Allocate buffer …

Member Avatar for Prabakar
0
381
Member Avatar for pauljahill

I am trying to create a program that will count and display the number of vowels, consonants, spaces and full-stops within a 50 character limit. There is one error that the compiler keeps bringing up and when i try to fix it by changing the text it creates more errors …

Member Avatar for Major Major
0
120
Member Avatar for plike922

I cant find anything wrong with my program, any suggestions? [CODE]#include <stdio.h> #include "simpio.h" #include "strlib.h" #include "random.h" int main() { int s, r, h, w, l, t, shape; string box; string cube; string cylinder; printf("Please enter the shape; "); shape = GetLine(); switch(shape) { case 1:cube();break; case 2:box();break; case …

Member Avatar for @bhi
0
191
Member Avatar for file sharer

I am Mritunjay from India.I want to study C programming language.As I want to be a PHP developer.I have heard that one should know C before knowing PHP. How can I get daily classes for C? What is the initial step for it?I want to start with with abc of …

Member Avatar for Ancient Dragon
0
115
Member Avatar for shankhs

Hi guys! I have started learning geometry and wrote a code to calculate the distance between a line(or a segment) and a point. Here is my code: [code] #include<stdio.h> #include<math.h> #include<stdlib.h> int dot_pdt(int a[],int b[],int c[]) { int ab[2],bc[2]; ab[0]=b[0]-a[0]; ab[1]=b[1]-a[1]; bc[0]=c[0]-b[0]; bc[1]=c[1]-b[1]; // printf("%d\n",(ab[0]*bc[0]+ab[1]*bc[1])); return (ab[0]*bc[0]+ab[1]*bc[1]); } int cross_pdt(int …

Member Avatar for Prabakar
0
149
Member Avatar for aannjjaallii
Member Avatar for me_roy

my problem is quiet similar, i used atof here my data and code: "square10.dat" 0.01 1:0.1 0.04 1:0.2 0.09 1:0.3 0.16 1:0.4 0.25 1:0.5 0.36 1:0.6 0.49 1:0.7 0.64 1:0.8 0.81 1:0.9 1.00 1:1.0 THE CODE: [code=c] #include <stdio.h> int main() { char c[10]; /* declare a char array */ …

Member Avatar for Major Major
0
116
Member Avatar for tzushky

Hello, this type of structures are confusing. I hav been working with C for a while but this subtlety is yet unknown. I have come accross such a structure in a program where suposedly it will be used for FIFO management: [CODE=C] typedef struct FIFO_TAG{ struct FIFO_TAG *NextElement; }FIFO; [/CODE] …

Member Avatar for tzushky
0
271
Member Avatar for fatasscp

Hello World! I am trying to read in a list of numbers from a file and put it into an array. Please i would be unbelievably grateful if you could tell me whats wrong with my code. This is my code: [code] #include <stdio.h> FILE *fi; FILE *fo; int main() …

Member Avatar for me_roy
0
187
Member Avatar for plike922

We i compile this program is shows that percents as 0.... any suggestions. [CODE]#include <stdio.h> #include "simpio.h" #include "strlib.h" #include "random.h" #include <math.h> int main() { int g1, g2, g3, g4, w1, w2, w3, w4, p1, p2, p3, p4; string n1; string n2; string n3; string n4; //-------------------------------------------// printf("Enter first …

Member Avatar for Ancient Dragon
0
118
Member Avatar for sinner

please help me in this code please remove all these errors because i did not remove these errors due to beginner in c

Member Avatar for Aia
0
109
Member Avatar for plike922

I am trying to create a program that finds the GCD of two numbers using the brute force... So far i have this but my problem (I hope) is that i cant get the value of g into int main() Here is my program. Any suggestions? [CODE]#include <cstdio> #include "simpio.h" …

Member Avatar for Prabakar
0
167
Member Avatar for @bhi

I am getting an error when using the gcc compiler saying: /usr/bin/ld: crt1.o: No such file. No such file or directory collect2: ld returned 1 exit status Can somebody please explain what this means and how it can be rectified. Is it a problem with the compiler? Thanks in advance.

Member Avatar for @bhi
0
134
Member Avatar for sinner

this code in c++ please convert this code in c i really thankful to you because today i have shortage of time please do this for me

Member Avatar for ArkM
0
72
Member Avatar for lehe

Hi, When using "..printf Functions" with Conversion specifier type "%g", it gives different results under different environment. For example, "sprintf(string,"%g",1e-6);" gives "1e-006" in Windows (Visual C++) and "1e-06" in Linux (gcc). Maybe I am wrong about it. Is it possible to get the same format under whatever operating system or …

Member Avatar for ssharish2005
0
106
Member Avatar for triadR

hi, i've a code shown like this.. [CODE='c'] #include <stdlib.h> #include <stdio.h> #include <winsock2.h> #include <pcap.h> #include <remote-ext.h> #define ETH_IP 0x0800 // type: IP #define ETH_ARP 0x0806 // type: ARP #define ETH_ICMP 0x0800 // type: ICMP = IP #define ARP_HARDWARE 0x0001 // type for 802.3 frames #define ARP_REQUEST 0x0001 // …

Member Avatar for triadR
0
236
Member Avatar for rob_xx17

hello, I have a situation where I'm going to be generating a whole bunch of numbers. These numbers will be in the range between 0 and 1. What I will have to do is to separate these numbers into 100 different groups depending if the number is between 0 and …

Member Avatar for ArkM
0
115
Member Avatar for plike922

I am trying to fix this "error C2447: '{' : missing function header (old-style formal list?)" i looked over the program and cant find anything wrong. Here is my program. [CODE]#include <iostream> #include <stdio.h> #include "simpio.h" #include "strlib.h" #include "random.h" using namespace std; #define LowerLimit 0 #define UpperLimit 200 #define …

Member Avatar for VernonDozier
0
223
Member Avatar for plike922

I am trying to create a program that gets the solution of a quadratic formula, but i keep getting an error and i cant figure it out. 1>quad.cpp(14) : error C2440: '=' : cannot convert from 'int (__cdecl *)(void)' to 'int' 1> There is no context in which this conversion …

Member Avatar for dmf1978
0
170

The End.