5,676 Posted Topics
Re: Sorry for the downvote. I'll get it cleaned up. It was the double post that threw me. The solution you came up with is [B]far superior[/B] to the suggestion. [QUOTE=sushlet;]*EDIT* Just a final little question to be clear, after I use '>>' to grab the FIRST_NAME and LAST_NAME from the … | |
Re: [b][boilerplate_help_info][/b][code] Posing 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 [i]you[/i] … | |
Re: It depends on how you've defined the OP Codes and the mnemonics. | |
Re: Your FOR loops are completely wrong [CODE] for (a=1; ktr<11; ktr++) // you start A at 1 but use KTR as the loop index { if(a%2==0 || a%3==0 || a%5==0) { System.out.print(a + " "); ktr++; // you already do this in the FOR loop } a--; // you decrement … | |
Re: Sort the values Copy only the first of any duplicates to a new array. | |
| |
Re: Since Linux and Windows are two different systems, they do things differently. You're going to have to learn the Linux version of all the Windows functions you're using. | |
Re: Run your loop by hand at your desk with pencil and paper. | |
Re: [QUOTE=hszforu;] [CODE] #include<conio.h> // You don't need this old non-standard header void main() // main is an INT function -- always has been getch(); // What's wrong with the completely standard getchar()? }[/CODE] So, what i have done is while scanning the file i check for the occurance of '<',then … | |
Re: [QUOTE=rubberman;]Second, there is no space between #include and <iostream>.[/QUOTE] So? What's the problem you're pointing out? | |
Re: [QUOTE=shikhar02;1690971]but what is wrong with my code???[/QUOTE] Don't know what to look for. We have no idea why you think the code is wrong. You didn't explain it to us. | |
Re: Is there a [B]best[/B] anything? Aren't there different [B]best[/B]s based on use? And if you don't like [I]my[/I] [B]best[/B], then what? You don't really want the [B]best[/B]? Or is someone else's [B]best[/B] better? IOW, never ask for [B]best[/B]. It depends on what you are doing and how. | |
Re: [b][boilerplate_help_info][/b][code] Posing 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 [i]you[/i] … | |
Re: Not a clue what you are asking. Examples may make it clear. | |
Re: Take this piece of code: [CODE] for(grade=0; grade<num; grade++) { inp1>>score1[grade]; inp2>>score2[grade]; inp3>>score3[grade]; avg=(score1[grade]+score2[grade]+score3[grade])/3; } cout<<avg<<endl; [/CODE] Run it by hand [B]on paper[/B] for 3 students. What does [B]avg[/B] display? Be sure you execute each statement [B]exactly[/B] as written, not as you [I]think[/I] it should be. And please learn now … | |
Re: Are you sure you are supposed to find if a word can be made from the letters and not simply find the dictionary word if it exists in the guess word? IOW, if the word is CREATE you can certainly find EAT. But are you [I]sure[/I] you need to find … | |
Re: Why not use [B]new[/B]? It's C++ whereas [iCODE]malloc()[/iCODE] C. | |
Re: [QUOTE=CityThrille;]Wait, guys, I'm confused. Is this appropriate for a C forum although I use C language in my code? Because I'm using a C++ Compiler, my assumption is to post it here in C Forum. Well it's okay if someone moves this thread in C++ area. I'm just currently a … | |
Re: [QUOTE=Sharukh;1690626]See don't get angry buddy.If you know then just reply,otherwise leave it!Be cool dude.Moreover I don't think this problem needs to be solved by professional.I can solve it myself.Still to know innovative ideas I posted this thread.[/QUOTE] Actually, all you posted is a description of the problem. Then, using the … | |
Re: OK, I see where [B]HG[/B] is going, and I see the conundrum [B]cwarn[/B] has. I myself have written tutorials on another site that are linked to by many people here. That seems to be OK because DW doesn't want those tutorials as they are posted elsewhere. But they seem to … | |
Re: In direct response to you post verbatim: "Good luck. I hope you solve it, too." If, on the other hand, you are asking for us to help you: [b][boilerplate_help_info][/b][code] Posing requests for help must be well thought out if you want help quickly and correctly. Your post did not meet … | |
Re: Try formatting your code into a sequence of readable lines [CODE] sqlStr = sqlStr & _ "( year_id, period_id, stock_code, _ receivable, revenue, total_liabilities, _ shareholders_equity, total_liabilities_to_shareholders_equity, _ current_liabilities, total_current_assets, net_attributable, _ inventories, fixed_assets, operating_cost, _ net_cash_operation, price_close, pe, eps, _ pe_relative_sector, altman_z_score, paid_up_capital, _ net_profit_or_loss, dec_stock, dec_debtors, _ inc_creditors, … | |
Re: So if it's solved, mark the thread solved! | |
Re: Read up on the syntax for [iCODE]printf()[/iCODE]. You are using it wrong. And if this is a C++ program, why are you using [iCODE]printf()[/iCODE] anyway? | |
Re: [QUOTE=Narue;] p.s. Dammit, I'm in New York for the Daniweb party and won't be able to play Skyrim until Monday. :@[/QUOTE] So use your Ipod and play Angry Birds :icon_twisted: | |
Re: Reformat your code towards the bottom and the answer will be readily apparent. | |
Re: [b][boilerplate_help_info][/b][code] Posing 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 [i]you[/i] … | |
Re: 2 things: 1) stop using red -- it's annoying an unnecessary 2) format your code better. It's close to unreadable. ![]() | |
Re: Solve what? [b][boilerplate_help_info][/b][code] Posing 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 … | |
Re: [QUOTE=ladybug21;]//I have this running but when the user inputs a different character than the program just out puts the error //message and that its. I want it to go back and ask the user if they would like to run the program again. Any //ideas? [/QUOTE] Yep. 1) Use CODE … | |
Re: There's no way to find out what values have or have not been loaded into an array. You have to keep track of the count of values as you load them. | |
Re: Oh, so much wrong, it's hard to know where to start. Let's start with this: [CODE]#include <stdio.h> #include <string.h> char sentence[81]; char *pointer; int a = 0; // Do not use global variables. Pass the values needed into the function // then return the value you need via the RETURN … | |
Re: [QUOTE=avgvstvs;] Your feedback will help me make myself a better programmer [/quote] OK, here goes: First and foremost, [url=http://www.gidnetwork.com/b-38.html]format your code[/url] properly. [ICODE]#include <conio.h>[/ICODE] -- don't use it. It's not portable and there's nothing in there you really need [ICODE]#include <stdio.h>[/ICODE] -- this is (supposedly) a C++ program. Don't use … | |
Re: How do you know it's not inputting the string? Immediately after you try to input it, display it. Don't just assume something is wrong. Prove it. And it's impossible to be "[I]executing both if and else statements[/I]". It can't be done. | |
Re: Sit down at your desk with pencil and paper with the above explanation. Start by figuring out how [B]x[/B] and [B]y[/B] work together to get the chart (forget the function for the moment). What happens to [B]y[/B] as [B]x[/B] changes and vice versa. How can that interaction be defined as … | |
Re: [QUOTE=TheNNS;]I can get a string of words until the word "end", which is what I want, but I'm confused as to where to go next. How to I get the cusomter name? [/QUOTE] Where is the customer name? Did you read it? Is it somewhere else? | |
Re: [b][boilerplate_help_info][/b][code] Posing 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 [i]you[/i] … | |
Re: So your idea is to [CODE] double calcBasal (double grade) { for (int x = 1; x <= 18; x++) { cout << " Enter BASAL grade #" << x << " (out of 100):"; cin >> grade; // read 18 numbers and keep only the last one } double … | |
Re: Your basic problem stems from not knowing what you need the program to do. For example, in your description you say: [QUOTE=Gorozco925;]I am creating an application in which converts celsius to fahrenheit and vice versa.[/quote] All well and good - as far as it goes. Then you continue with: [QUOTE=Gorozco925;]The … | |
Re: 50 posts in C++ forum and you wrote [iCODE]if (choice == "1" || "V" || "Volume")[/iCODE] and you expected your program to work? | |
Re: [QUOTE=phorce;]Hello, I'm developing an application that reads a text file, and then replaces what's in the text file with an array (alphabet) It all works ok until I try and change the position of the inputted character and it returns: [b]Segmentation fault: 11[/b] It's really confusing![/QUOTE] So is your description! … | |
Re: [QUOTE=amnakhan786;]please suggest, i have no idea to start[/QUOTE] Study Harder... [b][boilerplate_help_info][/b][code] Posing 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 … | |
Re: [QUOTE=skylinedrifter;]... here's how i've started out so far... [CODE]#include <iostream> #include <fstream> #include <conio.h> #include <cmath> using namespace std; #define in_file "temp.txt" int main () {[/CODE][/QUOTE] I assume you can tell you have done nothing. Start with opening the file (check for errors) Use a loop to read the values … | |
Re: Instead of [ICODE] if (choosePositionO)[/ICODE] us [ICODE]else[/ICODE] instead. | |
Re: I highly recommend you change your admin password 1) Everyone uses [I]admin[/I] 2) posting it here lets everyone else know it, too | |
Re: [b][boilerplate_help_info][/b][code] Posing 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 [i]you[/i] … | |
Re: [QUOTE=smmcfarl;]This is the code I am using and is not working.[/QUOTE] Then you did something wrong. Since you didn't bother to explain what "not working" means, that's all we can say. | |
Re: If he's having trouble reading a file and looking at the words, and won't post code 1) what makes you think he's been taught vectors? 2) why are you the one posting code? 3) why are you doing his homework for him? 4) why are you using a bad form … | |
Re: 1) Did the program run correctly for all the values you tried? 2) Did you do all the points in the assignment? If the answer is YES to both, then it's OK. If the answer is NO to either, then there's nothing for us to check, you need to check … | |
Re: [QUOTE=alanlawson123;]Yes,WordPress is the best for blogging and build sites,It's easy to use.I have created 3 blogs in WordPress.[/QUOTE] How many other systems have you used? Which ones? What were their drawbacks? |
The End.