15,540 Topics

Member Avatar for
Member Avatar for animefun2

[CODE] #include<stdio.h> #define MAX 4 main() { float A[MAX]; int i; for(i=0;i<MAX;i++) scanf("%f",&A[i]); return 0; } [/CODE] im using Visual C++ and doesnt give me any compilation error it keeps giving me a run time error after i enter the 1st number i can't figure out whats wrong :S help?

Member Avatar for abhishekjha
0
255
Member Avatar for DJSAN10

Why do we have to suffix long literals by 'L' or 'l' even though we have specified the datatype ? Does it serve any special purpose?

Member Avatar for DJSAN10
0
155
Member Avatar for Kluss

Hello, I need to implement a simple project: create a basic web-site to read online stream from my web-camera using its IP address. BUT I´d like to use my Arduino microcontroller and WiFly shield without using a laptop. Could please someone give an advise - links to related tutorials or …

Member Avatar for adityatandon
0
182
Member Avatar for eoop.org

Hello :) I have written a os in C and assembly, but my os is only a text based os. How can i make it into a OS with GUI ?

Member Avatar for adityatandon
0
152
Member Avatar for dev90

i want to go back to main menu while hitting escape key in my programme. for that i have make a function. [CODE]void exit (char[]) { if(char==27} { exit(0); } } [/CODE] but i have many user inputs which are of type int,float,char..... so i have tried, [CODE]while(kbhit!=27) { //coding …

Member Avatar for adityatandon
0
2K
Member Avatar for glazier

This is the problem: Create a program that will create in adding of multiple exxpressions. Use while, do while and for loop. Here is how the output should be: (You should be enterring a number first) *for example I enterred number 5 1 + 4 = 5 2 + 3 …

Member Avatar for adityatandon
-2
125
Member Avatar for Hazkhan

I want to build a program for my c language project.What i need to do is that the user should enter the number of students,number of questions,correct answers,each students answers answers and then the program should calculate the number of correct answers,and their standing,the most wronged question . the problem …

Member Avatar for adityatandon
0
2K
Member Avatar for Graphix

Hi, I've been working on a project that needs to list all the drives on a computer (it's kind of a file explorer, but without using the standard one provided by windows). I've searched and found the function [URL="http://msdn.microsoft.com/en-us/library/windows/desktop/aa364972%28v=VS.85%29.aspx"]GetLogicalDrives()[/URL], which does exactly what I want. However, the return value is …

Member Avatar for rubberman
0
100
Member Avatar for secret-code

