5,676 Posted Topics
Re: 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. | |
Re: Please use proper formatting techniques, especially on indentation. [url=http://www.gidnetwork.com/b-38.html]See this[/url] and repost. | |
Re: [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 … | |
Re: [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! | |
Re: [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..... … | |
Re: 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 … | |
Re: [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 … | |
Re: A "list of names" by definition is a 2D array. Each row is one name Each column is one letter in each name. | |
Re: It's just Opera telling you to look forward. Leave the past behind you... :icon_twisted: | |
![]() | Re: [url=http://www.gidnetwork.com/b-58.html]See This[/url] |
Re: [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 { & … | |
Re: 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. | |
Re: [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. | |
Re: 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. | |
Re: 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. | |
Re: 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. | |
Re: For this type of program, the easiest solution is to sort the input then it's an easy matter to find the unique minimum. | |
Re: [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] … | |
Re: [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> // … | |
Re: 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 … | |
Re: [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]) | |
Re: 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: | |
Re: Try running the program from the command line and add your parameters there. See what happens. | |
Re: Store the last number generated somewhere -- in another table or an initialization file. | |
Re: 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. | |
Re: [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... | |
Re: [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 … | |
Re: 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. | |
Re: 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. | |
Re: 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: | |
Re: Since structures and classes are nearly identical... | |
Re: [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] … | |
Re: Read [B]Profession[/B] by [I]Isaac Asimov[/I]. Maybe you're asking the wrong questions... | |
Re: [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... … | |
Re: [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 < … | |
Re: Look up [iCODE]srand()[/iCODE] and [iCODE]rand()[/iCODE] functions. | |
Re: >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 … | |
Re: 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 … | |
Re: I know TC3 and TC4 came with very good manuals. Look up the commands in question to see what you are doing wrong. | |
Re: [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 … | |
Re: 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? | |
Re: [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] … | |
Re: [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 … | |
Re: [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] … | |
Re: [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 … | |
Re: 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 … | |
Re: Just load the new string into [iCODE]Text1.Text[/iCODE] | |
Re: [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] … | |
Re: 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 … |
The End.