1,265 Posted Topics

Member Avatar for paolomontero

turbo C is a piece of crap. use the GCC compiler (free) or MSVC compiler (free) with the Code::Blocks IDE (free).

Member Avatar for paolomontero
0
232
Member Avatar for sniper29

sniper.... hm, i hope you're not really a sniper, because, well... i guess i'd just be sad a little bit... uh, never mind. anyhow. check out my post in your other thread about 2D arrays, maybe it will help you.

Member Avatar for jephthah
0
492
Member Avatar for narendharg

"FLOAT CODE" is meaningless. do you want to know how to display floating point values? or do you want the IEEE 754 Standard for binary floating point arithmetic?

Member Avatar for Aia
0
133
Member Avatar for fddrummer06

if i have a character array, say: [inlinecode]char myCharString[16];[/inlinecode] and i want to capitalize the first letter (ie, the first element of the array), then I use the function "toupper" found in the <string.h> library, and it will do exactly what i want it to do: [inlinecode]myCharString[0] = toupper(myCharString[0]);[/inlinecode] however... …

Member Avatar for jephthah
0
785
Member Avatar for Nematoad

MATLAB has 64-bit i/o support, via the "io64.h" library... ive never used it, but i've read people who said that it works well [url]http://matlab.izmiran.ru/help/techdoc/matlab_external/ch04cr16.html[/url] .

Member Avatar for jephthah
0
133
Member Avatar for daniel88

its so hard to guide you on how to best prepare becasue we dont know what the focus of material was, and we dont know which aspects the professor deems to be more/less important. make sure you understand the whys and wherefores of all the problems in previous assignments. Generally …

Member Avatar for hammerhead
0
290
Member Avatar for LightSystem

i can't for the life of me imagine why you would want to do such a thing. but, admittedly, i'm getting old, and my neuronic sheaths are calcifiying....

Member Avatar for Salem
0
77
Member Avatar for achandra

at this point in your programming career, you should always use #include <stdio.h> the only time you should use #include "myHeader.h" is when you wrote that file (or someone gave it to you), and you saved it to the same directory as your C file.

Member Avatar for jephthah
0
64
Member Avatar for mrynit

not an appropriate question for a c-language forum. this is not a c-code problem --the code obviously works as designed. your problem is an IDE problem, and not one that is commonly used. the fact that an open source IDE isnt working for you the way you expect it to …

Member Avatar for jephthah
0
259
Member Avatar for carobee

[QUOTE=Salem;618426]And what is "the desired" effect?[/QUOTE] apparently he desires a function to convert seconds to milliseconds now where is that function? i know i left it around here somewhere....

Member Avatar for Colin Mac
0
144
Member Avatar for champnim

AT commands are serial so you will have to first deal with USB-Serial conversion. but yeah, throw that Turbo C trash away real quick before it makes you a completely worthless programmer. (an aside to Salem, or anyone else: where are all these Turbo-C people coming from? how does Borland …

Member Avatar for champnim
0
177
Member Avatar for tejapedada

the <dirent.h> library has the following functions [code=c] int closedir(DIR *); DIR *opendir(const char *); struct dirent *readdir(DIR *); int readdir_r(DIR *, struct dirent *, struct dirent **); void rewinddir(DIR *); void seekdir(DIR *, long int); long int telldir(DIR *); [/code] [url]http://www.opengroup.org/onlinepubs/007908799/xsh/dirent.h.html[/url] if you're confined to Windows-specific solutions, theres an …

Member Avatar for WaltP
0
113
Member Avatar for dangana

you got a lot of errors, but i see what you're trying to do. so at least you're on track. :) here's a few of the more obvious problems: (1) all variables should be declared before using them. I suggest that you declare the array "x" at the start of …

Member Avatar for jephthah
0
142
Member Avatar for prushik

so, you're just taking an EXE, all by itself, and trying to run it on the new computer? if so, maybe you should try compiling from source on the new computer and see how it works. i think youre going to need to build a distribution kit if you want …

Member Avatar for jephthah
0
131
Member Avatar for Crushyerbones

use those libraries (conio.h, windows.h, etc.) at you're own peril. they offer quick solutions, but are completely non-portable. you'd do much better for yourself learning to write a multi-threaded solution.