Hii everybody I was building RPC based server-client application I have a struct called event contains int type long int time I have a function in a server that `return (*event)` event * log_1_svc(event *argp, struct svc_req *rqstp) { static event* result; result = (struct event*)malloc (3 * sizeof (struct …

Member Avatar for adityatandon
0
209
Member Avatar for Xinen

So my teacher asked us to make a problem. This was just passed to me by my classmate and this is the problem: [QUOTE]flow chart problem: a. Create a flowchart that will determine the sum of two numbers and if the sum is greater or smaller than 50. (0-50 less …

Member Avatar for zeroliken
0
106
Member Avatar for missil9

Hey I have been kicking myself with this problem for a week now and i was wondering if anyone can help. I am implementing cURL to fetch source code from a website. I am using fairly common code to do so. If I implement the functionality in my main.cpp, it …

Member Avatar for missil9
0
177
Member Avatar for ben25x

Before looking at the code, here's an explanation: NIDAQmx is a hardware-in-the-loop integration software from National Instruments. They give this sample code to create any voltage out of the card. The variable "float64 data[1]" is a double precision floating point that defines the actual voltage being emitted from the card; …

Member Avatar for ben25x
0
449
Member Avatar for Albion1

Can you help me for the following problem: Implementation of a program in C that solves the problem of competition between the four processes that share the source of the network card with the semaphore method

Member Avatar for WaltP
0
50
Member Avatar for 3435

[B]Hello everyone!![/B] I am new to Linux forum and have a question related to typecasting in C related to offset of structures.I have a piece of code and having a problem with this: [CODE]void fun(struct c *p) { int offset; struct b *address; offset=(char *)&((struct c *)(&((struct a*)0)->y)->j)-(char *)((struct a …

Member Avatar for Trentacle
0
183
Member Avatar for shibu2all

Hello Members, Can anyone please help me out with the concept of INSERTION AND DELETION OF ELEMENTS IN ARRAY.. I have understood the logic behind this, but i am facing problem with the coding thing.. i am not able to get it properly.. can anyone here pls help me out....

Member Avatar for mridul.ahuja
0
132
Member Avatar for programing

hi i need to help me to understand this code how its work and depend on what it determine how many time yopu should enter values [CODE]#include <stdio.h> #define SIZE 100 #define SENTINEL -99999 #define TRUE 1 #define FALSE 0 #define READ 10 #define WRITE 11 #define LOAD 20 #define …

Member Avatar for DJSAN10
0
217
Member Avatar for farhanakram

i have written following insertion sort program for a doubly linked list completely by myself.The the sort function is giving me Segmentation error and i am unable to figure it out...Plz help me out and forgive me if the code is too wrong to handle.. [CODE] //insertion sort using doubly …

Member Avatar for farhanakram
0
6K
Member Avatar for YAMNA MIDHAT

this is my program but this is not working well.according to me a window should be created and some text will be written there.but the window is not working please can any one tell me why?and how can i eject this error. mind that compiler is running the program correctly.. …

Member Avatar for zeroliken
-2
200
Member Avatar for curlissue657

hi i'm trying to download a zip file from a website then save it under C:\\ (directory) but when the file has been downloaded, and when i open it, it seems incomplete, besides why do i need to write in the file, i just wanna download it then save it …

0
61
Member Avatar for mattitude
Member Avatar for protestor

Hi, I use an msp430f16 and I want to calculate the execution time of a code (in milliseconds) any idea? thanks

Member Avatar for rubberman
0
171
Member Avatar for fka

Hi everyone, I wrote something like that: [CODE] book *library = NULL; customer *service = NULL; do { printf("**********MENU***********\n"); printf("* #1 List of books *\n"); printf("* #2 Add book *\n"); printf("* #3 Search by title *\n"); printf("* #4 Search by category *\n"); printf("* #5 Search by author *\n"); printf("* #6 …

Member Avatar for fka
0
289
Member Avatar for mohan_198505

hi, can anyone provide me the C code for login in screen.I m using C(borland)compiler and working on xp. The requirments are following- 1.Should accept user name as user-1,user-2 2.Accept password(should not displyed on the screen) 3.A case insenstive coparison is to be done for usname and password. 4.Login name …

Member Avatar for dij_0983
0
500
Member Avatar for madmhan84

Hope someone could help me on this one, thanks in advanced! My objective is to repeat an input until the user hit/press the letter 'N' But the problem is when it comes to the part of answering the question: "Add Another Number? [Y/N]" the program stops! Here's my faulty code: …

Member Avatar for madmhan84
0
158
Member Avatar for Gaiety

Hi, I just started unix programming . below are the two files i am using for reading/ writing from/to a named pipe called RNP. read.c is run on one terminal and write.c is run on other terminal. write.c is accepting the input , but read.c is not reading the input …

Member Avatar for Gaiety
0
145
Member Avatar for brcondor

Hi all, I need some help. How can i load a bmp file and trasform it into a matrix of floating point elements? I have read about the internal structure of a bmp file: should I create a struct with that specification? And then just using fread and create the …

Member Avatar for Ancient Dragon
0
44
Member Avatar for terence193

I am trying to store data from two variables in a text file .. and then try to get the data back and output it on screen but somehow the following program is not working as supposed to be. I first enter data in the two variables n1 and n2 …

Member Avatar for zeroliken
0
91
Member Avatar for mnNewbie

I need to basically rewrite grep command: method is suppose to take an exact string and an exact filename as the 2 arguments grep<string><filename> then it has to search through the file for the string and print out the "line" and the "line number" the string is in. example #grep …

Member Avatar for WaltP
0
289
Member Avatar for tejaspandey

[CODE] #include <stdio.h> #include <stdlib.h> int main() { FILE *fp; char ch; fp=fopen("exp.txt","w"); while( (ch=getchar()) !=EOF) { putc(ch,fp); } fclose(fp); return 0; } [/CODE] I am using gcc compiler in linux mint This code is not working only exp.txt is created which is empty.

Member Avatar for Gaiety
0
145
Member Avatar for shwee

[code] main() { if() { if() { if() { something () /* something so that the program executes the last line means last printf without using goto ststement */ } } } printf("hello"); } [/code]

Member Avatar for Narue
0
161

The End.