1,088 Posted Topics
Re: [quote=)BIG"B"Affleck;9043]Este sitio es muy caliente! Tiene mucho informacion para los techies muy frios! Translation [B]This place is very warm! It has very much information for the very cold techies![/B][/quote] Can't help it!. Correction: "Tiene mucha" | |
Re: Question from an ignorant: Why 1679? | |
Re: For sure I will ask my doctor for it, even when my insurance will only pay for generic brand. | |
Re: >some use one eighth the energy of normal light bulbs and can be kept on for fifty years straight without blowing out. Darn. I want some of those. Where do you get them? | |
Re: The first one will not compile because of these: the printf statements need to have a ; at the end. And the scanf statements need to be changed with the proper declared arrays. Instead of first needs to be str1 and instead of last needs to be str2. When you … | |
Re: >There are people who would probably blaim Bush for Christ's second coming. I'll say more like his crucifixion and death. | |
Re: >Is this the right way to use fgets when its for non file input. Yup. And if you use sizeof instead of the literal array size, you can change at any time how big userinput can be, and still work. | |
Re: >Not sure where europe would fit in, unless maybe [URL="http://www.starwars.com/databank/character/palpatine/"]Palpatine[/URL] No, I'll say more like [URL="http://www.starwars.com/databank/character/amidala/"]Padme Amidala[/URL], that gets used and then disposed. | |
Re: [quote=christina>you;372864] I wouldn't doubt for a second that Kim Jung Il would go to war with us if we ever crossed his path.[/quote] Haven't we cross his path yet?. | |
Re: Ancient Dragon. I seem to recall that you mentioned once that you came to the world of programming being fairly mature. I am not as old, but old enough to think that schooling might not be a solution. Is there any hope for a hobbyist like me, to someday get … | |
Re: [quote=Squires;378200]I personally have nothing against macs or linux [/quote] That's wonderful since I am sure they don't have any thing against you neither. [quote=Squires;378200] IMO, there is no definitive answer to the Os debate.[/quote] It seems a pretty much worthless cause for you to post then. | |
Re: >and also why it wasn't working the way I had it at first? Did you include <stdlib.h> and <time.h>, the first time?. Most like you missed <stdlib.h> if I were going to guess. Take the srand() function out of the getCard(). Call srand( (unsigned) time( NULL ) ) inside main() … | |
Re: A little example of using what it has been said so far. Sorry, the proper c tagging is not working at this time. [code]#include <stdio.h> #include <ctype.h> int getinteger( int *result ) { int send = 0; char ch; char buffer [ 13 ] = { '\0' }; if( fgets( … | |
Re: This is better that a soap opera on TV. Now I have a new game with this thread. I go down the thread and every time I see someone with a good rep or a bad one, before I check what's the comment on it, I try to guess who … | |
Re: Confused612, it would be fun to help you in your code. However you need to post what you have done so far in your assigment. See [URL="http://www.daniweb.com/techtalkforums/announcement118-2.html"]here[/URL] is a cool page that will help you in that regard. And just so you know, it is frowned upon making double posting. | |
Re: [quote=happygeek;367619] So you [B]will [/B]get to be scared by the big ugly tattooed brute that is happygeek :)[/quote] You better be really ugly, if not I'm going to be disappointed now. Fame and beauty. That would be too much for me. ;) | |
I posted a snippet of code in the c programming forum and like always I used the [code=C] tagging form, however the code did not show properly. Here's a snap-shot of that particular occasion. | |
Re: [quote=Serunson;372037]Just had my braces off today, so well happy bout that! Anyone here have/had braces? I now have to wear silly plastic 'retainers' to keep them in place.........i could be wearing them for up to 2 YEARS?!?!?! What fun for me...........[/quote] you must be looking forward to a whole-full life … | |
Re: Take a look at these 2 snippets for reading floats without using scanf() [URL="http://www.daniweb.com/code/snippet358.html"]snippet one[/URL] and [URL="http://www.daniweb.com/code/snippet597.html"]snippet two[/URL]. | |
| |
Re: Sons of @#$!s. I wonder if any one got their car driving plate. I'm sure many think is all fun. | |
Re: Compiler errors are compounded. The first error creates another and another, and so on. For example: I see that you use a variable named c a few lines below main, but you never declared that variable. p and q suffers the same problem. Fix those and things start looking better. … | |
Re: [quote=sofianos;371234] [COLOR=green] [/COLOR][COLOR=green]#define Tax 0.19 [/COLOR][/quote] It is customary to use all-upper case when you define a constant [quote=sofianos;371234] [COLOR=green][B]struct[/B][/COLOR][COLOR=green] products_array { [/COLOR][COLOR=green][B]char[/B][/COLOR][COLOR=green] Code[[/COLOR][COLOR=green]3[/COLOR][COLOR=green]]; [/COLOR][COLOR=green][B]char[/B][/COLOR][COLOR=green] description[[/COLOR][COLOR=green]20[/COLOR][COLOR=green]]; [/COLOR][COLOR=green][B]int[/B][/COLOR][COLOR=green] available_stock; [/COLOR][COLOR=green][B]float[/B][/COLOR][COLOR=green] price_per_item; [/COLOR][COLOR=green][B]float[/B][/COLOR][COLOR=green] Tax; [/COLOR][COLOR=green][B]float[/B][/COLOR][COLOR=green] total_price_per_item; } [/COLOR][COLOR=green][B]struct[/B][/COLOR][COLOR=green] products_array products; [/COLOR][/quote] You need to add a ";" at the end of the … | |
Re: >In fact in several countries that's what convicts are used for, China for example. Where did you learn that fact?. | |
Re: [quote=cscgal;366470] So how am I not listening to feedback?[/quote] Why don't we let the poll show the results, and then use it as a form of democracy. Instead of imposing our personal preference, let's just agree to let mayority rule and accept the result. | |
Re: Dev-C++ doesn't have a problem compiling it. [COLOR=green][COLOR=green]void main[/COLOR][/COLOR] should be [COLOR=green]int main( void ) [/COLOR] Also I don't understand why you didn't prototyped the function as you declared. long transformaclave( const char* cl) long transformaclave( const char c[ ]); It appears to me that your compiler doesn't like that. | |
Re: Just one of many ways of doing it: [code=C]/* * isPalindrome.c * */ #include <stdio.h> #include <ctype.h> int isPalindrome( char *str, int length ) { if ( length < 1 ) { return 1; /* no more chars to compare, its a palindrome */ } if ( str[0] == str[length-1] … | |
When I click in my avatar at the right side, a new page appears with some information concerning a "Member Certificate". How do you use that?. Specially the part about forums. I don't have a web page. | |
Re: [code=C]#include<stdio.h> void reverse(char *ptr, char ch, int length) { if(length != 0) { reverse(ptr, *(ptr+(strlen(ptr))-length ), (length -1)); *(ptr+length) = ch; } } int main(void) { char string[40]; printf("Enter string\n"); gets(string); reverse(string,*string,strlen(string) - 1); printf("%s",string); getchar(); return 0; }[/code] | |
Re: Do you see how nice is the code that [B]iamthwee[/B] posted for you?. With nice format and easy to read indenting?. [B] iamthwee [/B]is not the only one that can do that. You can do it too. Learn how to tag by clicking [URL="http://www.daniweb.com/techtalkforums/announcement118-3.html"]here.[/URL] | |
| |
Re: >while(grade[i] < 0.0 || grade[i] > 4.0) Change to while( grade[i] < 0.0 && grade[i] > 4.0) | |
Re: [quote=parthiban;365794]Hi all, I just started to work C++ in Dev C++ compiler before that i used Turbo C++ compiler when i try to compile a simple program in Dev C++ compiler . I'm getting error . Here's the program [code]#include <iostream> #include <conio.h> int main () { cout << "Hello … | |
Re: Why is it, that politicians always bring out the worst of us? | |
Re: My soon to be four year old watched this video with me. As it ended he said to me. Do it again. Meaning play it again. And he watched quite. It just made me think. | |
Re: [quote=nkhosinathie;364546]i'm writing a pseudocode for a program that ask a user to enter a data and the program should forced the user to enter a required information.using a for loop. the program is like this. women between the following agea 20.20-30,32 above men between the ages 20,20-30 and 32 above … | |
Re: [quote=sofianos;364907][COLOR=black] im confused[/COLOR] what to write in the case 3 and 4..... [/quote] I, also, would be confused with that kind of indenting and spacing of your code. To start read [URL="http://www.daniweb.com/techtalkforums/announcement8-3.html"]here[/URL] about proper tagging of the code you post. | |
Re: Your question will be answer shortly. In the meanwhile please do read this short [URL="http://www.daniweb.com/techtalkforums/announcement8-3.html"]guide[/URL] on how to tag your code properly. | |
Re: Sad when we have to right down a law to remember to be good stewards. | |
Re: Can you use putchar() and display each character one at a time? | |
Re: [quote=mariocatch;364049]not sure why you're asking this... it wont make a difference whether or not we think you did a good job.[/quote] Maybe he just need a little TLC. | |
Re: Does it work in C++ like this?: [code] if( *temp_ptr == 0 ) {}[/code] | |
God Reveals DNA Secrets For many years molecular biologists have been mystified by the fact that very little of an organism's DNA seems to serve any useful function. Last night God revealed the mystery by posting the code on a warez site. I am just posting the first segment of … |
The End.