Member Avatar for Duoas
0
192
Member Avatar for SonxQ7

the entire thing is a ternary (three-part) operator that evaluates to some value, and you typically use it as a conditional assignment. ([i]condition[/i]) ? [i]value if true[/i] : [i]value if false[/i] putting the condition in parentheses is not required, but it may help you to visualize it better. For example, …

Member Avatar for jephthah
0
165
Member Avatar for VernonDozier

well, [inlinecode]if (a=b) { . . . }[/inlinecode] is perfectly valid, as im sure youre aware. i used to purposely code in that manner, before i got the habit slapped out of me by a principal engineer who (god forbid!) insisted code be [b]readable[/b]. :P i mean, not in such …

Member Avatar for fierykido
0
1K
Member Avatar for fans3267

[QUOTE]You will write the C++ program[/QUOTE] notice this line right here, the first line of your assignment. now, lets meditate on it for a moment... what do you imagine this means? [QUOTE] I have worked on this programming for a while , but always have problems here and there ,~ …

Member Avatar for Nick Evan
0
299
Member Avatar for rysin
Member Avatar for ithelp
0
86
Member Avatar for herms14
Member Avatar for scut_lmj
0
239
Member Avatar for dobado

[QUOTE]i didnt really get what u r saying ... i need a prog to find the num of solution ... waitin 4 a reply as soon as possible...... thx..[/QUOTE] do u wnt da goog srch n stuf or r u wnt 4 me 2 jus prog da c code n …

Member Avatar for tesuji
0
126
Member Avatar for myleila

Thank the gods you finally arrived to give us the answer to this perplexing problem. and to think we were just getting ready to close this one out as "unsolved" *whew* (next time, please dont wait so long, mmmkay?)

Member Avatar for jephthah
0
185
Member Avatar for ~bleach~
Member Avatar for FTProtocol

1. what's wrong with winsock, that you need some secret socket library? and i doubt VERY SERIOUSLY that it's "improved" in any way. At best, it will be equivalent. more likely it will be a level of abstraction from winsock that just adds overhead, and probably unintended bugs. 2. system("cls") …

Member Avatar for Ancient Dragon
0
108
Member Avatar for abbasi89
Member Avatar for FTProtocol
Member Avatar for jephthah
0
59
Member Avatar for ranjithsnair
Member Avatar for AHMADI110

how about the part where he wanders in and says: "Hey, y'all do my homework for me, mmkay?" isnt there a link on that one?

Member Avatar for jephthah
1
77
Member Avatar for towhidd

[QUOTE]plz solve my problem. thnk u. bye[/QUOTE] haha no thnk u bye

Member Avatar for WaltP
0
283
Member Avatar for alban08

VERNON: I think that giving beginners malloc is like giving a child a gun and saying "dont shoot anyone, mmkay?" ... ive become quite weary of fixing buggy programs written by someone who thinks they know how to use malloc() when the really don't. ALBAN: what Vernon is getting at, …

Member Avatar for alban08
0
114
Member Avatar for lich

here's your problem: [QUOTE=lich;614721] if(y<=1) return 1; [/QUOTE] it should be: [code=c] if(y==1) return x; if(y<=0) return 1; [/code] .

Member Avatar for jephthah
0
114
Member Avatar for shakilaf

and we're supposed to be able to debug your proprietary, enterprise-class library functions .... how? what's wrong with <time.h> that you need some non-portable obscure library to calculate UTC? .

Member Avatar for jephthah
0
170
Member Avatar for wellibedamned

you noob. you're banned. just kidding. but seriously, you cant have a single array of floats "mixed with" ints. they're all either one or the other. probably floats. some of the floats just happen to not have any fractional part. i'm not sure i fully understand your question... you want …

Member Avatar for jephthah
0
152
Member Avatar for wellibedamned

don't reinvent the wheel. [URL="http://gmplib.org/"]GMP (Gnu Multiple Precision) Arithmetic Library[/URL]

Member Avatar for iamthwee
0
412
Member Avatar for lalalu

if you haven't yet, you should really read the Beej Guide [url]http://www.beej.us/guide/bgnet/output/html/multipage/structs.html[/url]

Member Avatar for jephthah
0
105
Member Avatar for Anita Jennifer

