451 Posted Topics
Re: haha... i wish it was that easy... why not better ask for donations? | |
this is an awesome game!!!! my god... i fried my brains thinking in the anwers to these amazing riddles... i got until level 26... then got banned for cheating... haha | |
Re: nonetheless, i found out that clock() works different depending on which compiler you are working... 4 example... in dev c++, i measured clock measured 1/1000... but turbo c++ measured 1/20... the thing is... i don't know why... | |
while i was trying to enter "everything and anything" in the geeks' lounge, my explorer crashed several times, so i gave up trying to enter this thread... is there any special reason for this to happen? | |
Re: why don't you better use cin and cout? either way, it would be like this: [inlinecode]scanf("%s",&word);[/inlinecode] | |
Re: i hate it when those jerks do that... our president buyed a private luxury jet with OUR money... | |
Re: that stuff there is now in cartoon network... even my little sister that is 4 y/o can do better cartoons than those... now, if we're talking about adult cartoons (the simpsons, family guy, southpark) tjose are pretty cool... | |
Re: what about doing it with a struct? this way every array is independent from the other, so you can create an array of structs... now, what i would find complicated is instructing the structs the size of the array of ints... maybe creating an int variable in the struct that … | |
Re: thank god i'm safe from HAS... or is it also dangerous for ppl alien to USA? | |
Re: first of all, the first warning (the one that says about double and int) means that you are initializin an integer (whole number) with values of a double number (a number with decimal points and extreme accuracy)... so, you should initialize your variable as a float or double... | |
Re: then why in the world everyone interpreted humpty dumpty was an egg? actually, ebing a cannon makes perfect sense... :P | |
Re: [code=c]#include<iostream> using namespace std; int qsrt(int array[], int first, int last){ int over = 0; over = first-last; int g=0; if(over==0){ return 0; }int c=0; int start = first; int end = last; int pivot = array[first]; int temp =0; while(first != last){ while((array[last]>pivot)&&(first != last)){ last--; }while((array[first]<pivot)&&(first != last)){ … | |
Re: i actually run vista with 1 gig, and i'm expecting my pc to die someday soon... i think it was a bad idea installing vista on a computer this old... (about 2 years)... i've already reached its maximum capacity... though somewhere out there i read that vista has a new … | |
Re: but the best waters i've ever seen are the ones surrounding sorrento, Italy... All the way from the coast to the island, it's sooo nice... I had a hard time voting i the poll... since i love traveling, but i also love going to water parks... and even more amusement … | |
Re: there are two things you could do to help those who want to help you... first of all, wrap your text in code tags[[B]code=c[/B]][[B]/code[/B]]... second, try using a title that suggests what your problem is next time... | |
Re: first, you should try reading [URL="http://www.daniweb.com/techtalkforums/thread78223.html"]this[/URL] and [URL="http://www.daniweb.com/techtalkforums/announcement8-3.html"]this[/URL]. that way it will be easier to read your code... | |
Re: It is a little difficult to get 2 NY from Central America... it would be really fun though... unless someone wants to donate a flight to NY and backwards... :P | |
Re: pretty clever using ajax... that's a nice one...:P | |
Re: Actually, i've never used colors, and i've managed to survive... and it's pretty annoying reading text in various colors... it is actually a hedache (literally) reading something with too many font variations... i'd rather read a text that uses just [B]bold [/B]and [I]italic[/I] text than reading underlined, colored text... so … | |
Re: first of all, you shouldn't name your thread with than name... maybe that way, other members would know what is your problem... | |
[U][B]Dear poster:[/B][/U] we don't actually have any issues with answering your doubts/questions or solving your problems, but it would be very time saving for us (problem solvers) if you could please mark your threads as solved when your problem has been solved, since, when you don't do that, we read … | |
Re: >> I think Paris Hilton should be in jail for the rest of her life What have people in jail done to you so you want to punish them in that way? | |
Re: why not better do it less complicated:[code=c] for (i=0;i<=5;i++){ do{ cout<<"Enter grade "<<i<<" on a scale from 0.0 to 4.0: "; cin>>grade[i]; }while ((grade[i]<0.00)||(grade[i]>4.00)); } [/code] | |
Re: i thought a rule for posting was not using titles such as this one... and... could you plz mark it as solved when your question is answered? | |
Re: besides, you should consider: -- using the right type of variable, meaning, if yyou need to use decimal values in your program, if they're not too big, consider using [B]float[/B] rather than [B]double[/B]... -- (where you can) using pointers instead of arrays, since it uses less memory -- being specific … | |
i've gone through some threads from people asking for help that have posts from these users saying things such as [quote]still the program doesn't do what i want it to do[/quote]This is why i would like to say to all users: [B]When we post solutions to your questions, most of … | |
Re: [quote=krishu] Respected Sirs/madam... Your' S Obediently Krishu[/quote] awww... come on... there's no need to do that... by the way... i thought titles should lead the readers towards what the thread is about... [quote=Narue] Asking for answers to be sent to you is against the rules.[/quote]Why does anyone read the rules?? | |
Re: first of all... i think it is very clear in the rules for posting that you shouldn't name your thread with names such as "help", or things like that... second, think yourself as memory as a huge shelf,a pretty huge shelf, where you save information in bit sized boxes... when … | |
Re: why don't you better post your code, so we can see where your problem is? | |
does someone know of anywhere i can find tutorials 4 VB 6? I'm on vacation, so i have plenty of time to hang around, and i would love to learn VB the way it's suposed, since at college i had a teacher that was a total jerk, so... plz someone … | |
Re: [quote] o icic thanks um but what i was really wondering how does that work in the loop it kinda hard for me 2 picture it[/quote] i don't wanna be rude or whatever... but this is just the lamest way to waste our time... you should want to read the … | |
Re: why not better work it out an even more simple way... get your string's length and create an array of characters as long as the string, which will substitute your string in the rest of the program. This way you can compare your guess individually with each element in the … | |
Re: whenever you wish to print or store code that is recognized as system code (meaning it will not be printed) such as quotes in a printf or cout, or things like that, you must include a "\" before the code... i.e.: [code]\" \\ \% [/code] etc... | |
Re: though, yo have not solved out what AD said... there's a lot of function in your inventory class that you should better use as general functions... | |
Re: if(strchr(sentence, *letter[j]) != NULL) { ++num[*letter[j]]; printf("'%c' was found in \"%s\" %d times. \n",*letter[j], sentence, num[j]); you are not using any counter to know how many letters you have. You should create a variable that will count how many times this process is true. | |
Re: by the way... the correct way to wrap your code is using CODE tags | |
Re: i will take my guess, and say you have low or no experience at all with c++... so... here's the deal... when you develop a switch, you write the code you want the program to run through in every case, and after every case, you write a [B]break[/B];, which will … | |
Re: by the way... isn't it a rule to avoid posting your thread with names such as "Help" or things like that? Instead you should post threads with a title that sort of describes your problem | |
Re: i have to create a perent/children process in c++... is there any way to do it as in c? | |
Re: this way: [code=c] int N; cout<<"Please input n"; cin>>N; for(j=0;j<N;j++){ temp=temp+temp+1) }for(i=temp;i<n;i++){ i=i+i+1; cout>>num; } [/code] hope u don't mind i used ur code jimmymerchant... but that's the way it will work with an user input... | |
Re: there's another solution a bit more complicated than the one from salem (wich is pretty simple, nonetheless pretty accurate to your question), but i'd rather create a temporary array, transer the files from [B]array1[size] [/B]into [B]array2[size],[/B] delete [B]array1[size][/B], create (again) [B]array1[size-1][/B], and transfer again all information, but the element you … | |
Re: why don't u better use a CHAR as a centinel? like this: [code]char ans; do{ (program) printf("Do you wish to enter another temperature?"); scanf("%c",&ans); }while ((ans=='y')||(ans=='Y')); [/code] | |
Re: when you use the library stdlib for the input/output commands, and you need to print decimals, you need to be careful on printing (as AD says) %1f or %2f (to display hundredths), instead of %d, since in %d it only displays whole values, not partial ones. | |
Re: why don't you try using [code]cout<<"\a";[/code]? | |
Re: First of all... what is the value you are telling the function to return? The third message means you cannot put a void function to be returned as an int function, so that's why you cannot tell the program to return "cout " ![]() | |
Re: it would be very useful if you wrapped your text in code ([code][/code]) | |
Re: what you need to use is a for(), since it is better because you can instruct the cycle to do the procedure as many times as you want. Like this: double x,multiplication=1; //create a second variable so you won't lose your x value for (int i=0;i<n;i++){ multiplication=multiplication*x; //multiply your x … |
The End.