15,551 Topics
| |
i need help with creating a letter pyramid usin c. this is what the basic pyramid should look like. the - are spaces in front of the letters. [quote] example 1 Type a single lowercase letter and press enter: 3 That is not a letter, enter a lowercase letter:= That … | |
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 … | |
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 … | |
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 … | |
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 … | |
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, | |
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 … | |
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 | |
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); … | |
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! | |
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 … | |
| 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 … |
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 … | |
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 … | |
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 | |
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 … | |
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 = … | |
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? | |
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 … | |
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 ** … | |
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 … | |
I have just started learning the c language,can anybody provide me help as to how to get started with it | |
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 … | |
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! | |
Hi I am newbee to C Can anybody explain about int main(int argc,char* argv[]) Advance Thanks for helping | |
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 … | |
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 … | |
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 … | |
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 … | |
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. |
The End.