Forum: DaniWeb Community Feedback 24 Days Ago |
| Replies: 91 Views: 6,069 I disagree.
1) I don't like the new buttons. They have a retro feel and don't really do it for me. The yellow buttons fit the look of the page IMO.
2) I prefer multiquote rather than Flag to... |
Forum: DaniWeb Community Feedback 25 Days Ago |
| Replies: 15 Views: 1,268 I agree with Dave. What I do now is click the CODE tag and add the I -- very pita.
And as for AD's solution, that's fine for him. Many times I'm not on the keyboard constantly and the rat is... |
Forum: C 25 Days Ago |
| Replies: 9 Views: 222 Don't listen to dkalite. getch() is not standard, getchar() is.
As for your problem, my crystal ball tells me your problem is on line 75 of your code... :icon_confused: |
Forum: C 25 Days Ago |
| Replies: 6 Views: 8,924 Maybe if you USE CODE TAGS and Format your Code (http://www.gidnetwork.com/b-38.html) we might be able to help you. But your code is unreadable without formatting. |
Forum: C 25 Days Ago |
| Replies: 11 Views: 456 And in C for(unsigned i = 0; i < cantidad_frases; i++) is illegal.
i must be defined before it is used, not in the for statement. |
Forum: C 25 Days Ago |
| Replies: 9 Views: 300 Try this... (http://lmgtfy.com/?q=C+input+output) |
Forum: C 25 Days Ago |
| Replies: 3 Views: 194 Also you are not writing C++ code so all your variable definitions need to be at the top of your functions, before any executable statements.
And for us to follow your code, use proper formatting... |
Forum: DaniWeb Community Feedback 32 Days Ago |
| Replies: 15 Views: 1,268 |
Forum: C 32 Days Ago |
| Replies: 2 Views: 357 Why didn't you use CODE TAGs? Information is posted all over this site about CODE tags, like
1) in the Rules (http://www.daniweb.com/techtalkforums/faq.php?faq=daniweb_policies) you were asked to... |
Forum: C 32 Days Ago |
| Replies: 10 Views: 436 Nothing.
But return (0); or return 0; will exit the program and return 0 to the operating system. |
Forum: C++ 32 Days Ago |
| Replies: 4 Views: 344 Yes we can help you, but you must post code for us to help with. Read the Rules and the important sticky posts for info. |
Forum: C++ 32 Days Ago |
| Replies: 9 Views: 313 Since you are using upperCase and lowerCase as character arrays rather than strings, you need to output each value individually.
If you want to use them as a string, you need to remember that as... |
Forum: C++ 32 Days Ago |
| Replies: 10 Views: 293 Wouldn't it be helpful to us that aren't psychic to actually explain the problem? I assume you are having trouble compiling. |
Forum: C 32 Days Ago |
| Replies: 7 Views: 261 Set a value to 0.
Then when you read a number, subtract 0x30 from it which converts it to a binary digit.
Now multiply value by 10 and add the digit. |
Forum: C 32 Days Ago |
| Replies: 7 Views: 378 As requested, Gaiety:
Way too complex for a new programmer...
Not true. What is true is ANDing with a float's maintissa or exponent and getting a useful result is difficult to impossible,... |
Forum: C 32 Days Ago |
| Replies: 2 Views: 322 1) Using a useless BOLD for your question
2) Not using CODE tags
3) Not explaining what your problem is
4) Not telling us about where in your code the problem is |
Forum: C 32 Days Ago |
| Replies: 7 Views: 261 Put the digits into a char string. When you get a non-number. convert the digits using a function such as atoi(). Copy the operator to another variable. |
Forum: C 32 Days Ago |
| Replies: 7 Views: 378 0x8000000000000000 is the 'sign bit' of a 64 bit value. AND it with the value you want to check. If TRUE, the sign bit is set. |
Forum: C 32 Days Ago |
| Replies: 1 Views: 203 I usually have to do some work to get something I need. You have to, also. |
Forum: C 32 Days Ago |
| Replies: 10 Views: 436 :icon_rolleyes: What a bunch of useless responses :icon_rolleyes:
except for Tom's...
Why you don't use void with main(): click here (http://www.gidnetwork.com/b-66.html) |
Forum: C 32 Days Ago |
| Replies: 4 Views: 318 Then read the Rules and the sticky post with titles that sound important. Easily fixed.
Here's why you should not use getch(): click here (http://www.gidnetwork.com/b-43.html).
Here's why your... |
Forum: C 33 Days Ago |
| Replies: 12 Views: 444 Assuming this was a job interview, I suggest you stay away from any job that asks foolish questions like this. I would not want to work for a company that want it's programmers to use tricks that... |
Forum: C++ 33 Days Ago |
| Replies: 3 Views: 211 Start by doing 1a which is very basic and quite simple. Then start adding the code for 1b. When you get stuck actually coding, we can help you overcome those problems. But you have to code... |
Forum: C++ 33 Days Ago |
| Replies: 3 Views: 211 All you do is set valid to false at the beginning, never change it anywhere else in the code.
Think again -- what is the exit condition you need for the while and do-while loops. |
Forum: C++ 34 Days Ago |
| Replies: 5 Views: 360 Sorry. I didn't see that code because it didn't make sense to me at the end, and in that form. It's best at the beginning of the loop in this case. |
Forum: C 34 Days Ago |
| Replies: 2 Views: 415 Did your code work? If not, what happened? What value did you input? What value was output? How can you tell it didn't work? |
Forum: C++ Oct 16th, 2009 |
| Replies: 5 Views: 360 It also never gets a new number. The line
guessNumber = rand() % 100 + 1;
Needs to be inside the loop. |
Forum: C Oct 15th, 2009 |
| Replies: 2 Views: 251 You already have a thread started. You don't need to start many threads on the same topic.
And you neglected to read any of the requested information posted all over this site about CODE tags,... |
Forum: C++ Oct 15th, 2009 |
| Replies: 7 Views: 371 You need to use a loop and divide the number n by each odd number from 3 to n/2. If any number divides n evenly (no remainder) n is not prime. |
Forum: C Oct 15th, 2009 |
| Replies: 4 Views: 318 Let's see...
No CODE tags, even thought there are at least 6 places they are explained, and 3 of them on the main page alone.
No explanation about why code was posted
I guess all there is to say... |
Forum: C Oct 15th, 2009 |
| Replies: 3 Views: 356 Let's see...
No CODE tags, even thought there are at least 6 places they are explained, and 3 of them on the main page alone.
No explanation about why code was posted
I guess all there is to say... |
Forum: C Oct 15th, 2009 |
| Replies: 3 Views: 363 We're glad you wrote the program and it works. Very proud of you. |
Forum: C++ Oct 14th, 2009 |
| Replies: 5 Views: 501 If you want to know how a program works, plzzzzzzzzzzzz post a program. Or try reading the Rules for the site. |
Forum: C++ Oct 14th, 2009 |
| Replies: 2 Views: 270 If you can't give us any more information than just posting almost 200 lines of uncommented code with no indication what's wrong, where it's wrong, and not using CODE tags, then there's no real help... |
Forum: C Oct 14th, 2009 |
| Replies: 4 Views: 278 Look into the modulus (%) operator. |
Forum: C++ Oct 14th, 2009 |
| Replies: 3 Views: 175 First of all, format your code (http://www.gidnetwork.com/b-38.html) so it can be followed.
This code:
m = ~(arrX[I]);//convert to unsigned
m == m+1;
does not convert to unsigned. m == m+1; is a... |
Forum: C++ Oct 12th, 2009 |
| Replies: 1 Views: 165 Since doubles are rarely exact, probably your loop counter is wrong. For example when you think i=4 it's probably i=3.9999902 or something like that. |
Forum: C Oct 12th, 2009 |
| Replies: 2 Views: 229 First, format your code (http://www.gidnetwork.com/b-38.html).
Second, explain what you need help with. Don't make us guess. |
Forum: C Oct 12th, 2009 |
| Replies: 1 Views: 305 #1) No code tags
#2) void main() is wrong -- see this (http://www.gidnetwork.com/b-66.html)
#3) No formatting makes the code difficult to follow -- see this (http://www.gidnetwork.com/b-38.html)... |
Forum: C Oct 12th, 2009 |
| Replies: 1 Views: 272 I do. And nothing is EVER urgent here. Read the Rules, please. |