- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 6
- Posts with Upvotes
- 6
- Upvoting Members
- 5
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
31 Posted Topics
Re: Hi, did you have a look in the folder [C:\Program Files\Borland\CBuilder6\Projects\] to see if Project1.exe is there at all? If this is a "new" Borland installation you may need to change some of the settings. | |
| |
Hello everbody Simply put; [I]rand() is driving me nuts[/I]. I've been trying to get my teeth into Dev c++ (v. 4.9.9.2) for the first time and couldn't find anything anywhere which helped me anymore. Nearly all this code is IDE generated or copied from examples - I'm just trying to … | |
Re: Has the OP considered agnosticism? Or theism for another? Wiki explains this well - [url]http://en.wikipedia.org/wiki/Agnosticism[/url] [url]http://en.wikipedia.org/wiki/Theism[/url] ![]() | |
Re: Have a go at it, and then show us what you tried. David | |
Re: I had this problem with a program that I tried to write only using the polish alphabet - I gave up! Interestingly I can get french letters to show but certain others won't. For example, "ÀÇçąĉƓƸçƂȩèéÈÉê", regardless from which language they come from, these show up in the IDE (before … | |
Re: When I ran your program, everything was right-aligned excpet for the "Gross" column - exactly as in your given output. Change [CODE]55 << setw(7) << GrP << "\t"[/CODE] and for perfection [CODE]40 << setw(7) << "Gross" << "\t"[/CODE] David | |
Re: I believe you've got a typo on line 94: [CODE]+ (seconds / [COLOR="Red"]6.00 [/COLOR]/ 60.0 );[/CODE] | |
Re: Hmm, I see that this thread has just been closed. I wanted to ask if Narue could add a few comments about her offering to explain what's happening here - I would also like to understand more is this. | |
Re: Hello. Why is your program generating a random number? It's the human who has to think of one! You can take that bit out. You need to use the idea of a 'number line'. Say you need to choose a number between 1 - 10 and you choose 7. At … | |
Re: Ancient Dragon has aptly answered this already but you might also find the following useful to read: [url]http://www.daniweb.com/forums/thread331408.html[/url] | |
Re: A few questions: Are you only going to count the number of instances of the first character encountered in your input (the string), or count how often each different character occurs? Are you supposed to use arrays? Two main problem points: 1/ in main() you never call your method 'void … | |
Re: Hi, I just tried your program. It runs quite well for a time but it crashed on me (twice) while it was throwing the die. Also, the "enter ye' choice" is presented at another place obscuring the scoreboard - but not always. Another small point; the "Keep All" label is … | |
![]() | Re: Hello, you haven't indicated that you've sorted this out so...an idea... Introduce a variable (as you indicated). Then introduce a menu at line 71 which lists out which music is available, and then use a switch statement on the return value (presumably of type int) to play the chosen piece … |
Re: you declare [CODE] 11 static void playGame(); //takes no parameter [/CODE] but here you pass a parameter in: [CODE] 33 playGame(r); 51 int playGame(int p) [/CODE] Here, you could use another name, [CODE] 16 enum boolean 17 { 18 False, True 19 }; [/CODE] but anyway the values of True … | |
Re: You need to do a rethink here. [CODE]119. cout << postfix[i] << endl;[/CODE] This gives a little insight as to what your program is doing with the input. eg postfix 1+1 -> 11+ 12+34 -> 1234+ 12+34-56 -> 1234+56- You then switch using the last operand listed in postfix. How … | |
Re: Has the silence answered your question? | |
Re: Have a look at this thread: [url]http://www.daniweb.com/forums/thread288725.html[/url] | |
Re: I'm going to keep looking into this - it's interesting. Just loaded and then ran your prog several times until . . . -1, -1 (if your interested, yes, it happened with the nr 13!!!!) | |
Re: @pretty_girl90 You shouldn't hijack threads. Please start your own, and that way you much more likely to get a response. | |
Hi everyone, I'm writing a program for a teacher and friend of mine. It's a simple math-aid prog aimed at children up to 10yo. I was thinking that it would not only be a good idea that a child couldn't shut down the program without a password (obviously), but how … | |
Re: You need to take a look into I/O manipulators. You'll need 3 in all - setw(int) is one of them. Have a bash at it first and let me know. | |
Re: That stops the repeated errors but it still accepts letters - try entering "9t2" or anything in that order. The question in the code states "Please pick a number between 1 and 5.". Is that important? | |
Re: change line 48 to: randomNumbers[a] = rand() % ((rangeNums[21] - 1) - rangeNums[0]) + rangeNums[0]; (all slots occupied) change lne 91 to: if(countOccurances[d] != 0) (no extra '*' printed with multiples of 10) then it seems to work. I hate working with comparison with numbers in loops but it is … | |
Re: Hello all, I agree with hanvyj. I'm no profi at this, but to find the position a given character I would use: AnsiPos(const AnsiString& subStr) const or Pos(const AnsiString& subStr) const. For conversion, there's ToInt() const and ToIntDef(int defaultValue) const. I'm not sure how you should go about splitting/checking for … | |
Re: hello mike_2000_17, could you explain a couple of things about your code offering. I'm not that experienced and only write for fun/pleasure but would love to understand whats going on there with a view to implementing something similar in GUI's. 1/ What is the '5' for at the end of … | |
Hello. I've got a program with several StringGrids and need to implement *one* popupmenu for them all. Everything up till now works fine - even the popupmenu's but... When I left-click on the grid the cell changes color ie receives focus. When I right-clck on the grid the popupmenu appears. … | |
Hello Everyone, my first post - so please don't shoot me if it goes wrong! I'd been looking for this for some time now and have seen a number of related queries but no solutions. I cannot take credit for the whole code here, but I did adapt it to … |
The End.