5,676 Posted Topics
Re: [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. | |
Re: [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? | |
Re: [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 … | |
Re: [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. | |
Re: [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. … | |
Re: Are you going to use [B]my[/B] code to pass your course? | |
Re: [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 … | |
Re: Keep track of each move. When you generate the next location, add a 'pointer' back to the previous location. | |
Re: Add [i]cout[/i]'s at key points in the code to pinpoint where the problem is. | |
Re: 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]. | |
Re: 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 … | |
Re: 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 … ![]() | |
Re: 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. | |
Re: And? Do you have a question? Or are we supposed to write it for you? | |
Re: [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 … | |
Re: Who wrote this piece of dreck? It's utterly disgusting. Try to find code from a different source to learn from. | |
Re: [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 … | |
| |
Re: Yes. See [url=http://www.daniweb.com/techtalkforums/faq.php?faq=daniweb_policies#faq_keep_it_organized] this[/url] | |
Re: Then take the message out of the loop and figure out how to remember that the name wasn't found during the loop... | |
Re: [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] | |
Re: [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 … | |
Re: 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? | |
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, … | |
Re: 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 … | |
Re: 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? | |
Re: 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? | |
Re: 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. | |
Re: [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 … | |
Re: You need two matrices, one holds the current generation, other to hold the new generation as you create it. | |
Re: 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 … | |
Re: 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? | |
Re: [url=http://lmgtfy.com/?q=c%2B%2B+ctime]Try This[/url] | |
Re: 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: … | |
Re: [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. | |
Re: 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. | |
![]() | Re: In addition, you cannot read into [I]argv[/I]. That's undoubtedly where it's going wrong. ![]() |
Re: 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 … | |
Re: That's a good task. If you need help, let us know what you need help with and we can help. | |
Re: [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? … | |
Re: Write a boolean truth table for [iCODE]while ( ans != 'n' || ans != 'N' );[/iCODE] | |
Re: They won't click the link. They don't care. Remove the Code Snippet option if there are fewer than 20 posts. ![]() | |
Re: 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. | |
Re: Look up the syntax for a [B]scanf()[/B] statement | |
Re: 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. | |
![]() | Re: [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 … ![]() |
Re: 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. | |
Re: 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 |
The End.