19,876 Topics

Member Avatar for
Member Avatar for jared717

I am new to C. I won't to understand how this program works. I found it and don't understand how to run it. When I do it says: Missing name for redirect. Here is the code. [CODE] #include <stdio.h> #include <stdlib.h> int main(int argc, char *argv[]) { FILE *from, *to; …

Member Avatar for abhishaki
0
196
Member Avatar for bhavya_talluri

hi i just want to know how to write a c program for heap sort. please help me

Member Avatar for abhishaki
0
115
Member Avatar for Alex_

Hello everybody, i need a polygon formula to draw one. I want to make a function that will draw a polygon , depending on how many vertex's it has. I'm not good at math so i can't figure it out how to do it. Though, i do understand that it …

Member Avatar for Alibeg
0
179
Member Avatar for scru

I couldn't help but notice that everytime I create a window or control with Win32, the text on the window looks jagged, as though it isn't being 'clear-typed' or something. Does anybody know how I can get the text to appear normal?

Member Avatar for WolfPack
0
127
Member Avatar for sercanparlak

Hi, i'm trying to include a c# dll in c code. i have created the tlb file , registered the dll but i couldn't load it. but i could load in c++. is there any way to achieve this or equivalent of below c++ code ? Thanks ******** C++ Code …

0
46
Member Avatar for iamstrange14

I have three strings: [CODE=C]char str1[] = "My name is John"; char str2 = "My name is John also"; char final [10];[/CODE] How would i go about comparing the first two strings, and put what is different (" also") into the third one?

Member Avatar for carobee
0
80
Member Avatar for spo-apt

Hi guys i really appreciate someone can help me out with this book (C language, not C++): [img]http://www.deitel.com/bookresources/chtp5_200h.jpg[/img] [url]http://www.deitel.com/Books/C/CHowtoProgram5e/tabid/1704/Default.aspx[/url] # ISBN-10: 0-13-240416-8 # ISBN-13: 978-0-13-240416-7 Someone can share please, or PM me. i really need Thanks in advanced Regards

Member Avatar for Ancient Dragon
0
293
Member Avatar for Ajitbmsce
Member Avatar for moshe5

Hi All! I am currently stuck on a c++ program I'm working on. So the program will have the user input data into a 2-d array. sample dialogue: BLOB SIZE CALCULATOR- Enter coordinates for each filled cell; e.g 2 3 Do not enter commas or parentheses. Enter -1 -1 to …

Member Avatar for Lerner
0
115
Member Avatar for uhguy77017

I am trying to write a simple program that reads in csv data from a text file, and then sums the values of the integers read in. I am new to C and trying to figure out small little programs to practice. I am able to get the file open, …

Member Avatar for ArkM
0
187
Member Avatar for bigOnotation

Hi all, I am a beginner in c, and i am receiving an error in my code, I am writing the code to reverse the elements of a linked list, the code is as follows: [code=c] #include <stdio.h> #include <stdlib.h> typedef struct node { int data; struct node *next; }element; …

Member Avatar for bigOnotation
0
123
Member Avatar for anbaarasan

i am having problems in creating a login in c , using file concept . could some one help me.

Member Avatar for Ancient Dragon
0
25
Member Avatar for likhitha

Hi to all......... I don't know how to convert hex to binary,in that case i am searching in the google...........at last i found in this community. I want the complete "C program for conversion of hex to binary". please help me..... I am using linux operating system. thanks in advance,

Member Avatar for Ancient Dragon
0
49
Member Avatar for Alice_Blue

Hi all, I have an incompatible pointer type problem.I am using Dev-Cpp and I am trying to intergrate some functions to a large project in C (mpeg2 decoder) and I am stuck here trying many variations to solve it: [code=c] //global.h void transpose_mat _ANSI_ARGS_((double *matA[], double *matB[], int N)); //declaration …

Member Avatar for Narue
0
130
Member Avatar for TheBeast32

Hi, I'm trying to use LogonUser. I think I'm doing everything right, but I keep getting this error: 1326 (ERROR_LOGON_FAILURE). I know my user and pass are right. [Code=C++] #include <stdlib.h> #include <stdio.h> #include <conio.h> #include <windows.h> void GetPassword(char *pass, int maxlen, char hidechar) { char ch; int len = …

Member Avatar for nucleon
0
216
Member Avatar for Stefano Mtangoo

Please anyone help me on classes. I have written this class example and keep getting error on that the function is private. I though variables in functions are private but mmh, I think I'm wrong. Can anyone clarify how to rectify this? Also, could you explain to this New Bee …

Member Avatar for Stefano Mtangoo
0
86
Member Avatar for ternor