in an oversimplified nutshell: C++ is a higher level, "[URL="http://en.wikipedia.org/wiki/Object_oriented"]object-oriented[/URL]" language more suited for user-interface intensive applications. C is a lower level "[URL="http://en.wikipedia.org/wiki/Procedural_programming"]procedural[/URL]" language more suited for hardware interfacing applications. C is also the foundation of many higher-level languages, including C++. But it should be pointed out that williamhemswort's link …

Member Avatar for Anita Jennifer
0
100
Member Avatar for ice661666

[URL="http://gmplib.org"]GNU Multiple Precision Arithmetic Library[/URL]

Member Avatar for ice661666
0
162
Member Avatar for jrkeller27

you can call Perl scripts from C/C++, but it's not particularly useful if you plan on distributing your code to any other machines. because you'll either need the full Perl installation (plus any obscure modules you might use) installed on (or networked to) every target machine, or you'll need a …

Member Avatar for William Hemsworth
0
1K
Member Avatar for people123

i dont have an answer to your question. but, if you don't mind me changing your question somewhat, the [i]new[/i] answer becomes: [URL="http://www.codeblocks.org/"]Code::Blocks[/URL] seriously. best thing i've found in a long time ... (with props to Salem) (ps: get the "MinGW" version. that way you can use either your MSVC …

Member Avatar for ismetteren
0
133
Member Avatar for prakasnisha

sounds like the bestest way to handle this is not to use a DIFF style comparison function, but merely to parse each file looking for the parameter in question. find the parameter, extract its corresponding value, compare the value(s) to each other and/or some initial/reference value this is the sort …

Member Avatar for Major Major
0
224
Member Avatar for siripong153

or you could pass in the name of the file on the command line [code=c]int main (int argc, char **argv) { char filename[MAX_FILENAME_LEN]; if (argc>1) strcpy(filename,argv[1]); else strcpy(filename,"default.dat"); if (fopen(filename,"r+b") == NULL) { printf("file <%s> does not exist!\n",filename); exit(0); } ... }[/code]

Member Avatar for siripong153
0
106
Member Avatar for nagguns
Member Avatar for SonxQ7

when you start thinking that standard C libraries are "misbehaving", you need to take a step back and recheck your assumptions. the most likely problems are (1) a bug in your own code (2) you dont understand the function like you think you do ... (3) a distant but possible …

Member Avatar for jephthah
0
221
Member Avatar for charkac

what are you trying to do exactly? start and stop a webcam, or engage some of its other functions, just in an automated fashion? or will this also involve interpreting the image files in some manner? .

Member Avatar for jephthah
0
2K
Member Avatar for cyruski

"my brother" needs a tic tac toe program written "in a couple hours" LOL, you people .... i swear, where do you come from? well "your brother" is pretty much screwed, isn't he? like Salem said... we're all happy to know that that there will be one less worthless, cheating, …

Member Avatar for jephthah
0
131
Member Avatar for Leil@

"URGENT" is so played out. But, hey, you're getting better... Your only other post here, from 5 months ago, was "HeLP I need it today" next time, try titling your post [b]"HALP HALP MY ASS IS ON FIRE!!!!!1"[/b] and lets see what happens. .

Member Avatar for jephthah
1
99
Member Avatar for Drake

global variables are evil. most beginners don't realize this, because in short little school programming assignments , no one cares. it becomes a major problem is "the real world" when people start relying on global variables as "duct tape" for poor program specification and implementation. because in the real world …

Member Avatar for jephthah
0
189
Member Avatar for awi123

i'll bet that, as part of the homework requirements, he's not allowed to use the <math.h> library

Member Avatar for lich
0
120
Member Avatar for twgood

i dont ever write pseudocode, so i have no idea what the formal structure is supposed to look like, but if someone held a gun to my head and said "GIVE ME PSEUDOCODE" ... then here's how i would start. [code]define structure named GRADES with string element NAME with integer …

Member Avatar for jephthah
0
114
Member Avatar for dalaharp

> will the above code work in dev C compiler? who knows? this thread FOUR YEARS OLD and is about a Turbo C program that was probably 10 years old when the thread was written. > Please also tell me how to capture ,store and read images using dev C. …

Member Avatar for jephthah
0
3K

The End.