15,540 Topics

Member Avatar for
Member Avatar for edwar

Hi every1, is there some1 how could give a code to sort a text file in c. for example, you write a text in kladblok and you write a code to to sort the text in alphabet. please if there is some1 who knows how to write the code, it'll …

Member Avatar for Ancient Dragon
0
104
Member Avatar for littlewonder

hi, i get an error - 'incompatible types in assignment' for the following code [CODE] #include<stdio.h> int main() { char name[10]; name="Hello"; printf("%s",name); } [/CODE] Any help will be greatly appreciated...

Member Avatar for littlewonder
0
54
Member Avatar for ubi_ct83

i have loaded the string data from file to double array.this is example: const_array[1][]=a1,b1,c3, const_array[2][]=a2,b1,c3, const_array[3][]=a3,b2,c2, const_array[4][]=a2,b3,c1, const_array[5][]=a3,b2,c1, those data need to be compared to this string: append_test_data.this is also an array and it will be changed randomly by d program.the prob is,my prog just compare to the last data …

Member Avatar for ubi_ct83
0
568
Member Avatar for AndrewWood

Hi, Came here to find an answer to a question no one wants to touch. I'm currently doing some work with debugging principles in Windows C and have found a very odd problem when spawning a process. When using CreateProcess with any of the debug flags set on my other …

Member Avatar for IanHannah
0
207
Member Avatar for katwalatapan

Hello, I tried to compile a posix mq_send and mq_receive application. The msg is sent on the queue successfully, but during the receive part, an error occurs. I have attached the send and receive part of the code, please do suggest any corrections. mq_send [code=c] #include <mqueue.h> #include <stdlib.h> #include …

Member Avatar for Protuberance
0
1K
Member Avatar for vivekarora

Hello Friends, I have a huge program having multiple malloc & free. At the end of my program, I wish to print the memory leak which has occured. There are obviously many solutions to this problem. e.g. Simplest one: 1) When you allocate the memory, keep the allocated memory pointer …

Member Avatar for vivekarora
0
277
Member Avatar for vashek

Hi All, this is my first C code in my professional life. I wanted to write a common function to retrieve file content. I do not know whether below code is upto the mark or not. any Suggestions/modifications/tips are greatly appreciated. [CODE] #include <stdio.h> #include <stdlib.h> /* Function Name: get_file_content …

Member Avatar for wildgoose
0
393
Member Avatar for katwalatapan

Hello everyone, I have installed Dev-C++ IDE on my system to run POSIX threads application. The program has compiled correctly. When I try to run the application, I am encountered with the following error Unable to locate component This application has failed to start because pthreadGC2.dll was not found. Re-installing …

Member Avatar for ajay.krish123
0
249
Member Avatar for octavia

Hi :) anyone can help me for my problem 1) how to convert 'unsigned char' to 'unsigned int' ... 2) need more idea about casting for embedded c after making some calculation , value from char typed array element are changed some unknown value which can't be handled. Wanna know …

Member Avatar for ithelp
0
146
Member Avatar for pk09
Member Avatar for 9868
-1
123
Member Avatar for littlewonder
Member Avatar for snprime

Hey guys, I a new CS student taking a class on C and I have a question about passing by reference. I have a problem in which I am trying to open a file called reportFile. The problem is that when I try to do this using a function, as …

Member Avatar for snprime
0
130
Member Avatar for ivatanako

