5,676 Posted Topics

Member Avatar for Szpilona

[QUOTE=jwenting;1208080]no, plagiarism is me handing you part of a text created by someone else. [/QUOTE] No, plagiarism is you USING the document as your own. [B]Theft[/B] is you giving something you don't own to someone else -- sort of. It's definitely not plagiarism.

Member Avatar for Szpilona
0
258
Member Avatar for farhanafzal

[QUOTE=farhanafzal;1211835]I managed to do it until here[/QUOTE] So take the next step and do beyond [B]here[/B]. Or do you actually have a [I]specific[/I] question that we can answer?

Member Avatar for jephthah
0
91
Member Avatar for nick22

[QUOTE=nick22;1014040]I am very much a beginner and trying to create a linked list, asking the "user" to input 5 or 6 values. My problem is that I don't know the correct terminology or how to store the user's input so that I can create my pointer to the next value …

Member Avatar for WaltP
0
1K
Member Avatar for adxer

[QUOTE=adxer;1211530]how do I go about adding a row to a column in simple code? and then printing out the results.[/QUOTE] No comprende... If you have a 4x4 matrix, you want to add a row to column 3 so all the columns have 4 rows except row 3? Can't be done.

Member Avatar for WaltP
-2
57
Member Avatar for chialoo

[QUOTE=mitrmkar;1210457]Your for-loop is wrong .. [CODE] void getRaise(double pay[], int size) { // should rather be .. for(int x=0; x <size; ++x) ... [/CODE][/QUOTE] To restate, since it took me a while to figure out exactly what you meant, take out the semi-colon at the end of your loop definition. …

Member Avatar for abhimanipal
0
87
Member Avatar for kashimushi
Member Avatar for mariosbikos

[QUOTE=mariosbikos;1210564]guys i have a problem...this function doesn't work for me...look i want this function to check in the 2 arrays pin,pin2 for previous numbers already stored in these arrays but it doesn't work...[/quote] Not a clue. Since I can't I run the code nor can I see your screen, I …

Member Avatar for mariosbikos
0
111
Member Avatar for red999

Keep track of each move. When you generate the next location, add a 'pointer' back to the previous location.

Member Avatar for WaltP
0
159
Member Avatar for CarleneGriffith

Add [i]cout[/i]'s at key points in the code to pinpoint where the problem is.

Member Avatar for WaltP
0
112
Member Avatar for robski

The other essential thing is to [B]NEVER[/B] use [ICODE]scanf()[/ICODE] to read a string. It's the same as using [ICODE]gets()[/ICODE] -- [url=http://www.gidnetwork.com/b-59.html]see this series[/url].

Member Avatar for WaltP
0
224
Member Avatar for nick.falconer

One easy fix is what you came up with. If you want a 10x10 area, make it 12x12 and the active area is 1-10. Keep all the edge values 0. Also, rather than that list of [ICODE]if[/ICODE] statements, you could use [CODE] if a(i,j) = '*' for i1 = i-1 …

Member Avatar for nick.falconer
0
103
Member Avatar for Chrisjj

I always thought language was an evolving and growing thing. In the 30's, the proper word was [B]clew[/B] until the magazine [U]Clue[/U] was started and the 'wrong' spelling became accepted. Until computers became popular, [B]input[/B] wasn't a word. Years ago, [B]gay[/B] meant happy. Only recently, [B]DOH[/B] became a word in …

Member Avatar for diafol
0
783
Member Avatar for Teethous

Looks to me it's just garbage in the name string after the \0. Before inputting the name you can zero or SPACE out the string.

Member Avatar for Fbody
0
165
Member Avatar for beginnerprogram
Member Avatar for nezachem
0
303
Member Avatar for jelinky

[CODE] int add() { int num, sum=1; cout<<"how many numbers would you like to add?\n"; cin>>num; for (int i=1;i<num;i++) { int array[i]; sum+=array[i]; } cout<<"Your new number is "<<sum<<"\n\n\n"; } [/CODE] Three problems with the ADD function 1) What he said above 2) starting [B]sum[/B] at 1 will give you …

