15,550 Topics

Member Avatar for
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
147
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
60
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
47
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
81
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
106
Member Avatar for suley04

Yesterday I created a thread called "File Handling Problems!!"..... today within the first half an hour I have moved forward a bit (which is a relief)..... but I still have a problem..... [CODE] 1.#include <stdio.h> 2.#include <string.h> 3. 4.int main() 5.{ 6. int week = 0; 7. int units = …

Member Avatar for suley04
0
101
Member Avatar for arnaudrizzo

hello, i'm seeking for an implementation of singular value decomposition whith power methode to get severals eigen value of a big sparse matrix in C. thank you.

Member Avatar for Narue
0
41
Member Avatar for danibootstrap

Hi,I want to try out speech recognition with my robot.Like I say move and the robot moves forward.I want to do this in C (DevCpp)? Windows XP.I have used Open CV for Image Processing.Is there a speech recognition SDK like the Open CV?Please guide me.

Member Avatar for danibootstrap
0
83
Member Avatar for Ragupathiyuva

Hi Can anybody tell me What is the usage of Static functions and where we can use what is the advantage of Static functions over Normal functions Advance Thanks for helping

Member Avatar for Ragupathiyuva
0
98
Member Avatar for cusado

when i try to do the following, [code] double root_value, c; int d; d=0; printf("%.0f", root_value); for(c=2; c<root_value;c++) { if(c !=root_value) { if(fmod(root_value,c)==0) { d = 1; } } } if(d == 1) { printf("not prime\n"); } else printf("is prime\n"); [/code] now its part of a program to determine if …

Member Avatar for ArkM
0
117
Member Avatar for CoolAtt

plz explain how to do this the proper way. [CODE]main.c ===== struct names{ // definitions ----- ---- ---- } struct names x; function1(&x); file2.c ====== function1(struct names *x){ ---- ---- ---- }[/CODE] am getting warning: [B]'struct names' declared inside parameter list[/B]

Member Avatar for ArkM
0
132
Member Avatar for cusado

im trying to right align data that i have written to file with fprintf, but im not sure how i would do so in C. ive looked around and there are many solutions for C++ and C# but havent found one for to right align in regular C.

Member Avatar for Narue
0
201
Member Avatar for brianlesays

All right, so I have a final exam due that consists of four problems. I'm currently working on the first problem. I understand the algorithm of the problems, but I am very, VERY weak with syntax and the entire C language in general. In the first problem, I just indexed …

Member Avatar for verruckt24
0
115
Member Avatar for the reaper

anyone know how to add your program to start up on windows xp/vista and regardless of user admin guest or normal user...any bit of source code available will be helpful..

Member Avatar for jbennet
0
311
Member Avatar for CoolAtt

hi. actually i hv to read lines from a file which is getting updated at the same time( new lines are appended at the end of the file). plz suggest a way to implement it in c. thx.

Member Avatar for Murtan
0
150
Member Avatar for elitedragoon

This is the problem, when I run it, there are no errors. However when I check the reportfile, I end up with the wrong numbers from the calculations. The calculator: [CODE]void AddDetailToAccumulators(float *totfedtax, float *totssitax, float *totstatetax,float *totrate, float *totreg, float *totovt, float *totgross,float *totpay,float *totdeferred, float gross, float federaltax, …

Member Avatar for Luckychap
0
145
Member Avatar for Whilliam

This is a cursor-based implementation of list inserting at the end. In the program below, the output the program will show me is the last element of my input. It is suppose to show all elements from the first input to the last. Also, after two inputs, when inserting, it …

Member Avatar for Whilliam
0
229
Member Avatar for BigFormat

I need to list the files in my current directory and have them packed into an array of chars, in Linux. I use system("ls > temp_file"); to write them one per row in a temp file, and then I copy from this file to my string. Is there a more …

Member Avatar for Salem
0
64
Member Avatar for tarunguptacs

How could i establish a wifi connection between PDA and desktop using C,Windows SDK??

Member Avatar for Jawahar prabhu
0
43
Member Avatar for keyser_soze

hey...i want to understand how following code works : [code=c]int x=1; printf("%d%d%d",x,++x,x); [/code] [code]OUTPUT: 222[/code] also [code=c]int x=1; printf("%d%d%d",x,++x,x++); [/code] [code]OUTPUT: 221[/code] actually these o/p are produced when i use [B]visual c++[/B] compiler but when i wrote the same commands in [B]turbo c[/B] they gave perfectly understandable o/p as [B]221[/B] …

Member Avatar for keyser_soze
0
146
Member Avatar for GrahamShaw2008

Where do I locate the logical or on my keyboard? Thanks for your help in advance.

Member Avatar for GrahamShaw2008
0
2K
Member Avatar for sandiego_f

Hi Guys, i am pretty new into C. I read a book and made some examples. So all this is just precedural programming. Nothing special. I want to read all the Hardwareinformation i can out of my system. (Windows XP System). I can already read via Registry, CPUID and SYSTEM_INFO …

Member Avatar for low_coder
0
98
Member Avatar for dharma30

Hello Everyone!, This Forum has helped me very much in understanding different solutions in C-language . Before I post my query i would like to thank everyone for there help in the past. Q: I have a text file say "input.txt" which contains a table in the following form NAME …

Member Avatar for low_coder
0
2K
Member Avatar for Demonisya

O.k My teacher game me a take home exam which will be submitted on monday..... and also I have to defend what I composed so I will ask you many questions so that I will understand this program..... my teacher said Never use C... do it in your own ideas.... …

Member Avatar for Demonisya
0
104
Member Avatar for srikanth.sonu

Hi all, I have a code to read the records using a file,also the file has got unnecessary stuff that needs to be ignored. I am able to read and write only the first record,next am able to read and write only the second "record name" but not the whole …

Member Avatar for Murtan
0
77
Member Avatar for didi00

hello,can someone help me? I must make a program which contains: Deck (the data in it must be integer(numbers)),(if possible,in header file). Sort the elements by the method of Shell Find the elements that can be divided by 5, and smaller then the largest number that can be divided by …

Member Avatar for didi00
0
150
Member Avatar for andyT

Hello, I'm trying to find some help with code that I've been maintaining and currently trying to modify. Basically, I am working with a single array of length "m", call it the "max" array. Other than knowing that each entry in the "max" array is nonnegative, I have no other …

Member Avatar for andyT
0
114
Member Avatar for CoolAtt

hi all. the following is working fine for me char * hex = (..dynamically allocated memory with malloc..); *(hex+0) = 0x43; *(hex+1) = 0x2b; i now have to assign a string in the format 43 2b 1c to the char * array at runtime. anyone did it ? plz guide.

Member Avatar for Murtan
0
1K
Member Avatar for Elsammos

Hello everybody, first of all, I'm quite new to programming in C, so forgive my ignorance. For an assignment i have to program a microcontroller (Atmega8) using ICCAVR. I'm working on a programme similar to 'simon says' (where 4 led's are illuminated in a random order, and afterwards you have …

Member Avatar for Elsammos
0
94

The End.