Forum: DaniWeb Community Feedback 11 Days Ago |
| Replies: 90 Views: 4,706 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 11 Days Ago |
| Replies: 15 Views: 871 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 11 Days Ago |
| Replies: 9 Views: 193 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 11 Days Ago |
| Replies: 6 Views: 8,754 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 11 Days Ago |
| Replies: 11 Views: 404 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 11 Days Ago |
| Replies: 9 Views: 271 Try this... (http://lmgtfy.com/?q=C+input+output) |
Forum: C 11 Days Ago |
| Replies: 3 Views: 177 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 18 Days Ago |
| Replies: 15 Views: 871 |
Forum: C 18 Days Ago |
| Replies: 2 Views: 309 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 18 Days Ago |
| Replies: 10 Views: 402 Nothing.
But return (0); or return 0; will exit the program and return 0 to the operating system. |
Forum: C++ 18 Days Ago |
| Replies: 4 Views: 307 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++ 18 Days Ago |
| Replies: 9 Views: 299 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++ 18 Days Ago |
| Replies: 10 Views: 279 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 18 Days Ago |
| Replies: 7 Views: 240 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 18 Days Ago |
| Replies: 7 Views: 330 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 19 Days Ago |
| Replies: 2 Views: 247 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 19 Days Ago |
| Replies: 7 Views: 240 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 19 Days Ago |
| Replies: 7 Views: 330 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 19 Days Ago |
| Replies: 1 Views: 196 I usually have to do some work to get something I need. You have to, also. |
Forum: C 19 Days Ago |
| Replies: 10 Views: 402 :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 19 Days Ago |
| Replies: 4 Views: 304 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 20 Days Ago |
| Replies: 12 Views: 412 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++ 20 Days Ago |
| Replies: 3 Views: 192 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++ 20 Days Ago |
| Replies: 3 Views: 191 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++ 20 Days Ago |
| Replies: 5 Views: 301 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 20 Days Ago |
| Replies: 2 Views: 344 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++ 22 Days Ago |
| Replies: 5 Views: 301 It also never gets a new number. The line
guessNumber = rand() % 100 + 1;
Needs to be inside the loop. |
Forum: C 23 Days Ago |
| Replies: 2 Views: 217 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++ 23 Days Ago |
| Replies: 7 Views: 326 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 23 Days Ago |
| Replies: 4 Views: 304 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 23 Days Ago |
| Replies: 3 Views: 302 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 23 Days Ago |
| Replies: 3 Views: 341 We're glad you wrote the program and it works. Very proud of you. |
Forum: C++ 24 Days Ago |
| Replies: 5 Views: 416 If you want to know how a program works, plzzzzzzzzzzzz post a program. Or try reading the Rules for the site. |
Forum: C++ 24 Days Ago |
| Replies: 2 Views: 231 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 24 Days Ago |
| Replies: 4 Views: 255 Look into the modulus (%) operator. |
Forum: C++ 24 Days Ago |
| Replies: 3 Views: 164 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++ 27 Days Ago |
| Replies: 1 Views: 151 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 27 Days Ago |
| Replies: 2 Views: 197 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 27 Days Ago |
| Replies: 1 Views: 248 #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 27 Days Ago |
| Replies: 1 Views: 238 I do. And nothing is EVER urgent here. Read the Rules, please. |