5,676 Posted Topics
Re: Try it and find out! You'll get the answer in seconds! *I fear for the future* | |
Re: getch() blindly gets a character. getche() echos the character. Both of which you would have been able to answer in seconds by trying them. But, avoid using them because they are not standard and are only supported in a couple compilers. | |
Re: Probably because you are reading into a pointer but there is no storage space so you are overwriting some unknown memory you shouldn't be touching. When asking for help, be sure to give better detail. There are hundreds of "*runtime errors*". Which one? And what statement? And don't use anything … | |
Re: ... you win at poker night. I put in a strawberry candle... | |
Re: Since you barely know C++, is it a good idea to start another language and leave C++? Why waste the last 7 months? Develop your skills. | |
Re: Looks straight forward to me. It might help to explain what you don't understand. | |
Re: > Given a 7x4 array generate four random numbers from the array with no repetition. Your code and your description don't match at all. Where is your 7x4 array? How do you "*generate four random numbers **from** the array*"? what's in the array? | |
Re: My guess is the problem wants you to create your own BigInteger program, not use a ready-made library. What do you actually learn by using someone else's code? | |
Re: It's difficult. You have to understand how to design, store, and retrieve data from a database you design. I'd go with something like craps, tic-tac-toe, mastermind (also somewhat complex). A game that remembers a little bit of information but not too much. | |
Re: Lucky you... It must be your signature 'cuz *IT Consultant* usually makes grls run away! ;-) Just report the spammer (as you did) and they will be banned. | |
Re: First, [url=http://www.gidnetwork.com/b-38.html]format your code[/url] properly. What does your book/instructor say about a FOR loop and/or statement? What's it do? What does it execute? What does the program you wrote do? What does it not do? | |
Re: No, this is a help board -- not a teaching system. You'll have to do a lot of research on robot and firmware programming. | |
Re: You don't. You parse a file by reading it and breaking the line read into fields. *Then* you can store it in your structure. | |
Re: > I am so lost on what to do so please help how ever you can. > I must write a program to calculate the cost and time it takes to fill a swimming pool. Take each step and program it. Start with: > * Inputs: > Length, Width, and … | |
![]() | Re: They are incorrect. Anything that is "*compiler dependent*" should be avoided. As **deceptikon** said, it's *undefined*. Listen to experts, not friends. |
Re: Format your code. Explain what? You didn't tell us anything we can explain. | |
Re: > if(user=="abel" && pass=="pass") Look up how to compare strings again. You need to use `strcmp()` And remove your 2 `#define`'s. They make the code harder to understand, not easier. | |
| |
Can someone (Dani?) please reset my PM count to zero since I have no messages and its claiming I have 1? | |
Re: I don't see why (nor how) semaphores would be used in this problem. My solution would have a 4-integer array representing the lanes which contains the number of customers in it. A loop looks at the values and finds the minimum value. That's your chosen lane. | |
![]() | Re: > Companies always ask these tricky-defination type questions. They do? How many job interviews have you been on? Paraphrasing for ease of understanding: An expression is that portion of a statement that has operators (\*+-<> etc). A statement ends in ; There's more to it but that's what you can … ![]() |
Re: >Like it's on fire. Covered with ants. Ants on fire. Roasted ants! Yummm!!!! | |
Re: How to figure out logical solutions to problems would be a good start. | |
Re: Try outputting the values you input to see if they are correct. Since you are probably using, as **DeanMSands3** supposes, Turbo (I'm sure he's correct) find out what the *largest integer* is you can have in your compiler. ![]() | |
Re: > I have worked alot on graphics.h after including it in dev C++. in Dos Box your program will crash(without undefined reason) again and again(it is my personal experience). My brain hurts! 8( ![]() | |
Re: > We are capturing each network packet which is in this format. What format? A list of bytes is not a format... > The problem is that we would like to get the url if it exist in the packet in the form of http://...... ? What is the best … | |
Re: [QUOTE=alsoumhi;449323]please reply to me if it is correct or not[/QUOTE] Obviously not, since [B]Narue[/B] added the code tags for you. And you did not explain what your problem is. When someone suggests you read something, you should do it. Go back and read [B]Salem[/B]'s link -- and also read [url=http://www.gidnetwork.com/b-38.html]this[/url] … | |
![]() | Re: No it's not legally binding. Yes it's possible. |
Re: > a C file always require a main function to execute as in the case of multiply.c Take another look at **test1.cpp**. `main()` is right there! After changing **test.cpp** to **test.c**, add **multiply.c** to the compile line. | |
Re: > How to start... Same way you do with **any** program 1) decide what you want to make (without graphics) 2) write down how the game works 3) write down the steps it takes to play the game 4) expand each step until you can't expand it any more 5) … | |
Re: > find the min and max nodes a quad tree Are you missing a verb or something?? | |
Re: First off, you should use WHILE statements instead of FOR statements. You are not iterating through the string a set number of times, only until a specific condition is met. This will also let you process the string in 3 *distinct* segments: 1) find @ and end this loop 2) … | |
Re: > I can't find any information and how to return a string without using pointers. So use pointers. | |
Re: > What numeric system do you know where 1 + 3 = 5? It's obvious -- for large values of 1 & 3 and small values of 5! ;o) | |
Re: Are you kidding me??!!?? Forst of all, we don't write programs for people, we **help** them write their own. And the code: #define ODD(X) (X%2) // Why? This is just confusing when used main(nargs, args) // I haven't seen this MAIN signature since int nargs; // 1985! AFAIK, this has … | |
Re: Actually, yeah, it probably matters in at least one case. If there were 1000 views with no responses, the OP will probably get upset that no one cares about him. Therefore, the number of views could make someone feel bad. Hence, number of views should be left in the bit … | |
Re: Think about how you want your breakpoint to work. What happens when the breakpoint is activated? What does the user get to do when your breakpoint is activated? How do you want to continue from the breakpoint? Figure out all the ins and outs of your breakpoint concept. Once you … | |
Re: When you enter a negative number, what do you do with it? You process it as if it was a salary. After RATE = 0.06, you loop back, to get a new salary, but RATE is still 0.06. Is this what you intended? | |
Re: 1) [void main()](http://www.gidnetwork.com/b-66.html) 2) [gets()](http://www.gidnetwork.com/b-56.html) 3) "*not producing correct output*" -- Can you be less vague? Direct answer: There's something wrong then. | |
Re: No idea what's **best**. That depends on what you like. And what you know. Since we are ignorant of both, what can we say? Craps is a game. So is Halo. Are they great? Depends. | |
Re: >will this work sir???? What part of > you need to use an intermediate integer. > > int a,b,temp; > > temp = a > a = b > b = temp did you not understand? | |
Re: I'd also study about useful output messages: `Error deleting file` -- which file? `File successfully deleted` -- which file? | |
Re: The code you claim is the problem certainly has a major problem: if ((i = 10) && (userGuess != RANDOM_NUMBER)){ This says: set i to 10 is i true? Yes, it's 10. It's ALWAYS true... Did you want, perchance, to *compare* **i** with 10???? ;-) Also, do you really want … | |
Re: > This programs seems to run perfectly fine. but there is a bug in the get_number function I tried to find for hours but I couldnt. The mind just boggles! >See if you guys can help me. Any help is greatly appreciated. Thanks We could, but you didn't give us … | |
Re: And your [formatting](http://www.gidnetwork.com/b-38.html) makes the code very difficult to follow. Try a better fomrat and we can be much more helpful. | |
Re: > I'm still doing arrays starting from beginning to better get used it it. Therefore **speakon**'s code violate your major parameter -- using arrays. **phani1092** actually has the answer with "*All you need to do is divide the program in two halves*". The rest of his post though goes off … |
The End.