15,551 Topics

Member Avatar for
Member Avatar for mukund_yk

Hello everyone. i tried to write a program to eliminate nos from a file: this is what i mean: 001 #include <QApplication> 002 #include <QPushButton> 003 int main(int argc, char *argv[]) 004 { 005 QApplication app(argc, argv); 006 QPushButton *button = new QPushButton("Quit"); 007 QObject::connect(button, SIGNAL(clicked()), 008 &app, SLOT(quit())); 009 …

Member Avatar for Ancient Dragon
0
98
Member Avatar for jeevsmyd

Here is a program to find the sum of n numbers entered .. I have done this programme in c++ but now I was asked to do it using c.. there is some error with the program.The basic array input ,display thing itself is not working.. Kindly help me .. …

Member Avatar for jeevsmyd
0
117
Member Avatar for heinzw

Hi, I am using a FILE to write a protocol of the program execution which I will be using in case of crashes. Whenever I write a message to the file I open it [CODE] if ((mfdprot = fopen(protfile, "a")) == NULL) { [/CODE] after that I close it: [CODE] …

Member Avatar for heinzw
0
288
Member Avatar for jmangu

Hello, I need help concerning <curses.h> and <conio.h> libraries issues. There's a conflit between both libraries when I compile my software in Dev-C++ (XP OS). 1. In <curses.h> there's this code line: . . . extern int COLORS,COLOR_PAIRS; . . . 2. In <conio.h> there's this code line: . . …

Member Avatar for Ancient Dragon
0
443
Member Avatar for Member 785459
Member Avatar for zoozoo1

Hi all, I wanna write a c program in linux which login to another linux machine using ssh. The program should enter the username/password, run a command in that machine and save the o/p in a file. Can anybody help me??? Thanks in advance.

Member Avatar for kings_mitra
0
108
Member Avatar for Member 785534

great !!!hi to all viewers ..., is there something who have a c program about games,,...

Member Avatar for kings_mitra
-2
113
Member Avatar for Member 785678

[I]hi . im a 2nd year iT student , please help me think any programs that contains math analysis and by using for loop . any suggestions? :)) glad to have . thanks ! :))[/I]

Member Avatar for kings_mitra
-1
60
Member Avatar for midget66

I' working on an array where the user inputs characters(up to 80). I then need to output the characters, one per line, until the string is null. My problem is in the while loop i think, im just not sure what to do from here. Any ideas? [CODE]#include <stdio.h> void …

Member Avatar for kings_mitra
0
136
Member Avatar for Member 785459

how save text file which is made by c and how add a new information in after saving it?

Member Avatar for lionaneesh
-1
80
Member Avatar for midget66

I am working on a program in c and I am trying to declare a ten element array, using a for loop to insert the elements. I am also using a second for loop to acquire the sum of all the elements in the array. I'm new to programming so …

Member Avatar for midget66
0
94
Member Avatar for Member 784361

hello guys i need your help , i am new in c language and i need to know if i can use c langiage to open images , i asked my programming teacher and he said i can not but i think it is possible so please if it is …

Member Avatar for Ancient Dragon
0
152
Member Avatar for xaop

Please let me know where i have done the mistake [CODE]#include <stdio.h> #include <conio.h> #include <math.h> void main() { int f=0,s=1,n; n=f+s; if(n<=18); { printf("%d" ,n); f=s; s=n; n=f+s; } getch(); }[/CODE]

Member Avatar for xaop
0
195
Member Avatar for mamashi

I have a problem at hand. It is to generate a C code - i need to do the following, i will capture an image, then save that image on a folder let say c:\\ program files\myfolder\image.bmp and then i use the OCR to read the number, let say 0102. …

Member Avatar for mamashi
0
158
Member Avatar for ishwarverma

Hi guys, i am having some problm while building my C code through VC++6.0. The following error i am getting while building: --------------------Configuration: ReportVARS - Win32 Debug-------------------- Linking... ReportVARS.obj : error LNK2001: unresolved external symbol _BTRV@24 PHCLUST.OBJ : error LNK2001: unresolved external symbol _BTRV@24 BTRVUTIL.OBJ : error LNK2001: unresolved external …

Member Avatar for Member 784668
0
352
Member Avatar for shankarz
Member Avatar for Banfa
0
197
Member Avatar for Francis Waldron

I'm have trouble getting my area/volume progam going on a circle,cylinder,sphere,cone One with out a menu and onwe with a menu. Thanks for all your programmers help. This is a great site for help.

Member Avatar for Ancient Dragon
0
108
Member Avatar for ravimodi

Hi, I want to develop routine based on MAC-ID of LAN card to prevent my s/w from piracy. The program should be able to create encryted text file containing some encryption alogorithm based on MAC-ID of LAN Card. It should be nearly impossible to recover the MAC-ID from the encrypted …

Member Avatar for Banfa
0
79
Member Avatar for rapids79

