5,676 Posted Topics

Member Avatar for Karlwakim

That's because values like 0x0001 and 0x012 are not printable characters. [url=http://www.asciitable.com/]See this[/url]. Printable character are basically 0x0020 to 0x007E.

Member Avatar for jacklogan
0
153
Member Avatar for avenger123321

Please use proper formatting techniques, especially on indentation. [url=http://www.gidnetwork.com/b-38.html]See this[/url] and repost.

Member Avatar for avenger123321
0
359
Member Avatar for mk.hashmie

[QUOTE=mk.hashmie;]if(strcmp(s.name, stdname)==0) is this statment is correct? i am having an error while executing this statment.. i have givn its headerfile[/QUOTE] Depends on how [I]s[/I] is defined. Depends on how [I]name[/I] in [I]s[/I] is defined. Depends on how [I]stdname[/I] is defined. Depends on what headers are included. Depends on what …

Member Avatar for jumbowat
0
78
Member Avatar for sodha125

[QUOTE=cangan;]Try this [/QUOTE] And what grade do [B]you[/B] expect to get for doing [B]sodha125[/B]'s homework for him? Around here we call that cheating... Good job!

Member Avatar for KasmIR
0
202
Member Avatar for markee

[QUOTE=markee;]im newbie to vb 6..[/quote]So? [QUOTE=markee;]can anyone give the codes in viewng the database in listview and when you double-click one of the data in listview the second form will appear or the information of click will appear..[/quote] What makes you think we're a homework service for lazy students? [QUOTE=markee;]thx..... …

Member Avatar for ChrisPadgham
0
326
Member Avatar for babydeluxe

So 'add' the values rather than test the values. If you add '1' (31h) and '0' (30h) together you get 'a' (61h). Subtract out the extra 30h and you have your character: '0' = 30h '1' = 31h '2' = 32h therefore: '0'+'0' - 30h = '0' '0'+'1' - 31h …

Member Avatar for WaltP
0
1K
Member Avatar for andrew1989

[QUOTE=Jx_Man;] [QUOTE=andrew1989;]but the text in form1 is retrieved from a database. [/QUOTE] Different question. so you need to make new thread.[/QUOTE] What? Same question. Additional info. And there's no problem asking 2 questions in the same post... :icon_rolleyes: [QUOTE=andrew1989;]Thanks for your reply. Im new to VB6 will this work in …

Member Avatar for WaltP
0
109
Member Avatar for lscamaro

A "list of names" by definition is a 2D array. Each row is one name Each column is one letter in each name.

Member Avatar for WaltP
0
122
Member Avatar for crunchie

It's just Opera telling you to look forward. Leave the past behind you... :icon_twisted:

Member Avatar for WaltP
0
167
Member Avatar for Smartflight
Member Avatar for andrew1532

[QUOTE=andrew1532;]If able, i would greatly appreciate any advice or tips that you can offer to help with the alteration of my code. [/QUOTE] Good. Since you asked, and I can barely follow your code the way it's indented, I highly suggest 1) using a consistent format, especially with { & …

Member Avatar for nezachem
0
199
Member Avatar for vyrte

In Standard C++ there is not. ESC is not a magic key today*. Just use ENTER. * It never really was. The use of ESC has [I]always[/I] been non-portable and much more difficult to program.

Member Avatar for WaltP
0
178
Member Avatar for Jimakoss

[QUOTE=Rashakil Fol;1735987]Python doesn't teach bad habits.[/QUOTE] No language teaches bad habits. Languages simply allow bad habits if the user is taught poorly or is a hack.

Member Avatar for WolfShield
0
315
Member Avatar for sharathg.satya

Portable doesn't have anything to do with the .EXE file that's created. It means the [B]code[/B] you write can be built using any C++ compiler.

Member Avatar for DeanMSands3
0
178
Member Avatar for daviddoria

But then again, in code snippets you are supposed to post correctly working tested code to begin with. Not broken code that needs a web-based compiler to fix.

Member Avatar for JackieBolinsky
0
218
Member Avatar for bobanderson93

Keep a count of how many values you actually read into the array. When you read the file, be sure you stop when you hit the end of the file -- EOF.

Member Avatar for WaltP
0
117
Member Avatar for surferxo3

For this type of program, the easiest solution is to sort the input then it's an easy matter to find the unique minimum.

Member Avatar for Lerner
0
234
Member Avatar for venky019

[b][boilerplate_help_info][/b][code] 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 [i]you[/i] …

Member Avatar for Lerner
0
225
Member Avatar for bouldermash

[QUOTE=bouldermash;]i dont whats thee problem of this, ihave to input 10 integers and display the number of positive and negative.[/QUOTE] You have no formatting making the program difficult to follow. [url=http://www.gidnetwork.com/b-38.html]See this[/url]. [url=http://www.gidnetwork.com/b-66.html]See this[/url] too. [CODE] #include<conio.h> // No longer a valid header file. Very non-standard & non-portable. #include<iostream.h> // …

Member Avatar for aashishsatya
0
88
Member Avatar for SmackTubby

To clarify what [B]DJSAN10[/B] is saying, assuming it needs clarification, in each IF block you are creating a new [I]lettergrade1[/I] which gets destroyed as soon as that block ends. The [I]lettergrade1[/I] value at the top is never used. Kudos for using the 'proper' IF-ELSE construct and not using [iCODE]else if …

Member Avatar for SmackTubby
0
225
Member Avatar for bennetk2

[url=http://www.gidnetwork.com/b-58.html]This is why[/url] you get the last line twice. ([iCODE]feof()[/iCODE] is the same as [iCODE].eof()[/iCODE])

Member Avatar for WaltP
0
186
Member Avatar for rfrapp

If you have the value "ABCDEF" in [I]input[/I], what is the value of [I]input.length()[/I]? If [I]i[/I] = [I]input.length()[/I], which character is [I]input[i[B][/B]][/I] ? Remember, zero based values... :icon_wink:

Member Avatar for WaltP
0
290
Member Avatar for KazenoZ

Try running the program from the command line and add your parameters there. See what happens.

Member Avatar for Shimano
0
1K
Member Avatar for auwi987

Store the last number generated somewhere -- in another table or an initialization file.

Member Avatar for debasisdas
0
133
Member Avatar for phorce

No. I would ask for clarification. Making assumptions is prone to rewrites and lost revenues. Get a complete description so you don't have to guess.

Member Avatar for WaltP
0
63
Member Avatar for phorce

[QUOTE=phorce;]Sorry, I'm confused.. [code] matrix = new double[(unsigned int)rows*(unsigned int)columns]; [/code] Is 2D right? e.g. [code] matrix = new double[10][20]; [/code][/QUOTE] No. Get rid of all the unnecessary stuff in the line and you get [icode]matrix = new double[rows*columns];[/icode] Where's the 2D in that? Count the square brackets...

Member Avatar for phorce
0
130
Member Avatar for mikeshadow

[QUOTE=rohan121212;]who told you that 121 is a prime number oh please [/quote] If it did anything useful, [I]your program[/I] would... [QUOTE=rohan121212;]besides the code i have written works perfectly fine and i have tested it a hundred times[/QUOTE] Really? I entered 130 and it output 32. How is that useful? I …

Member Avatar for mikeshadow
0
506
Member Avatar for PrimePackster

I've found the UP/DOWN arrows to be flaky at best. Though they don't disappear for me most of the time, when I click one half the time nothing happens.

Member Avatar for PrimePackster
0
252
Member Avatar for myrongainz

Have to work too hard trying to follow the code with that awful indentation. [url=http://www.gidnetwork.com/b-38.html]See this[/url], reformat and try again.

Member Avatar for WaltP
0
368
Member Avatar for gourav1

I think you're going to have to wait for someone from India to join the board that can help since it seems only India teaches with outdated equipment and tools. The rest of the world left Turbo-C over 10 years ago. And [B]Narue[/B] wasn't joking... :icon_wink:

Member Avatar for DeanMSands3
0
181
Member Avatar for siaswar
Member Avatar for WaltP
0
119
Member Avatar for history

[b][boilerplate_help_info][/b][code] 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 [i]you[/i] …

Member Avatar for peter_budo
-1
81
Member Avatar for radc

Read [B]Profession[/B] by [I]Isaac Asimov[/I]. Maybe you're asking the wrong questions...

Member Avatar for Dexxta27
0
192
Member Avatar for poolet

[QUOTE=poolet;]Hello, I have a strange problem and I need some help... I am working with a project that the compiler create a txt file and save the informations of the user as the user enter... [/quote] So far, so good. [QUOTE=poolet;]The program create only ONE file and overwrite eatch time... …

Member Avatar for WaltP
0
198
Member Avatar for triumphost

[QUOTE=mazzica1;1739436]it is simple:[/quote] Then why make it so complicated? How about: [CODE] #include <iostream> struct Point // use proper formatting { int X; int Y; } ; typedef Point* PointsArr; int main(void) // use proper main() footprint { PointsArr test[10]; // hold 10 points for(int i = 0; i < …

Member Avatar for triumphost
0
7K
Member Avatar for CurlyFried

Look up [iCODE]srand()[/iCODE] and [iCODE]rand()[/iCODE] functions.

Member Avatar for WaltP
0
205
Member Avatar for black22622

>Turbo C++ is showing declaration syntax error with this statement. Help. void main() { test s; int ch,roll; char name[30],choice,join; clrscr(); >It is showing the error with the ' { ' . I have used proper header files and stuffs, and this is just a part of my 700 line …

Member Avatar for raptr_dflo
0
4K
Member Avatar for sync101

Nowhere do you [I]properly[/I] test for valid input. In the loop [CODE]for(j = 0; j <= strlen(input); j++) { if(input[j] == ref[i]) { run = 1; } else if(input[j] != ref[i]) { run = 0; } } [/CODE] you give it a try, but if the last character tested is …

Member Avatar for WaltP
0
191
Member Avatar for GeekZu

I know TC3 and TC4 came with very good manuals. Look up the commands in question to see what you are doing wrong.

Member Avatar for eddiecrosby
0
936
Member Avatar for thecoolman5

[QUOTE=thecoolman5;]just recently, since i couldnt get atol(); to work, i actually went and changed atol(const char*); to atol(char); in the stdlib.h file. the program ran but after i entered my equation, the program crashed.[/QUOTE] How did you change the [B]atol()[/B] code in the run-time library to match your change? Or …

Member Avatar for eddiecrosby
0
4K
Member Avatar for Bladtman242

If "[I]malloc() doesn't guarantee anything about the data it returns a pointer to[/I]" what do you think that means about your buffer?

Member Avatar for Bladtman242
0
180
Member Avatar for pygmalion
Member Avatar for shalini shekhar

[b][boilerplate_help_info][/b][code] 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 [i]you[/i] …

Member Avatar for WaltP
0
175
Member Avatar for Candace Parker

[QUOTE=Candace Parker;]Sudoku in C++. The program works but how do I check the minisquares? Please gimme a function. :( Pretty please?[/QUOTE] "[I]Please gimme a function[/I]?" I don't think so. We are not a coding service to help write your code for you. Figure out what the indecies are for a …

Member Avatar for WaltP
0
397
Member Avatar for demigodz24

[b][boilerplate_help_info][/b][code] 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 [i]you[/i] …

Member Avatar for WaltP
-1
381
Member Avatar for raj236712

[QUOTE=jumbowat;]Your compiler should have a graphics.h file (not there in Dev C) and you can find the programs over the internet or in some authors book.[/QUOTE] [ICODE]graphics.h[/ICODE] is extremely rare. I know of only 1 compiler series that had (emphasis on [I]had[/I]) one. So don't expect to find it, especially …

Member Avatar for WaltP
0
584
Member Avatar for YAMNA MIDHAT

That completely depends on what is proper and improper results. Asking us to read 359 lines of inconsistently formatted unexplained code to figure out *) what the program does *) what the program outputs *) figure out with no clues what the [I]proper[/I] output should be *) where the problem …

Member Avatar for ChrisPadgham
-2
166
Member Avatar for november_pooh
Member Avatar for dedenfk

[b][boilerplate_help_info][/b][code] 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 [i]you[/i] …

Member Avatar for Greg_R
0
138
Member Avatar for poonam lokhande

Start a new thread with a [B]proper[/B] question: [b][boilerplate_help_info][/b][code] 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 …

Member Avatar for WaltP
0
346

The End.