5,676 Posted Topics

Member Avatar for sushlet

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 …

Member Avatar for sushlet
0
246
Member Avatar for skylinedrifter

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

Member Avatar for Clinton Portis
0
182
Member Avatar for karthik.datt
Member Avatar for WaltP
0
169
Member Avatar for amras123

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 …

Member Avatar for WaltP
0
102
Member Avatar for DoubleZ
Member Avatar for optimus_prime_1
Member Avatar for roshan_iiita

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.

Member Avatar for roshan_iiita
0
334
Member Avatar for Dakot
Member Avatar for WaltP
0
183
Member Avatar for hszforu

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

Member Avatar for WaltP
0
104
Member Avatar for seraphina

[QUOTE=rubberman;]Second, there is no space between #include and <iostream>.[/QUOTE] So? What's the problem you're pointing out?

Member Avatar for rubberman
0
279
Member Avatar for deeps2_daniweb

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

Member Avatar for raptr_dflo
0
2K
Member Avatar for mrhankey

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.

Member Avatar for Stefano Mtangoo
0
149
Member Avatar for MemphameHeroic

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

Member Avatar for Adak
0
241
Member Avatar for manobaby
Member Avatar for sanonite

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 …

Member Avatar for sanonite
0
245
Member Avatar for babyhuyx

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 …

Member Avatar for raptr_dflo
0
175
Member Avatar for akde
Member Avatar for akde
0
263
Member Avatar for CityThrille

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

Member Avatar for CityThrille
0
300
Member Avatar for Sharukh

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

Member Avatar for Sharukh
-1
141
Member Avatar for khess

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 …

Member Avatar for cwarn23
-8
1K
Member Avatar for MichaekMagdy

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 …

Member Avatar for WaltP
0
98
Member Avatar for violette

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

Member Avatar for WaltP
0
598
Member Avatar for Despairy
Member Avatar for toneranger

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?

Member Avatar for WaltP
0
2K
Member Avatar for pseudorandom21

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

Member Avatar for frogboy77
0
183
Member Avatar for couldxbe
Member Avatar for couldxbe
0
133
Member Avatar for vammy

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

Member Avatar for WaltP
-1
102
Member Avatar for nchy13

2 things: 1) stop using red -- it's annoying an unnecessary 2) format your code better. It's close to unreadable.

Member Avatar for jmichae3
0
120
Member Avatar for gary91

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 …

Member Avatar for WaltP
0
202
Member Avatar for ladybug21

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

Member Avatar for mzimmers
0
266
Member Avatar for express690

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.

Member Avatar for WaltP
0
356
Member Avatar for lscamaro

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 …

Member Avatar for YourGamerMom
0
490
Member Avatar for avgvstvs

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

Member Avatar for avgvstvs
0
339
Member Avatar for Arjunah

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.

Member Avatar for WaltP
0
185
Member Avatar for maynardjk13

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 …

Member Avatar for selina12
0
166
Member Avatar for TheNNS

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

Member Avatar for vijayan121
0
223
Member Avatar for kkreisler

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

Member Avatar for mrnutty
0
107
Member Avatar for dmr1775

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 …

Member Avatar for WaltP
0
210
Member Avatar for Gorozco925

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 …

Member Avatar for WaltP
0
200
Member Avatar for valestrom

50 posts in C++ forum and you wrote [iCODE]if (choice == "1" || "V" || "Volume")[/iCODE] and you expected your program to work?

Member Avatar for WaltP
0
151
Member Avatar for phorce

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

Member Avatar for sundip
0
99
Member Avatar for amnakhan786

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

Member Avatar for WaltP
0
188
Member Avatar for skylinedrifter

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

Member Avatar for skylinedrifter
0
188
Member Avatar for mystycs
Member Avatar for mystycs
0
128
Member Avatar for GuruMS

I highly recommend you change your admin password 1) Everyone uses [I]admin[/I] 2) posting it here lets everyone else know it, too

Member Avatar for WaltP
0
179
Member Avatar for jenbrandau341

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

Member Avatar for WaltP
0
233
Member Avatar for smmcfarl

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

Member Avatar for smmcfarl
0
92
Member Avatar for kab5zb

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 …

Member Avatar for thines01
0
191
Member Avatar for maria536

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 …

Member Avatar for maria536
0
142
Member Avatar for Azmah

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

Member Avatar for Azmah
0
241

The End.