15,551 Topics
![]() | |
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 … | |
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 .. … | |
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] … | |
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: . . … | |
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. | |
great !!!hi to all viewers ..., is there something who have a c program about games,,... | |
[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] | |
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 … | |
how save text file which is made by c and how add a new information in after saving it? | |
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 … | |
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 … | |
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] | |
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. … | |
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 … | |
what's mean by definition and declaration in c? how u call this: int i; | |
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. | |
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 … | |
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 … | |
How to solve 'missing ws2_32.lib' problem ?? Can anyone suggest a good site from where this can be downloaded..? | |
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); … | |
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 … | |
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. | |
the NTVDM CPU has encountered an illegal instruction. CS:035eIP:0401 OP:ff ff choose 'close' to terminate the application | |
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 <<*> … | |
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 … | |
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 … | |
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 … | |
[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); … | |
We have two ways 2 access files . Open and its friends and mmap system call . When to use mmap() and what are its advantages? | |
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. | |
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? | |
[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! | |
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? | |
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 … | |
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 … | |
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 … | |
#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 | |
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 … | |
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 … | |
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 … | |
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 = … | |
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 | |
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 … | |
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; … | |
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 … | |
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> … | |
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" | |
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. | |
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 … |
The End.