Member Avatar for bugista
0
141
Member Avatar for nomorewords

Who wrote this piece of dreck? It's utterly disgusting. Try to find code from a different source to learn from.

Member Avatar for WaltP
-1
91
Member Avatar for deadelgabar

[QUOTE=deadelgabar;1208458]i already started it [/QUOTE] Prove it. Just saying you started it does not mean we're going to write it for you. [QUOTE=deadelgabar;1208458]plz if u can help me i will be very thankful[/QUOTE] We will help. But you have to explain what you need help with. Details, specific questions, those …

Member Avatar for NathanOliver
-1
203
Member Avatar for arjunsasidharan
Member Avatar for DavidLuo

Yes. See [url=http://www.daniweb.com/techtalkforums/faq.php?faq=daniweb_policies#faq_keep_it_organized] this[/url]

Member Avatar for Epsilon92
-2
96
Member Avatar for Instinctlol

Then take the message out of the loop and figure out how to remember that the name wasn't found during the loop...

Member Avatar for Ancient Dragon
0
78
Member Avatar for naseerhaider

[QUOTE=The ICE Man;1208446] [CODE]#include <ctime>[/CODE] [CODE] time_t t; time(&t); srand(t);[/CODE] [/QUOTE] Or shorten it to simply: [CODE]srand(time(NULL));[/CODE]

Member Avatar for naseerhaider
0
168
Member Avatar for nikc121

[QUOTE=nikc121;1208418]Ok I figures some of it out, but I am still confused about adding a function. I thinks it double avg (int a[]) I know this goes above int main (), but I dont know how to change the rest of the code to call and calculate the verage. [CODE]#include …

Member Avatar for WaltP
0
268
Member Avatar for Sealunar

What is the [I]type[/I] of your parameter in the call: [iCODE]activities[0].action[/iCODE]? Isn't this a single character? The function itself doesn't want a character as a parameter. What does it need?

Member Avatar for Lerner
0
107
Member Avatar for WaltP

This was working fine a few hours ago. But now: Editing hot-keys and icons do not work [i]Forum Tools[/i] simply refreshes the page Folder Icons are inactive I have no mod tools on profile page On my own profile page there is a [i]Send Message[/i] link and nothing else. Basically, …

Member Avatar for WaltP
0
228
Member Avatar for jbl09

You need to think about what you're doing, not just toss anything together and pray. [code] for (n = 0; n < 7; n++){ inFile >> currentDays; } [/code] Why are you reading 7 separate values into one single integer? also, [url=http://www.gidnetwork.com/b-38.html]format your code[/url]. We can't tell if you have …

Member Avatar for caut_baia
0
244
Member Avatar for tennis

Why do you need pointers at all? What's wrong with [CODE]int x; int y;[/CODE] That way you don't have to create the variables to load into the pointers?

Member Avatar for VernonDozier
0
126
Member Avatar for abaran01

What have you found out? What format is the system time if you need to add to it? What function(s) do you need to call?

Member Avatar for Ancient Dragon
0
234
Member Avatar for Sorb3t3ro

Nowhere. Without the code that is needed to run the functions in the header, the header alone is useless. And even if you did find the code, it probably can't be plugged into your compiler.

Member Avatar for jwenting
0
71
Member Avatar for spdbump08

[QUOTE=spdbump08;1206448]I removed the return statements but I'm still getting the same problem. What else am i missing? [/QUOTE] [url=http://www.gidnetwork.com/b-38.html]Formatting[/url]. Without formatting your code is extremely hard to follow. If you suspect your input is not working properly, display what you input to see if you are right. That's the easiest …

Member Avatar for WaltP
0
95
Member Avatar for tots08

You need two matrices, one holds the current generation, other to hold the new generation as you create it.

Member Avatar for tots08
0
151
Member Avatar for koitfm

Or use fgets() to read the file line by line. test each character to see it they are all digits if all digits, copy the line to an array to be sorted and output. There is no need to convert the numbers to ints although it might make the sorting …

Member Avatar for jephthah
0
4K
Member Avatar for Stivdion
Re: C++

To get the best help here, it's best to give us an idea of what the problem is, rather than making us guess. What do you need help with? What's going wrong?

Member Avatar for Stivdion
0
83
Member Avatar for naveedmahar
Member Avatar for lotrsimp12345

1) Count the numbers that occur in both arrays -- [I]correct pegs[/I]. 2) Count the numbers that occur in the correct position in the arrays -- [I]black pegs[/I]. 3) Subtract the [I]black pegs[/I] from the [I]correct pegs[/I] -- [I]white pegs[/I] Answer: 2658 Guess: 6625 Correct: 3 Black: 1 Therefore- White: …