this is a java code, i need to convert it into C. [CODE] private void addFrame (int toAdd) { int[ ] frameScores = new int[0]; totalScore = totalScore + toAdd; if (frameScores.length < lastFrameNumber) { int [ ] temp = new int [frameScores.length+1]; for (int k=0; k<frameScores.length; k++) { temp[k] …

Member Avatar for ivatanako
0
156
Member Avatar for pdwivedi

[code=C]#include<stdio.h> struct book { char name[25] ; char author[25] ; int callno ; } ; int main() { struct book b1={ "Let us C", "YPK", 101 } ; printf("name=%s",b1.name); printf("\nname=%s",&b1.name); return 0; } [/code] can someone explain me why i am getting the same output while i am using two …

Member Avatar for Salem
0
86
Member Avatar for Nathan Campos

Hello, Because of my new and the most of the future projects, i'm needing to learn C and use Windows, but because of this, i don't know how to use the Windows API, then i'm asking for an example of using DeleteFile function. Thanks, Nathan Paulino Campos

Member Avatar for marco93
0
127
Member Avatar for anne_lise

hi i am trying to use incbet.c alone . it is presently availabe as library (with its makefile) as given below . i wanted to know all the files used by incbet.c . i dont know details about make file . i tried to to look at GNU tutorial on …

Member Avatar for Salem
0
192
Member Avatar for hoke

Hullo. I would be very nearly eternally grateful if someone would explain how to convert a void pointer's target (eg 0xda9f000) into a string in C. Both my own brain and google have failed me on this one. I can do this in printf using the wonderfully inelegant line: printf("Value:'%p' …

Member Avatar for Nathan Campos
0
6K
Member Avatar for ksan

[LEFT]i have an assignment to make a bus reservation system that will return in main 35 times and increase the ticket number,using function arrays,and looping and can anyone help me ive been doing this assignment for 3 weeks now and i cant do it. [/LEFT]

Member Avatar for MrNoob
0
174
Member Avatar for priyairani00

what will b the coding of a program.. "program to swap two no. using third variable"

Member Avatar for priyairani00
0
88
Member Avatar for katwalatapan

Hello, I would like to work on POSIX thread programming using TC v3.0. The required libraries for its development are STL (that's what I got from some online research). Could anyone please let me know: 1.) Where to download STL libraries. 2.) How to configure them with TC v3.0 3.) …

Member Avatar for Ancient Dragon
0
136
Member Avatar for MrNoob
Member Avatar for kyumi419

guys.. i hope you could help me out here.. we are currently in iterative and conditional statements.. problem is making a [I]pyramid[/I] using asterisks. for example, if the user input 6, that would be the height of the pyramid, while the body starts at 1 and increases by 2 each …

Member Avatar for kyumi419
0
137
Member Avatar for chixm8_49

Good day everyone! I would like to ask some problem about the program I am currently working (hangman to be specific). Since I am just a beginner, there are many things I would like to clarify. I would like to ask your help so that I can enable more to …

Member Avatar for codeguru_2009
0
174
Member Avatar for Moonbaby

Can anyone help me solve this word equation it is for a simple homework assignment and the professor was having problems with his computer and now I am left in the cold. I need a detailed answer and the formula.. Thanks so much and I may not even been in …

Member Avatar for Ancient Dragon
0
88
Member Avatar for anujsharma

Hi, I urgently need some help on system date and time.Here's the code [code=c] #include<stdio.h> #include<time.h> main() { time_t rawtime; struct tm *timeinfo; time(&rawtime); timeinfo=localtime(&rawtime); int hour2; int minute2; int seconds2; char end1[5]; int end=0; char diff[5]; char start[5]; int i=0; char ch[5]; char ch1[5]; FILE *fp2; FILE *fp1; FILE …

Member Avatar for anujsharma
0
131
Member Avatar for furqankhyraj

i want to make a program in which if we input 98765 than it give output as 9 8 7 6 5 please help me

Member Avatar for Ancient Dragon
0
84
Member Avatar for azn_sweet

[code] /*Output Section */ printf ("\nThat height is equivalent to " "%1f" " feet and " "%2f" " inch(es).\n"); scanf ("%f", &FEET); scanf ("%f", &INCHES); [/code]

Member Avatar for Aia
0
70
Member Avatar for azn_sweet

I need help with this assignment for my computer programming class..... I honestly have no idea what Im doing!!!! Convert a person's height from meters into feet and inches (rounded to the nearest whole numbers) and display the result on the screen. The height must be entered by the user …

Member Avatar for Salem
0
143
Member Avatar for furqankhyraj

[code]#inclxude<conio.h> #include<stdio.h> #include<stdlib.h> max(int a,int b,int c); void main (void) { clrscr(); int a,b,c,max; long z; printf("input three numbers by giving space"); scanf("%d %d %d",&a,&b,&c); z=max(a,b,c); printf("Max value is %lb",z); getch(); } void max(int a ,int b,int c ) { if(a>b&&a>c) return(a); if(b>c&&b>a) return(b); return(c); }[/code] i make that program …

Member Avatar for yellowSnow
-2
89
Member Avatar for katwalatapan

Hello, I am trying to work learn thread programming in C. I have my turbo C installed and its working fine. I tried to get the library "pthread.h" and relater STLport package by searching online and managed to get them and copied them in my include directory. But while compiling …

Member Avatar for Salem
0
134

The End.