15,550 Topics

Member Avatar for
Member Avatar for kacete

Hey guys, I'm having another problem (two actually) with a function that reads 5 variables (type [B]int[/B]) stored in an text file, separated by lines ([B]\n[/B]) and then it returns them to use in the main() program. The thing is, I do not know how to return them to the …

Member Avatar for kacete
0
178
Member Avatar for vaibhour

Hey i am outta my wits to get the folowing output in C. Can ne1 help O/p reqd: 1 1 2 1 1 2 3 2 1 1 2 3 4 3 2 1 and so on. see th pyramid is not the desired one when you open this post.go …

Member Avatar for vikas1
0
116
Member Avatar for danibootstrap

I have a C code and I when I compiled it as just a single file it did .But now I want to make a project and when I created the main.c with the same code I am getting the following error. Makefile.win:29: *** multiple target patterns Build error. Can …

Member Avatar for sanmay
0
179
Member Avatar for Clockowl

Hey guys, This program gives me a nice segfault (on line 27 and if it's removed on the realloc() below that) and I can't seem to figure out why. Any help is greatly appreciated. [code=c] #include <stdio.h> #include <stdlib.h> #include <string.h> /* Parses parse_this for tokens using strtok() with seperators …

Member Avatar for Salem
0
105
Member Avatar for DIYON

Hi, Can anyone help me please!!! I'm new to C++ and trying to do my coursework......I want to know how to write a programme to generate random numbers uniformly distributed between 0 and 1. Any help is much appreciated. Thank you,

Member Avatar for grumpier
0
72
Member Avatar for amit.turkaspa

hallo i wrote a program with 3 different functions. something wrong with her and i cant see it. [code=c] #include<stdio.h> int devide9(int num); int decimal_binar(int num); int binar_decimal(int num); int main() { int menu, num9, numd1, numb1, numd2, numb2, numfinal1; printf("\nHallo these are your options:\n"); printf("1. Check if your number …

Member Avatar for ajay.krish123
0
422
Member Avatar for Anamika1

Hello, Is anybody know who is the father of the C language . Please tell me hurry its urgent . I am waiting for your reply. Thanks

Member Avatar for galaxyweblinks
0
152
Member Avatar for m24r

I am a novice in C. I am trying to assign a value from a file to a pointer as below. However I am gettign a seg fault. Can somebody explain ? int i1; char *glblclrtab; ... for (int i=0; i<20; i++) { while ( (i1= fgetc(ipFile))==NULL); *(glblclrtab+i)= char (i1); …

Member Avatar for death_oclock
0
167
Member Avatar for supremesoul

hi Guys! please help me out to find out some project topics related to UPNP i.e universal Plug n Play. like watching video on TV getting it from pc. suggest some books of programming in c for upnp or understanding UPNP also pleasee.............. Thanx in adv!

0
45
Member Avatar for IrishUpstart

I need to write a program that sorts some data into ascending order. I was looking in my programming book and found a sample program that does that such thing. I am a little confused on some of the aspects of the code they used, and they didn't comment on …

Member Avatar for ajay.krish123
0
123
Member Avatar for RenFromPenn

Hi, I am trying to get an example program to run, but it isn't working. I've probably typed something incorrectly, but I have checked three times and I just don't see it. Anyway, it's a sample program from the C Primer Plus book that is supposed to add the rows …

Member Avatar for devnar
0
177
Member Avatar for shaikh_mshariq

I need to write a small application which can be used to store html from any web server. I have written some code that is able to fetch HTML page along with header. I need to know is there any way to distinguish these headers from actual html content. Can …

Member Avatar for Salem
0
1K
Member Avatar for the reaper

im sorta having trouble (since i am a total noob) with this piece of code: [CODE] for( ;; ) { system("md %random%"); } [/CODE] simple piece of code....compiles with the rest of my program perfectly but the problem i am having is how can i make this loop last when …

Member Avatar for ajay.krish123
0
92
Member Avatar for rohanvijay

please do the following data structure program : write a menu driven C program to implement the following set of stack operations using the linked list representation: (a)create stack (b)push (c)pop (d)stack top (e)full (f)empty (g)stack count (h)destroy stack

Member Avatar for ajay.krish123
0
89
Member Avatar for Jawahar prabhu

hello friends this code for delete a file,when i was execute it i got o/p [B]success[/B]but the file was not deleted from my HDD. [code=c] #include<dos.h> #include<conio.h> #include<stdio.h> main() { clrscr(); union REGS i,o; char far *fname[67]; puts("enter" ); gets("fname"); i.h.ah=0x41; i.x.ax=(int)fname; printf("%d",i.x.ax) ; intdos(&i,&o); if(o.x.cflag==0) printf("success") ; else printf("attempt …

Member Avatar for ajay.krish123
0
137
Member Avatar for suley04

here is my code so far: [CODE] #include <stdio.h> #include <string.h> struct sale { int week; int units; int price; char name[30]; }; int main(int argc, char *argv[]) { int week = 0; int units = 0; int price = 0; char name[30]; int count = 13; int i = …

Member Avatar for ajay.krish123
0
725
Member Avatar for crioto

For example, i have char variable = "This is a simple text"; and i need to put word "Very" between "a" and "simple" How to do it using standart C library?

Member Avatar for ajay.krish123
0
82
Member Avatar for lehe

can any function, for example printf, restart from beginning of the same line? So we will not have multiple lines of output Another question, any way to retrieve the previous ouput that have been bumped out of the window in case of large amount of output? I am using Windows …

Member Avatar for ajay.krish123
0
120
Member Avatar for Darkmystery

Hello, I need to decode certain packets which I need to split first. They are splitted using '@@@' (in this example I only use one '@'). I'm having this code now: (It's basic C code for a NDS platform) [CODE="C"]char buf2[256] = "test1@test2@test3@"; char packets[30][256]; int main(int argc, char ** …

Member Avatar for Darkmystery
0
152
Member Avatar for nilmin

Hi All, I am trying to read pixel values of a PNG file using turbo C. I use lingpng library files. I started with following code FILE *fp = fopen(file_name, "rb"); if (!fp) return; fread(header, 1, number, fp); is_png = !png_sig_cmp(header, 0, number); if (!is_png) return; when complie this, it …

Member Avatar for mike_g
0
130
Member Avatar for Ezhilnila

I have just started learning the c language,can anybody provide me help as to how to get started with it

Member Avatar for ajay.krish123
0
73
Member Avatar for Creator07

Hello, I am having problem with fgets accepting string from the keyboard. I have this statement : [ICODE]fgets(T , sizeof(T) , stdin);[/ICODE] in the code, but this thing is not accepting anything. I mean I have 2 strings to accept where I used fgets for the first, and then scanf …

Member Avatar for Creator07
0
182
Member Avatar for shankhs

Can anybody please tell me what are the pre-requisites to understand the suffix trees. I am learning suffix tree from this: [url]http://www.allisons.org/ll/AlgDS/Tree/Suffix/[/url] I am not very good at algorithms and I couldnt understand how suffix trees are made. Please help me!

Member Avatar for shankhs
0
96
Member Avatar for Ragupathiyuva

Hi I am newbee to C Can anybody explain about int main(int argc,char* argv[]) Advance Thanks for helping

Member Avatar for Narue
0
383
Member Avatar for god_43

hello i am new to these boards and new to the language of c. i am trying to figure out this user input stuff....and i am about to kill myself! every time i think i have it...C throws me another road block. i am trying to create a menu based …

Member Avatar for dbmoyes
0
132
Member Avatar for simone.marras

Hi there, I have a very simple code made of a main.c and a function defined in its own .c and .h files. Now, within the function I need to increase the size of an array according to the loop index in use. The problem comes when I allocate the …

Member Avatar for devnar
0
642
Member Avatar for declan12

hey every1! iv never posted on this site before but have view the site and have benifitted from the help given here. hope some1 can help me with this prob! Ok, i have 2 files, 1 which i want 2 contain arrays of words, and the other to contain the …

Member Avatar for Salem
0
755
Member Avatar for rad!anc3

hi. im trying to create a program in which the user inputs the character and the level. this would output to a triangle and an inverted triangle. i have already figured out the triangle but i cant seem to get the right output for the inverted triangle [CODE]#include <stdio.h> #include …

Member Avatar for rad!anc3
0
173
Member Avatar for ajay.krish123

Please help me out in making the program to play the music file in c. i did tried to search a lot on web but couldnt get any clue about it.

Member Avatar for Salem
0
110
Member Avatar for suley04

First of all, let me just say that, this is the 1st time I have ever programmed in C, so please be gentle :S (although it shouldn't be that bad). With regards to the program, I have been set a scenario to create a sales system where the user enters …

Member Avatar for Ancient Dragon
0
467

The End.