Forum: C 1 Hour Ago |
| Replies: 1 Views: 45 so you've posted your assignment.
what is your question? |
Forum: C 2 Hours Ago |
| Replies: 3 Views: 62 Hi BGSPACE,
welcome to the forums. thanks for using code tags and explaining your problem.
my problem with your code, is that you've got quite a mix of different environments, you have some... |
Forum: C 2 Hours Ago |
| Replies: 3 Views: 62 back off Mister 666, the poster has done nothing wrong.
there is no requirement that within the body of the code comments and output text be in English.
the forum rule you cite is to... |
Forum: C 23 Hours Ago |
| Replies: 3 Views: 103 well, i learn something new every day. |
Forum: C 23 Hours Ago |
| Replies: 6 Views: 246 another feckless attempt to steal teh fectorial codez. |
Forum: C 1 Day Ago |
| Replies: 7 Views: 228 there is nothing in C demands that TRUE = 1 and FALSE = 0. macros and constants are only what you #define them to be.
depending on what variation of the C environment you use, you very well... |
Forum: C 1 Day Ago |
| Replies: 4 Views: 3,683 consider the following:
typedef struct
{
char name[20];
int memory;
int time;
int files;
} proceso; // proceso is a "type" of struct
// defined as... |
Forum: C 1 Day Ago |
| Replies: 7 Views: 182 man, when i was in the Navy, we had our BMI regularly measured. it used some other measurements like neck and waist but essentially the same.
there was a guy who had a BMI of 8 or 9. many of us... |
Forum: C 1 Day Ago |
| Replies: 21 Views: 447 I added mine because I thought I would be nice and supply you with an answer. Because also, your posted "solution" that "works" in Mandriva is not a viable solution: it's a platform specific... |
Forum: C 2 Days Ago |
| Replies: 21 Views: 447 Dear raghuhr84,
please disregard everything Xavier666 has said. anyone who suggests flushing the input buffer or using gets() has no business instructing anyone in the C language. (I'm also... |
Forum: C 3 Days Ago |
| Replies: 4 Views: 205 and here's a variation that's even less elegant, but more simple, assuming you can use standard C libraries
#include <string.h>
char longString[3000], splitString[100][30];
int stringLen,... |
Forum: C 3 Days Ago |
| Replies: 6 Views: 239 YUP.
but to answer the OP's second question:
any loop can that can be done with a for statement, can also be done with a while statement. and vice versa. the details are different but the... |
Forum: C 3 Days Ago |
| Replies: 20 Views: 599 sock puppet just means an "empty head", and not implying who is in control. the emphasis is on sock; not so much on puppet.
and get used to shitty ESL grad students teaching low level programming... |
Forum: C 3 Days Ago |
| Replies: 4 Views: 191 here's a bug:
#include <conio.h>
your program is worthless with that in it. why do you people insist on clinging onto that Turbo C crap? |
Forum: C 4 Days Ago |
| Replies: 3 Views: 268 |
Forum: C 4 Days Ago |
| Replies: 5 Views: 238 if you want the capability of being able to shoot yourself in the foot, you can try
3. use fixed width records and one or more of "fseek", "ftell", "fsetpos", and "rewind" to manipulate the... |
Forum: C 4 Days Ago |
| Replies: 3 Views: 355 i don't really know what you're talking about, but thanks for posting your solution.
someone will wander across this someday and be helped by it.
:) |
Forum: C 4 Days Ago |
| Replies: 1 Views: 203 M (1000) is the largest roman numeral.
Therefore, MMMDCCCLXXXVIII (3888) is the largest value that can be represented by roman numerals via standard rules.
above that value, you can use a bar... |
Forum: C 5 Days Ago |
| Replies: 3 Views: 268 "fgets" is what you're looking for, at the very least. the easiest example will read the first line of the text file pointed by your FILE * into an arbitrary variable i call tempString:
... |
Forum: C 5 Days Ago |
| Replies: 1 Views: 154 what are you talking about? drawings? in C?
i mean, you can name and save any kind of file you want, whether if its a .bin or .txt or .bmp or whatever, but really, if you're drawing pictures... |
Forum: C 21 Days Ago |
| Replies: 2 Views: 397 you've got a lot of issues. for instance, these lines:
mino - minn = 30;
mino - minn = 60;
mino - minn = 00;
you can't make assignments like that. i'm having a really hard time following... |
Forum: C 21 Days Ago |
| Replies: 7 Views: 497 with all the solid professional compilers and dev environments out there -- many of them absolutely free -- why anyone, anywhere still uses this pile of non-standard crap of a compiler, is beyond... |
Forum: C 22 Days Ago |
| Replies: 5 Views: 664 hi, NAIK.
did you try this (http://en.wikipedia.org/wiki/Academic_dishonesty)? |
Forum: C 24 Days Ago |
| Replies: 2 Views: 310 i really want to help you, but your code is painful to look at. please repost it and enclose your code within tags.
always use good coding practice like proper indention of code blocks,... |
Forum: C Oct 26th, 2009 |
| Replies: 1 Views: 422 if you would like to get a meaningful response, please consider the following:
How to Ask a Question (http://support.microsoft.com/kb/555375)
Please Use Code Tags... |
Forum: C Oct 26th, 2009 |
| Replies: 2 Views: 217 i don't know what you're talking about, and i'm certainly not going to email you anything. |
Forum: C Oct 26th, 2009 |
| Replies: 3 Views: 210 you can't do this:
if (ch == *my_word ||*my_word2 || *my_word3)
you have to specify what you're testing for each OR'ed condition.
if (ch == *my_word || ch == *my_word2 || ch == *my_word3) |
Forum: C Oct 7th, 2009 |
| Replies: 6 Views: 501 Hi, tgir.
lets see if we can help. I believe your question is how to access 3x3 two-dimensional array. does that sound accurate?
also, i'm just curious, what engineering school do you go... |
Forum: C Oct 7th, 2009 |
| Replies: 7 Views: 302 you need to post a question if you want an answer. |
Forum: C Oct 5th, 2009 |
| Replies: 4 Views: 451 and quit assuming everyone on here is a "sir". sexist language was deprecated last century. get with the program. |
Forum: C Oct 5th, 2009 |
| Replies: 7 Views: 302 when you 'getch' you're taking the next character off of the input queue for processing.
this assumes once you've processed it, you're done with it, and will (probably) eventually want to get... |
Forum: C Oct 5th, 2009 |
| Replies: 1 Views: 331 no one's going to give you complete code for anything.
but here's a snippet:
while(1)
{
// do stuff here
} |
Forum: C Sep 3rd, 2009 |
| Replies: 8 Views: 383 the function, max, needs to be an int.
do not put 'int' in the arguments when you call the function. |
Forum: C Sep 3rd, 2009 |
| Replies: 8 Views: 383 void max(...
has no return type (it's void) but you're trying to return integers. and yet, you have the function attempting to assign a value to a long integer. why long? change it to int,... |
Forum: C Sep 3rd, 2009 |
| Replies: 2 Views: 292 hi, that's a very nice cut-and-paste you've done.
did you use the mouse right-click to paste? or did you use CTRL-C and CTRL-V? i prefer using the keyboard myself, it seems much more... |
Forum: C Aug 24th, 2009 |
| Replies: 10 Views: 678 come on, man. that's a legitimate question to ask. |
Forum: C Aug 24th, 2009 |
| Replies: 4 Views: 486 i agree that "void main" is to be avoided, but merely calling it "the evil" without explaining why is not going to impress many newbies, since it will always appear to them to work.
Anyhow,... |
Forum: C Aug 24th, 2009 |
| Replies: 3 Views: 313 |
Forum: C Aug 24th, 2009 |
| Replies: 3 Views: 313 what's "the logic"? FEC is a strategy not a protocol. there are a number of algorithms that could be used.
learn to formulate a proper question, and post it in the proper forum. |
Forum: C Aug 5th, 2009 |
| Replies: 13 Views: 780 the main() program can often be called by a parent program. 'return 0;' indicates to the caller (parent) that the main() program executed correctly.
so... generally speaking, the main function... |