5,676 Posted Topics

Member Avatar for dannyfang

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.

Member Avatar for Sokurenko
0
664
Member Avatar for Hellblazer.

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 …

Member Avatar for sternone
0
203
Member Avatar for FelineHazard

> 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 …

Member Avatar for rubberman
0
665
Member Avatar for jakezcop

> 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 …

Member Avatar for jakezcop
0
2K
Member Avatar for PeTo.
Member Avatar for PeTo.
0
2K
Member Avatar for Labdabeta

How did you find the website before? How do you think you can find another website with similar information?

Member Avatar for Labdabeta
0
200
Member Avatar for hwoarang69
Member Avatar for WaltP
0
207
Member Avatar for greencode

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.

Member Avatar for WaltP
0
325
Member Avatar for eng_m

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 …

Member Avatar for SanRubik
0
184
Member Avatar for luvrahul30

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 …

Member Avatar for deceptikon
0
120
Member Avatar for SAM2012

>I need your help regarding the message acknowledgement in the queue when the message reaches at the queue. Sorry, no idea what this means...

Member Avatar for DeanMSands3
0
190
Member Avatar for MastAvalons

[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 …

Member Avatar for MastAvalons
0
195
Member Avatar for khoo_jun

> 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 } }

Member Avatar for WaltP
0
190
Member Avatar for sharath_137

> You will never use malloc() or calloc() in C++. Ever. Wanna bet??? ;-)

Member Avatar for Banfa
0
594
Member Avatar for Junior999

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 …

Member Avatar for Ancient Dragon
0
180
Member Avatar for vedro-compota

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.

Member Avatar for WaltP
0
169
Member Avatar for Valiantangel

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

Member Avatar for WaltP
0
112
Member Avatar for whtewa

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 …

Member Avatar for WaltP
0
213
Member Avatar for stevthym

> 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> …

Member Avatar for WaltP
0
257
Member Avatar for pattilupwned

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, …

Member Avatar for pattilupwned
0
312
Member Avatar for Hitman Mania

> 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)

Member Avatar for BobS0327
0
204
Member Avatar for Vish0203

> 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 …

Member Avatar for Vish0203
0
342
Member Avatar for Esmerelda

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 …

Member Avatar for WaltP
0
101
Member Avatar for needhelp919

>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.

Member Avatar for WaltP
0
134
Member Avatar for dctb13

YAJUTBIFSYDHTLHTRP suggestion... (*yet another just use the built in function so you don't have to learn how to really program*)

Member Avatar for BobS0327
0
7K
Member Avatar for vedro-compota
Member Avatar for pokie_da_codie
Member Avatar for thines01
0
288
Member Avatar for FraidaL

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.

Member Avatar for WaltP
0
1K
Member Avatar for pokie_da_codie
Member Avatar for kiail

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

Member Avatar for thines01
0
146
Member Avatar for Nathaniel10

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 …

Member Avatar for Nathaniel10
0
299
Member Avatar for thorpntell

> 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 …

Member Avatar for scudzilla
0
4K
Member Avatar for niyasc

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.

Member Avatar for jaybhanderi
0
7K
Member Avatar for jbennet
Member Avatar for Airshow
0
2K
Member Avatar for WaltP

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 …

Member Avatar for Airshow
1
246
Member Avatar for AnnA.A

Then why do you use %d for your input if you want to enter strings? Look up and *study* the `printf()` formatting characters again.

Member Avatar for AnnA.A
0
210
Member Avatar for tedtdu
Member Avatar for qwerty__

>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 …

Member Avatar for WaltP
0
524
Member Avatar for Vasthor
Member Avatar for Nawaf15

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...

Member Avatar for raptr_dflo
0
122
Member Avatar for ashboi

What do you think they do? If *you* try to explain them, we'll tell you where you got it wrong.

Member Avatar for rubberman
0
116
Member Avatar for amyparker1234

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 …

Member Avatar for Ancient Dragon
0
155
Member Avatar for alanso

**[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* …

Member Avatar for alanso
0
121
Member Avatar for robgeek
Member Avatar for WaltP
0
201
Member Avatar for niyasc
Member Avatar for WaltP
0
89
Member Avatar for selin4

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.

Member Avatar for zeroliken
0
96
Member Avatar for gethelpcpp123

>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 …

Member Avatar for Labdabeta
0
223
Member Avatar for SAM2012
Member Avatar for Tygawr

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.

Member Avatar for WaltP
0
61
Member Avatar for nekoleon64

>I am having trouble reading your code Because he didn't bother using CODE Tags... Maybe he can repost the code properly?

Member Avatar for HWalkmanWTN
0
175

The End.