I'm working on a code that enables the user to input a string , compare it to some text in a file then send the approriate data ( from another file) using serial communication or TCP/IP. I ahve implemented the serial communication part but the TCP/IP..I've looked around but have …

Member Avatar for technology
0
157
Member Avatar for farah up

How to solve 'missing ws2_32.lib' problem ?? Can anyone suggest a good site from where this can be downloaded..?

Member Avatar for kings_mitra
0
66
Member Avatar for gopi17

I'm having some trouble with the output here...can anyone help me...learning how to use to C language, more of a C++ programmer...i tried using all sort of declaration but the output is still the same... [CODE] int i; float x = FLT_MAX - (2.0); double y = DBL_MIN - (2.0); …

Member Avatar for kings_mitra
0
107
Member Avatar for baillot

Hello I am sorry if this is a dumb question but is it conceivable to determine the memory address of a function that is inside a running application from another application? Say I have an application A that has a function helloWorld(). A is being launched. I would like to …

Member Avatar for gerard4143
0
174
Member Avatar for vivek01anand

there are N elements in an array. u have one number x. u have to check whether there exists two elements in that array whose sum is x. But order should be less than N^2( N square). i dont know the method how to achieve order less than n^2.

Member Avatar for invisal
0
114
Member Avatar for laky

the NTVDM CPU has encountered an illegal instruction. CS:035eIP:0401 OP:ff ff choose 'close' to terminate the application

Member Avatar for Ancient Dragon
0
48
Member Avatar for sofeware-acm

Question : I use my code test sample which can got the right answer. But when I upload ACM Judge. It appear wrong answer. Could everybody tell me what wrong with me ? Thank you. <pre> Sample Input The following text<C><B>is centred and in boldface</B></C># <B>This <\g>is <B>boldface</B> in <<*> …

0
35
Member Avatar for goodwillwins

Well i have the following program where i need to swap students(dynamically created structure array) . Just cant seem to get the swap right. Main problem's here : [code=c] struct student *stemp; stemp=(struct student *)malloc(sizeof(student)); *stemp.name=s[i].name; s[i].name=s[j].name; s[j].name=stemp->name; [/code] Other info : [code=c] where s[i] belongs to a dynamically created …

Member Avatar for goodwillwins
0
111
Member Avatar for Shikhin

First of all Hello to all of you. I am new to programming(about a week since I started learning it), a little young(12 years old) and totally interedtes in its thrill. Second of all I would like to clear the [I]superstition[/I] that students join this forum as they want you …

Member Avatar for Shikhin
0
178
Member Avatar for iqra123

Hiie i have to convert unsigned char to char array. i m using ultoa() function that converts unsigned long char to a string. but it is giving me an error of Type Mismatch. actualy i have tsend my data to server side where it is recieving in char array. so …

Member Avatar for kings_mitra
0
176
Member Avatar for xxpokerxx

[CODE=c]#include <stdlib.h> #include <stdio.h> #include <string.h> /* a structure that defines a string buffer */ typedef struct strbuf { char *contents; /* pointer to dynamically allocated buffer contents */ size_t length; /* number of characters in buffer (excluding '\0') */ } StringBuffer; /* function prototypes */ StringBuffer *strbuf_new(const char *cstr); …

Member Avatar for xxpokerxx
0
215
Member Avatar for abhi74k

We have two ways 2 access files . Open and its friends and mmap system call . When to use mmap() and what are its advantages?

Member Avatar for gerard4143
0
79
Member Avatar for Maryaa

I am new with allegro.I dont know from where I must study for write pacman with allegro in c.please help first what I must do and from where I can study.

Member Avatar for Maryaa
0
73
Member Avatar for Bips123

Hi, is there a way to avoid the conventional Black Background of C program While its execution? can the fonts be changed or can we include graphics/photos in C so that we can view it during its execution?

Member Avatar for Adak
0
76
Member Avatar for kymarscheng

[U]Which is the best IDE for C?[/U] Currently using Dev-Cpp. I am just wondering if there's any other better IDE around. Eclipse, NetBeans, Dev-Cpp, CodeBlocks or other??? thanks!

Member Avatar for tokenjoker187
0
257
Member Avatar for NeishaB

How to build an array containing all consonants in a string of lowercase text? No consonant should be repeated in the array even if it occurs more than once and print the number of consonants occurring?

Member Avatar for NeishaB
0
119
Member Avatar for neti1987

hi! I have to check file's permissions, but I'm not sure how should I check the [B]g[/B]roup and the [B]o[/B]ther permissions. I'm not sure I did it right for the group and the user. for the other - I guess I have to use the "S_IROTH" flaf. here is my …

0
92
Member Avatar for iqra123

hello i have a simple client server program in which different paramters are asked by client. i want to use cryptographic techniques like DES, AES, RSA but i do not know how and where to use.... i m doing socket programing first time even programing in linux. so i do …

Member Avatar for iqra123
0
132
Member Avatar for jmangu

