19,876 Topics

Member Avatar for
Member Avatar for Alex Edwards

Hey everyone! =) I'm starting an Application Development club at my college! However, there are a fair amount of programmers with multiple backgrounds who want to be a part of the club and partake in some of the Software we will create. Most of the people who are joining the …

Member Avatar for iluxa
0
334
Member Avatar for RenFromPenn

Hi, I am trying to change the address in an array using *nums++. When I run the program, however, the first number in the array is skipped. What am I missing? How do I get the first number to display? [CODE]#include <stdio.h> int print(int[]); int main() { #define NUMBERS 7 …

Member Avatar for RenFromPenn
0
115
Member Avatar for somnathsarode

hi , everybody can any one write a "c" programme without main() function "please don't tell me this is not possible " If u know please tell me

Member Avatar for ArkM
0
153
Member Avatar for Relative0

I am having some difficulties in understanding the code below. First I don't understand, is (char***) a cast to a triple pointer to a char? While I am am somewhat familiar with single pointers, these triples are beyond my current understanding and I would like to know, what is the …

Member Avatar for ArkM
0
82
Member Avatar for kikloo

Hi. I am trying to merge 2 chars. in C but i don't know how to do it. My code: [code] char dd[1], aa[2]; dd[0] = "2"; dd[1] = "3"; aa[] = dd[0] + dd[1]; [/code] So it aa[] should show: 23 but it gives error. Maybe i am doing …

Member Avatar for Murtan
0
269
Member Avatar for Excess3

Hello ,, i need to write to opened file in w+ mode.. now the problem is that first off all i need to check first string in each line if he the same to value i want to enter , dont enter and print error : in another words i …

Member Avatar for Excess3
0
123
Member Avatar for dc87

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 …

Member Avatar for Aia
0
344
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
190
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
117
Member Avatar for uppibhay

Sirs,I w'd like to build on a website wherein i've a text box n accept code from user.I then w'd like to run code and display output in page. Something like [url]www.codepad.org[/url]. Plz help me with this....

Member Avatar for Salem
0
83
Member Avatar for wallish

Hi. I'm currently messing around with C# and decided to write a small game. One of the first things I am doing is setting up the game's GUI, which I am designing myself with help from XNA (but not Windows Forms). I've already made proof-of-concept buttons that can be placed, …

Member Avatar for Ramy Mahrous
0
212
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
184
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
113
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
74
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
423
Member Avatar for reallm

All hi, Is it possible to send messages (SENDMESSAGE/PostMessage...) to HTML controls such as Input Type Text or lists? I am able to get/set the url,title but I can't get to the document. Can it be done? Would you show me how? Your help would be appreciated. reallm,

Member Avatar for Crisboot
0
311
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
155
Member Avatar for adily
Member Avatar for Salem
0
99
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
169
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
46
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
128
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
182
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
94
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
92
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
139
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
728
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
87
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
123
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
156
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
134
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
78
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
185
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
100
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
388
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
135
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
656
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
769
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
177
Member Avatar for mabshell

Hello, I'm just starting in the world of C# and I'm stuck in a problem. I want to create a form with some textbox in it. It ask you the path of the exe file and some other information. When I run the program it tells me a Win32Exception: file …

Member Avatar for ddanbe
0
92
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
115
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
470
Member Avatar for nathan08

hallo everyone, its good to be a part of such a huge group of tech and programming gurus. am a new to programming in c# and was hoping that there is someone out there who can help me in a small project that i have. i've attached it below,(2 files). …

Member Avatar for LizR
0
78
Member Avatar for mini programmer

[COLOR="Green"]Hi, I am new member in this location. I wanted to quaering about format the date in the computer system . in our class we study C ++ language. and learned this build in function : strtok ( , ) that take the variable in first argument , until see …

Member Avatar for mini programmer
0
151
Member Avatar for Neo7

Hi everybody!! I would like to save a text file in Shift-Jis format but by default the file is always save in UTF-8. I'm using fopen, fput and fclose to create and work with that file, but I don't think that there is any parameter for those functions which can …

Member Avatar for Neo7
0
1K
Member Avatar for gcctest

Dear all , I have one shared library in "/usr/lib/ast/mod/quad.so" where the functions "X1" and "X2" are defined. In header file "quad.h" it is declared. I have created a "test.c" where X1 and X2 are called I have used the following commads for compiling and linking #gcc -c test.c #gcc …

Member Avatar for Salem
0
62
Member Avatar for tomtetlaw

I'm learning c++ at the moment, and i just learnt about classes, so i decided to make a text game with a badguy and player class, and i was wondering how to refer to other classes variables(like this.health) from other classes. and wether you have to create an instance of …

Member Avatar for sid78669
0
184
Member Avatar for Erikmmp

Hi everyone. I was just wondering if anyone could help me with how to play a sound (from a file or directly specifying the frequency doesn't matter) on a Mac. I would prefer doing this directly from C but if there is no way to do that then i found …

0
49
Member Avatar for monkey_king

Hi, I was thinking about implementing piping and redirection in some of my programs. But I'm having difficilties getting started. Does anyone know were to read up on this area, or just what to google. Google only gives my tutorials on basic unix commandline usage. thanks in advance

Member Avatar for monkey_king
0
83
Member Avatar for suley04

i just want to know, if you are using an argv statement in your code, and you are defining two files (one for input one for output), called inFile and outFile, and you open the first in "r" mode and the second in "w" mode...... can you apply it to …

Member Avatar for suley04
0
109

The End.