Hello, this is my first post here, so thanks for your time and comprehension. English isnt my first language, so I'll be trying my best. OK, I'm in need for a tutorial where I can find examples on how to make use of files, bit operations and registers(whats a register …

Member Avatar for ternor
0
100
Member Avatar for viswa_007

how to create desktop applications in c# using http requests and http response with iis

Member Avatar for sknake
0
144
Member Avatar for kishore84

Hello friends i have been facing problem in reading from a file consisting of both float values and strings.In need to read them and print them out. The input in the text file i have been using is 0 5.1 3.5 1.4 0.2 setosa 1 4.9 3.0 1.4 0.2 setosa …

Member Avatar for nucleon
0
272
Member Avatar for JONZ
Member Avatar for death_oclock
0
317
Member Avatar for TheBeast32

Hi, I was wondering if there was an alternative to the ShellExecute function of the Windows API; one that is universal on every OS. Is there one?

Member Avatar for death_oclock
0
84
Member Avatar for Skorpion

I want to make a program that takes input 10 random numbers from user and arrange it in ascending order. Give me help for startup plz...

Member Avatar for TheBeast32
0
152
Member Avatar for RexxX

I was wondering which method I should use to declare a 2D array. First, I was going to declare a 2D array of char arr[15][100]. In each text file, there's a number on the first line, and that displays how many columns are in the text file, so I would …

Member Avatar for Ancient Dragon
0
110
Member Avatar for marcosjp

Hi! I'm using a C program to open PDF files with this code: [code=c] ShellExecute(GetDesktopWindow(), "open", "c:\\someFolder\\myFile.pdf", NULL, NULL, SW_SHOWNORMAL); [/code] Now I need to go furthrer; I need to open the PDF file at a certain page. I've tried [code=c] "c:\\someFolder\\myFile.pdf#page=5"... [/code] ...as is suggested in Adobe's docs, but …

Member Avatar for Prabakar
0
2K
Member Avatar for omdnaik

Hi friends... Can any one give me some tips or logic for dynamically defining a structure in C... Thanx for ur help.....

Member Avatar for ArkM
0
120
Member Avatar for JRM

On the advise of ~S.O.S~, i checked out code blocks. It's rather intuitve to use. (It has to be, the documentation is very limited.) The debugger works well with it. In fact i used the step function to find a place where i was stuck in a loop. The yellow …

Member Avatar for TheBeast32
0
160
Member Avatar for SubProf

Hi Everyone, I have a webBrowser written in c# that displays webpages. I want to add a button to the webBrowser that will increase the size of the text on the webpage when it is clicked. Any help with this will be greatly appreciated. Thanks in advance SubProf

Member Avatar for Ramy Mahrous
0
47
Member Avatar for ithelp

Hi C experts, In my code I have got #pragma extern_prefix (push, ""); Some extern function declarations #pragma extern_prefix (pop, ""); So that compiler does not prepend anything to those extern functions , I get an error error #14: extra text after expected end of preprocessing directive Does anyone know …

Member Avatar for death_oclock
0
5K
Member Avatar for sid78669

I wrote the following function for my assignment at college. The whole thing is working flawlessly. This function requires me to create a box on the screen as follows: [QUOTE] int console_Box(int row, int col, int l, int h, char edge, char top_btm, char ls_rs) This function displays a box …

Member Avatar for sid78669
0
99
Member Avatar for Jack Wetson

Hi, I have recently jumped into the realms of C# and I am having some trouble with editing properies accross threads. From what i have managed to research thus far i beleive i need to use the Invoke() method, however i am not quite sure how to go about this …

Member Avatar for Jack Wetson
0
168
Member Avatar for DLightman

I have a char array with a size of 17. I need to copy each block of 4 characters from the array into 4 separate char arrays. I'm not exactly how to go about this.

Member Avatar for DLightman
0
64
Member Avatar for mtramnes

I tried to search for other threads to answer my question but couldnt come up with anything that I could think of to describe what I was looking for well. My assignment is this: Write an application that shows the sum of 1 to n for every n from 1 …

Member Avatar for mtramnes
0
153
Member Avatar for slimjimmer

Hi. I have written a program to build an array and move values around until a point of "equilibrium" is reached. It then records how many of each number there are and outputs them to a file. My program works in part, but sometimes encounters a seg fault (I think …

Member Avatar for slimjimmer
0
151
Member Avatar for Skorpion

HI can u plz help me with this? [CODE=c]#include<stdio.h> #include<conio.h> void main () { int i,j; printf ("\t*"); for (i=2; i<=5; i++) { i=i+1; printf ("*",i); for (i=3; i>=1; i--) { printf ("*"); } printf ("\n"); } getch(); }[/CODE] its suppose to give an output in the form of diamond …

Member Avatar for Prabakar
0
131
Member Avatar for bemo55

I just learned pointers in my computer science class and i am having a hard time understanding what they are used for. Are they absolutely necessary to use them when passing arrays from functions ect. or is it just a more efficient way of doing so?

Member Avatar for ArkM
0
109
Member Avatar for premsharma

hello nice help from this site, pls help me for program problem : C program to read a list of names ending on a '$'. Each name ends on '.' and contains maximum of 30 characters. our program must convert the format as indicated in the example below and print …

Member Avatar for csurfer
0
166
Member Avatar for PoZHx

Ok, what i'm wanting to do is read a variables from another process ( not modify it ....just read it and output it) so e.g. test.exe: int main(){ int test = 1; return 0; } how would i write a program to read from the process (test.exe) and check what …

Member Avatar for PoZHx
0
99
Member Avatar for drjay1627

I want to read a file character by character and add to an array. [code] while(!feof(inputfile)){ chKey = getc(inputfile); for(int i = 0; i<=51; i++){ chKey = enc[i]; } }[/code] Since there isn't like a add() function, how do you move the position by 1 and add something to an …

Member Avatar for drjay1627
0
107
Member Avatar for drjay1627

The following is a project description of a project that I have to complete: Write a shell-like program that illustrates how UNIX spawns processes. This program will provide its own prompt to the user, read the command from the input and execute the command. Let the shell allow arguments to …

Member Avatar for drjay1627
0
148
Member Avatar for NenadL

Hello, i found your forum useful from time to time while i was an absolute beginner in C language. And i'd like to thank you all for that. Now i have a problem i don't have too much time to solve, so i was wondering if any of you guys …

Member Avatar for Ancient Dragon
0
378
Member Avatar for pspwxp fan

Hey wizeguys, I am using windows XP and have VC++ 2008. I can make a simple GUI window and write text and add menus and all that n00bish crap. I want to move further. Firstly, i atleast want to know how to change the color of the text that we …

Member Avatar for William Hemsworth
0
194
Member Avatar for msshapira

Hi all, I have written recurisve pathfinding fuction from matrix[i][j] to matrix[x][y]. however, it's not returning the right values. It is supposed to return the minimal cost from 2 points using any possible path. all ".value" are the cost to use this Node all ".bestFromStart" are the max of long …

Member Avatar for nucleon
0
111
Member Avatar for monkey_king

Hey, does anyone know if it possible to have something like [CODE] #DEFINE NUM_DEC 4 printf("This is your value:%.NUM_DECf\n"); [/CODE] thanks in advance

Member Avatar for Prabakar
0
99
Member Avatar for theighost

Hello, I am to draw a cylinder, so I thought I should start learning to draw an ellipse first, can anyone please help me with the algoritm at least, or if you have an explained code I would be grateful. BTW i am using borland C++ for dos version 3.1 …

Member Avatar for theighost
0
84
Member Avatar for RexxX

If I know the sizes I'm using, I can declare the array as: [code]char arr[20][20];[/code] Is this correct? Well, I want to know how to insert a full string into the array of strings. I thought it might be: [code]fscanf(infile, "%s", *arr[i]);[/code] but this line gave me the error "warning: …

Member Avatar for RexxX
0
159
Member Avatar for claretm

Hi All, The gap between consecutive prime numbers 2 and 3 is only 1, while the gap between consecutive primes 7 and 11 is 4. Can somebody help me in writing a parallel program to determine, for all integers less than 1,000,000 , the largest gap between a pair of …

Member Avatar for claretm
0
3K
Member Avatar for ohnomis

Hello, I've been having trouble trying to duplicate this program. My output differs from the sample output I was given for homework. I don't understand whats wrong with my code. [CODE] void displayUnion( iUnion ); union integer_union { char c; short s; int i; long l; }; typedef union integer_union …

Member Avatar for Aia
0
170
Member Avatar for amerninja2

So in C++, using Something like Unix Sockets or Winsock with C++ lets you use things like TCP/IP. But it only lets you connect to an IP within your router when its by itself. How can I have the program somehow forward the connection to like an HTTP server or …

Member Avatar for amerninja2
0
1K
Member Avatar for Sharanpreet
Member Avatar for Ancient Dragon
0
40
Member Avatar for gemni7

Hi all, I am trying to point a pointer to another pointer and just failed to get resultm here's my failed code, [code] char *point[] { "This is One" "This is Two" "This is Three" }; char *ptr; ptr = point[2]; printf("%s\n", ptr); [/code] I am getting single space printed …

Member Avatar for Ancient Dragon
0
107

The End.