5,676 Posted Topics
Re: And your question about this poor code is... what? | |
Re: Games. Mastermind, Craps, Hangman, Lingo.... | |
Re: [QUOTE=paul1000;]Thanks doggyminder for your contributions,honestly i have already bought ebooks on adsense programs,i have also read so many free ebooks and reports on google adsense,but after creating so many sites,i discovered that what i thought was different from the result am seeing.[/QUOTE] You seem to be proof that "[I]you get … | |
Re: Look at it this way. A declaration is like your street address. It isn't where you live, just a reference to the location. It simply says that your place (or the variable) exists somewhere. A definition is the house/apartment itself. It holds all your stuff -- like a variable. You … | |
Re: Actually, you should probably [url=http://www.daniweb.com/techtalkforums/thread78223.html]Read This![/url], then post back. | |
Re: [QUOTE=Renesme-LuCiFeR;]My Problem Is That I Cannot Find What I'm looking For , When I'm Studying My Reference Which is C, Programming Language 2nd Edition.... It Cannot Answer All of Questions...So I Tried Here...[/QUOTE] In my experience [B]C, Programming Language 2nd Edition[/B] explains EXACTLY how a loop works. Any explanation we … | |
Re: Ctrl, Alt, Shift are not 'keys', they are modifiers to keys. [B]C[/B] is a key, value is 67. [B]Ctrl-C[/B] is also a key, value 3. Look on Google for information about [I]Sendkeys[/I] | |
Re: [QUOTE=jjwitherspoon;]If you need a better explanation, let me know.[/QUOTE] Since he hasn't been here since Jan 4th, I wouldn't hold my breath waiting for him. | |
Re: Pass in another string which will be loaded with the reversed string as you go through your return side of the function | |
Re: You aren't retrieving the value in [ICODE]main()[/ICODE]. Where does [ICODE]calcDays (numberOfDays);[/ICODE] put the value upon return? Do you need to brush up on returning values in you book? | |
Re: Just saw it tonight. If the crust shifts 23 deg and brings China close enough that the plane can land without getting wet, why were the mountains untouched? Seems to me the shift would cause massive destruction there, too. | |
Re: [QUOTE=Zvjezdan23;]That code didn't work for me so I modified it. This code will work for any situation that someone needs to use the up arrow, down arrow, left arrow, and right arrow. [/QUOTE] It will? Try it on any Linux Compiler. Try it on any non-Borland/Microsoft compiler. It won't work … ![]() | |
Re: Did you bother to read any of the requested information posted all over this site about CODE tags, like 1) in [url=http://www.daniweb.com/techtalkforums/faq.php?faq=daniweb_policies]the Rules[/url] you were asked to read when you registered 2) in the text at the top of this forum 3) in the announcement at the top of this … | |
Re: if [I]ro[/I]=0 and [I]co[/I]=5, [iCODE]if (grid[ro-1][co] == '.' && ro-1 < ROW)[/iCODE] will first test [I]grid(-1,5)[/I]. Is that a valid test? | |
Re: > Dutch words are good readable, and they look like the English words. There are very few words that start with BJ in English. There's BJ Hunnicut from M\*A\*S\*H. Hmmm, that's the only one I can think of. Oh, and Bjorn Borg. No, wait, he's not from here, is he? … | |
Re: [QUOTE=vijayan121;353712]change line 16 to: [B]cout << "\n |\n" ;[/B][/QUOTE] Horizontal is ---- not | Blank lines can be added as [b]Vij[/b] says by outputting a [I]\n[/I] or [I]endl[/I] | |
Re: You have to control the cursor which is not something that [I]Standard C++[/I] can do. This takes commands that are system and/or compiler defined. And they are optional so they might not be defined for your system. | |
Re: [QUOTE=SpecialeW;530504]ah and I was thinking it was my logic... thnx very much it works perfectly now[/QUOTE] No it doesn't. Try answering the question with "Supercalifragilisticexpialidocious". Chances are the program will crash because you are stuffing 34 characters into a 4-character array. Instead of [ICODE]char[/ICODE] use the C++ [ICODE]string[/ICODE]. Then you … | |
Re: Gee, I wonder what you types in. I also wonder what answers you got. Any help is dependent on the input and output. | |
Re: Yes. `fopen()`. Your analysis of the problem is completely wrong. `fopen()` can open any file. As AD said, "*check the return value of fopen()*". The `fopen()` probably failed for some reason. | |
Re: [QUOTE=crunchie;1659206]Now, how to figure 3.75 degrees.[/QUOTE] Easy. Draw a circle. Take away everything that isn't 3.75 degrees. | |
Re: Do you know how to load a value into datagrid row1 col1? Just load the .text of the textbox into the location you need with an = | |
Re: **Lucaci Andrew** basically said: "*test for invalid input*" **NathanOliver** said ... "*you need to use a loop*" After these two posts: **rogernick** said "*Did you try using a loop method?*" **np complete** said "*Try using loop for inputing and displaying ... checking whether input is [invalid] or not*" It helps … | |
Re: [QUOTE=aramil daern;]These are codes that do absolutley nothing, except to show whart you can do with to much time on your hands. Oh the silliness[/QUOTE] And your point? | |
Re: > Thanks for all your replies. But can anyone think that these are the reply to my question? Am i helpless regarding this? Yes, absolutely. Let's recap. You asked a question giving an example: > ...say an incorrect program..: for(int i=0;i<=12;i++) { ifstream comp("%i.txt"); comp.close; } > i know the … | |
Re: Please explain exactly how you are checking for a prime. I see no code at all that does it. | |
![]() | Re: Well, if it doesn't open the file, how can it calculate the data? Where did you save the file? Where is the program looking for the file? Make sure they are the same place. |
Re: > Unfortunately if you'll notice, How would we notice? It's just a box ;o) | |
Re: That's like asking what are the advantages of Apples over Video Games. They are two different things. | |
Re: Nice. Try it with the city [I]Des Moines[/I] or [I]Los Angeles[/I] and let us know how it works. | |
Re: Look up the **methods** in the `string` class. The methods for searching, splitting, and all that stuff are well documented. | |
Re: Where are you going to press "X"? What variable will get it? > I am playing against the computer and this is the beginning. my main question is on the loop and the randomness. I need the program to keep going and show score after every 3 times and the … | |
Re: You can't increment constant values. That's why they are **const** | |
Re: Please explain this loop. It doesn't make any sense to me. for (int i = 0; i < size; i++) { for (int j = i + 1; j < size; j++) { if (array[i] != array[j]) { *Walker = array [i]; Walker++; usize++; } i++; j--; } } And … | |
Re: [Format! Format! Format! Format! Format! Format! ](http://www.gidnetwork.com/b-38.html) [gets()](http://www.gidnetwork.com/b-56.html) Isn't **ced** your ID? Isn't it a char array? Why are you reading it as a float? | |
Re: >Every program I have made, can be run in Windows 95, 98, ME, NT, 2000, XP, Vista and 7. It supports nearly every version of Windows, also the new ones. Bowls made by the Mayans and by the Sumerians still work today (if found intact). Which are better? And are … | |
Re: And why are you calling the function `randomize` **and** `srand()`? | |
Re: Let's see if you followed the assignment: > Specicially we want you to write a function named generateRandom that generates a single random number in a range specified by the user. Look at the `generateRandom()` function. Does it in fact generate any random numbers? > Write a main function that … | |
Re: First, don't use a **double**. It's inaccurate. A long is good for 4 billion values. A long long (assuming it works) is astronomically larger. Second, take that hellacious equation and break it up into manageable segments. Calculate the year. Then the month. Then the day. Then put them together. This … | |
Re: See comments: while(!(cat1->Empty())) { // process queue 1 } if(cat1->Empty()) // Didn't you just empty queue 1? { // Why do you need to test if it's empty? while(!(cat2->Empty())) { // process queue 2 } } I don't see a definition for **nullptr**. Did you define it to be FALSE … | |
Re: I think you need to explain in more detail. What are you ultimately trying to do? What is wrong with the two functions? What is your definition of an invalid input? ... valid input? | |
![]() | Re: What if the 1,000,000th is a spammer? Do they get a case of jellied pork parts? |
Re: Space Invaders, Pacman, and Pong! The holy three! | |
Inline Tags need to keep spacing for 2 reasons 1) they are the only way we can officially *quote* code 2) whether one line or an entire block of code, spacing can be important. It's CODE after all. | |
Re: Can't read it. After 140+ posts you should understand formatting by now. | |
Re: I would grab a piece of paper and a pencil and start here: int value = 0; int count = 0; int sum = 0; int average; Write down the above variables on the paper and their values. Then continue looking at each line of code and change the value … | |
Re: And `main()` is **NOT** *void*. It's *int*. | |
Re: Of course not. \* and / are by *definition* a higher precidence that + and - |
The End.