5,676 Posted Topics
Re: After 7 years one would hope said junior computer student has been in the industry for a few years and can finally understand pointers... ;o) Maybe it would be better if people stop resurrecting long dead threads with worthless posts. | |
Re: I don't really see the problem, to be honest. If you don't understand anything the teacher says in class you need to talk to him one on one to explain what you are having trouble with so he can explain it in ways you *can* inderstand. You obviously need more … | |
Re: > Now, the second while loop (line 4) I don't understand. What happens first? The assignment (*base)=(*add) and the increment of pointer positions? Or the other way around? First increment of position, and then assignment. Think about how a `while` loop works. In general what's done first -- the comparison … | |
Re: > We need to know what types wallet, account, and savings are. No we don't. What types they are are irrelevant to the problem. Add `cout`s to follow the program flow to make sure you in fact *are* entering the function. And as **Labdabeta** suggests test (and display) the status … | |
| |
Re: How did you find the website before? How do you think you can find another website with similar information? | |
Re: [See this](http://www.gidnetwork.com/b-62.html). Check out the rest of the series, too. | |
Re: I'm sure stringstreams are not available for you, so you probably need to use a more mundane approach. But it depends entirely on if you use C++ strings or C-strings. | |
Re: So far you've only given vague information. You need to be specific in what you need help with and post code that shows what you are having trouble with. The more detailed the information, the more **good** help you will receive. So far, our best response to > I am … | |
Re: You ask a question that cannot be answered because there is no information given for us to understand and **deceptikon** is a moron? Check your mirror. And you also make threads with *urgent* and *plzz* in the title in violation of the Member Rule "*Do use clear and relevant titles … | |
Re: >I need your help regarding the message acknowledgement in the queue when the message reaches at the queue. Sorry, no idea what this means... | |
Re: [B]superblock [/B]- Do you need it? You're designing your own system, aren't you? Why try to duplicate something else, especially if you don't understand it? [B]boot block[/B] - You don't need it. You aren't booting anything. Assume this is a secondary drive. [url=http://en.wikipedia.org/wiki/KISS_principle]KISS[/url]. [B]inode list[/B] - This you need in … | |
Re: > how to make sure the same digit is not used twice? If you use it once, remove it from the list. For example: for(i=0; i<4; i++) { if(guess[i]==random[i]) { printf("#"); guess[i] = -1; // remove the guess since it's been used } } | |
Re: > You will never use malloc() or calloc() in C++. Ever. Wanna bet??? ;-) | |
Re: You first read a line from the file -- and do nothing with it. Then you read the first character of the next line and do worthless stuff with it if it's not SPACE. Then you go back and read the rest of that line with `fgets()` and do nothing … | |
Re: I would want an example from **you** since your description of the problem makes no sense to me. Show is what you are trying to accomplish and your attempt at the code to accomplish it. | |
Re: First you understand how a `for` loop works. Then understand all the pieces of the `for` loop expression. Next, look at the posted code and figure out which of those pieces are there. Put those pieces into the `for` loop syntax | |
Re: Why is `ht_put()` receiving *val* as a *void*? > printf("\n\n\tEnter name: "); // <- this does not work, all names get same phone number Add `fflush(stdout);` after the `printf()` to display it if it isn't working. Your input is being buffered... Also, [see this series](http://www.gidnetwork.com/b-62.html) about `scanf()` and what to … | |
Re: > Hi! Hi. > I am working into the development of a C++ related Phone Management System where the request is to: > > 1. Input information of new subscriber: The program should input a line of data from the keyboard in the following format: <surname> <name> ! <telephone1> <mode> … | |
Re: 1) Look up how and why to use `srand()`. You are using it wrong. 2) Using the technique you tried will work -- if you add one more step. After using `colors[pos];` you need to remove it from the list by moving all values after it down. In other words, … | |
Re: > and you can use void main() there is no need of making it int. Absolutely incorrect. See [void main()](http://www.gidnetwork.com/b-66.htm) | |
Re: > what you've shown me is correct!! but is there any way to know that 25-2i or 40-3i will give me what i want??? Yes. Sit down at your desk with pencil and paper and plug values into the variables. See what values are generated and draw out what they … | |
Re: You *initialize* a variable to give it a starting value if you need to use it. To *initialize* the variable you *assign* a value to it. So initializing means making sure you know the variable has a valid starting value. Assigning means putting a value into the variable. Slight definition … | |
Re: >post your code so we can attempt to clean and or fix one. No, post your code so we can help **you** fix it. We don't clean and fix here -- the OP learns nothing if it's done for him. | |
Re: YAJUTBIFSYDHTLHTRP suggestion... (*yet another just use the built in function so you don't have to learn how to really program*) | |
Re: Look up `va_start`, `va_list`, `va_arg`, `va_end` | |
Re: Your question makes no sense. Please explain in more detail with and example or two. | |
Re: Start calcumating prime numbers. When you've calculated **x** of them, there you are... And your tests for bad values of **x** would be better if you used a `do-while` loop. | |
Re: [See this](http://www.gidnetwork.com/b-45.html) | |
Re: Why does everyone think `new` is the way to create static arrays? What a waste of resources! Use a 2D array, row=number dialed, col=letters: char letters[10][4] = { {'-','-','-','-'}, //0 {'-','-','-','-'}, //1 {'A','B','C','-'}, //2 {'D','E','F','-'}, //3 {'G','H','I','-'}, //4 {'J','K','L','-'}, //5 {'M','N','O','-'}, //6 {'P','R','S','-'}, //7 {'T','U','V','-'}, //8 {'W','X','Y','Z'}}; //9 | |
Re: Your problem is trying to understand the *concept* by reading code. You need to understand linked lists in general before you deal with the code. Then you will be able to see what part of the code equates with what part of the concept. Search out a detailed generic explanation … | |
Re: > Okay, I know there is a prior article about this, but I used { } with my if statements, and it's still not working... is it because I have multiple if statements consecutively after another? No, it's because you have formatting that hides your problem. [See this](http://www.gidnetwork.com/b-38.html) for proper … | |
Re: Since [ICODE]getch()[/ICODE] is not and never has been part of the language definition, you should consider not using it at all. The link claims the [I]conio.h[/I] is deprecated. It is not deprecated. It has never been defined by C nor C++. It's simply an add-on header extremely few compilers defined. ![]() | |
I held these until the shakedown was fairly complete. Here are a few of the useful but dropped functions that IMO need to be reimplmented. But #1 is in fact a bug: 1) Any threads I post in are never marked NEW. For the threads I haven't posted in it's … | |
Re: Then why do you use %d for your input if you want to enter strings? Look up and *study* the `printf()` formatting characters again. | |
| |
Re: >1.How to get the name including the spaces? Use `fgets()` >2.How to press make program to skip question when pressed "n" and when invalid answer like 17u to show error? The question is unintelligible. >3.How to generate random perfect square no. and how to generate random numbers for (num1,num2,num3) [I … | |
Re: Seems to be what **Moschops** said 2 days ago... | |
Re: Doesn't that link in the upper right corner of the input box labeled "**Formatting Help**" tell you anything? I'm told it explains how to post code... | |
Re: What do you think they do? If *you* try to explain them, we'll tell you where you got it wrong. | |
Re: Yes we can help. See points 1, 2, 7, 9, 12. But don't ignore the rest... **[boilerplate_help_info]** Posting requests for help must be well thought out if you want help quickly and correctly. Your post did not meet the criteria for quality help. You may get some posts, but are … | |
Re: **[boilerplate_help_info]** Posting requests for help must be well thought out if you want help quickly and correctly. Your post did not meet the criteria for quality help. You may get some posts, but are they going to be useful? Check your post with these checkpoints - what is it *you* … | |
Re: Doesn't anyone ever bother looking at their message before posting? | |
Re: [Try This](http://lmgtfy.com/?q=GtkWidget%20*gtk_text_new) | |
Re: Yes, **IF** we knew what you needed hwlp with. 1) Use CODE tags around *all* the code 2) A **complete** explanation of what you are trying to do and what actually happened is necessary. | |
Re: >I'm not getting correct results. In your FOR statement, if you get an alpha, you copy all the characters in *sentence1* to *sentence*. Why not just copy the one alpha you found. When you're done with the FOR loops, how do you know you copied the sentence correctly? What's in … | |
Re: Is it a C++ 'string' or a c-style 'c-string' | |
Re: Study. Get a graphics addon that can color text. Learn all the C++ reserved words (if, while, switch, ...) Decide how you want the output to look (what gets colored green, what's red, etc) Go slowly, compiling often. | |
Re: >I am having trouble reading your code Because he didn't bother using CODE Tags... Maybe he can repost the code properly? |
The End.