Member Avatar for lotrsimp12345
0
986
Member Avatar for tomtetlaw

[QUOTE=jephthah;1200067]um, did you try "double-clicking" the file? .obj files are written in plain text.[/QUOTE] Mine aren't. Mine are all binary.

Member Avatar for jephthah
0
153
Member Avatar for tbelgard
Member Avatar for marcoakis

You should concentrate a little more on your formatting. Indenting 8 spaces is too many for most situations. And your indentation is a little inconsistent. [url=http://www.gidnetwork.com/b-38.html]See this[/url] for some ideas. There are many other suggestions on the web.

Member Avatar for VernonDozier
0
146
Member Avatar for Griff0527

In addition, you cannot read into [I]argv[/I]. That's undoubtedly where it's going wrong.

Member Avatar for Griff0527
0
227
Member Avatar for goback

Do you know how to calculate the GCD of a value? That's the code that goes into you CALC button. If you are asking how to interface with the form, textboxes, and buttons from the beginning, you need a tutorial, not a forum. We help people solve problems, we are …

Member Avatar for goback
0
297
Member Avatar for emmas4impact

That's a good task. If you need help, let us know what you need help with and we can help.

Member Avatar for Adak
0
135
Member Avatar for Biker920

[QUOTE=Biker920;1154005]Is there any way to make it so newbies and problem posters are blocked from posting until they either read/reread and sign off on rules page just like signing off on user agreement before continuing to install software. [/QUOTE] When was the last time you actually read a user agreement? …

Member Avatar for jephthah
0
252
Member Avatar for mtech91
Member Avatar for Graphix

They won't click the link. They don't care. Remove the Code Snippet option if there are fewer than 20 posts.

Member Avatar for diafol
0
174
Member Avatar for Dinglish

If you'd [url=http://www.gidnetwork.com/b-38.html]format your code[/url] I'd be happy to take a look at it. As it is, I'm not going to struggle with it.

Member Avatar for Dinglish
0
74
Member Avatar for rickymak
Member Avatar for blaisemcrowly

What you are attempting to do -- if it worked -- is corrupt your file by overwriting the next line of data with [B]ANNOUNCED[/B] You need to open a second file and after reading a line, write the line to the new file. Then do your test.

Member Avatar for blaisemcrowly
0
87
Member Avatar for diafol

[QUOTE=VernonDozier;1150635]The thread-revivers are usually either spammers or, more often, a newbie who is trying to help and isn't noticing the dates. I'm guilty of several of those myself, I think. They tend to get pounded a bit harshly in my view. First post, trying to help, and they get told …

Member Avatar for diafol
1
717
Member Avatar for ahmed.123
Member Avatar for ahmed.123
0
92
Member Avatar for bondzerg

Start by writing a program that reads the file one character at a time and write it to the screen. If you can do that, you're half-way there.

Member Avatar for bondzerg
0
383
Member Avatar for mks200

First, reformat the code to take out all the unnecessary blank lines. Second, ask a specific question explaining specifically the first thing you need help with Third, point out where in the code you attempted to solve the problem and what happened

Member Avatar for thomas_naveen
0
420

The End.