Please, someone explain me why when I compile this code in Dev-C++ (Windows OS) the following error message apears: 'clrscr' undeclared (first use this function) int main() { int c; char d; clrscr(); printf(" Example program for PSC232 \n"); setup(); printf("*IDN?\n\r"); send("*IDN?\n"); printf("RECEIVE...\n\r"); loop: receive(); goto loop; } ps: ignore …

Member Avatar for jmangu
0
2K
Member Avatar for vivek01anand

#define prn(a) printf("%d",a) #define print(a,b,c) prn(a), prn(b), prn(c) #define max(a,b) (a<b)? b:a main() { int x=1, y=2; print(max(x++,y),x,y); print(max(x++,y),x,y); } output:222342 pls explain how we get output 342 at end

Member Avatar for lionaneesh
0
131
Member Avatar for fussballer

Hi, I am working on a small program (in Windows) to control the Speed of a CD Drive. So far I have used some of the IOCTL_CDROM_... and IOCTL_STORAGE... Control codes to control the drive by opening/closing it etc. I have now developed a small piece to also control the …

Member Avatar for wisaacs
0
521
Member Avatar for gamer42001

Hello, ive been given an assignment to write a program wich will accept possible titles and rearange them in abc order, now beside that the program should also count how many times a title begins with a certain letter. my question is how, or where do i even start to …

Member Avatar for lionaneesh
0
121
Member Avatar for babis87

Hello, I'm writing a lexixal analyzer on FLEX, and i want to open an #include file. Calling fopen(yytext,"r"); as shown in flex manual http://flex.sourceforge.net/manual/Multiple-Input-Buffers.html#Multiple-Input-Buffers does not open the file, although that the string in yytext has the value "<filename>". Instead, when i use fopen("<filename>","r") the file opens normaly and the …

0
72
Member Avatar for mithunp

I am doing malloc(0) and then doing strcpy and then reversing, and its working, why?? and if i dont do malloc(0) and then try to strcpy program carashed as expected, but how does malloc(0) making a difference.[code]#include <stdio.h> char* reverse(char *data); void my_Strcpy(char* dest,char* source); main() { char* p_Name = …

Member Avatar for Dervish1
0
216
Member Avatar for jmangu

I'm trying to find the curses.h library over the internet and so far I haven't any luck. Please help me sending the code for Windows OS. Many thankx in advance. jmangu

Member Avatar for jonsca
0
124
Member Avatar for michellemullen

I've got a C assignment to make a "Rolodex" project. I wrote out the whole assignment just so you would understand the scope. I'm just getting going on this. Last week's lecture was about Dynamic Self Referential Lists in C, so I get the concept of what I'm supposed to …

Member Avatar for ravi.d
0
327
Member Avatar for amandeepsinghvi

Hello Friends, I was just writing a program in C. In this program i was trying to give the rotation affect like the for pie-slices are moving. [CODE] #include<stdio.h> #include<conio.h> #include<graphics.h> #include<dos.h> int main(void) { int gd=DETECT,gm,i=1,count=1; initgraph(&gd,&gm,"d:\\tc\\bgi"); do{ i=count%2==0?2:1; setfillstyle(1,i); delay(500); pieslice(319,239,20,60,100); //A1 i=count%2==0?1:2; setfillstyle(1,i); delay(500); pieslice(319,239,120,160,100); //B1 i=count%2==0?2:1; …

0
28
Member Avatar for carrythe1

Hi, I know the code for this post is quite long, but I thought it would be best to be comprehensive about what i'm trying to do as i'm not exactly an expert in this area of programming. I'm stuck trying to work out how to get windows hook procedures …

Member Avatar for carrythe1
0
2K
Member Avatar for amishosh

Hi! I copied and pasted a grapics.h example from the help>index in borland C. When I try to run it the compiler gives me 9 error messages, all going something llike this: Linker error: Undefined symbol _closegraph in module "my file name" here's the example: [code] #include <graphics.h> #include <stdlib.h> …

Member Avatar for leduduong
0
430
Member Avatar for genie0582

I tried to debug Macro variable but i cannot. I use Dev c++ [CODE]#include<stdio.h> #define TIME 5 int main() { int i=TIME; printf("%d",i); }[/CODE] when I run it, of course it gives correct result. but when I debug, it reports "TIME = not found in current context"

Member Avatar for Adak
0
106
Member Avatar for morelve

I want to make a native win32 program that simply moves the cursor to x=100 y=200 on the screen, and then clicks the left mouse button once. Where do I start? For once, Google got me nowhere. I use VC++ 2010 to compile.

Member Avatar for Adak
0
3K
Member Avatar for ashish2234

I know its silly but once i tried this and output is not what it should be.. [code] #include<stdio.h> #include<conio.h> int main() { int i=0; i=i++; printf(i); } [/code] i MEAN post increment will store a value, say 0 here.and then increment but that value is given to the variable …

Member Avatar for genie0582
0
310

The End.