15,300 Posted Topics
Re: Its not erased in IE8 either. Maybe that is intentional??? | |
| |
Re: maybe [URL="http://www.winprog.org/tutorial/app_four.html"]this[/URL] will help you. | |
Re: sprintf_s is not part of the C standard library -- its Microsoft specific and was introduced in Microsoft compilers just within the past 5 or so years. If you want to use it with that ancien compiler then you will have to implement it yourself. You can't put a 2010 … | |
Re: call win32 api ShellExecute() or CreateProcess() instead of system() to execute another program. | |
| |
Re: use [URL="http://curl.haxx.se/"]libcurl[/URL]. I have not used itmyself so I can't help you with that, but there are a lot of other members who can. Also get boost libraries -- [URL="http://www.boost.org/doc/libs/1_44_0/doc/html/boost_asio.html"]specifically this one[/URL] | |
Re: You use normal win32 api functions to do that. [URL="http://msdn.microsoft.com/en-us/library/aa363194(VS.85).aspx"]Read this[/URL] Open the com port with [URL="http://msdn.microsoft.com/en-us/library/aa363858(VS.85).aspx"]CreateFile[/URL]. Scroll down the page to "Communications Resources" for more information. And an [URL="http://msdn.microsoft.com/en-us/library/aa363140(v=VS.85).aspx#1"]example c++ program[/URL]. | |
Re: One way to do it is to use another character array to copy all the characters in s1 that are not in s2. void trimString() { char s1[] = "hello world"; char s2[] = "el"; char s3[255] = {0}; size_t sz1 = strlen(s1); size_t j = 0; for(size_t i = … | |
Re: I don't get it. How is that matrix calculated? | |
Re: >>if ((int)*ttt[i][j]==' ') 1. No need for the typecase. 2. loop couters should be int, not char 3. Remove the * from the array declaration 4. Functions must have return types -- default returns is not permissable. 5. Variable k chould be declared as char not int. [icode][color=red]int [/color]is_tic_tac_toe_full(...[/icode] [code=c] … | |
Re: The file you posted contains three columns -- two numbers and a string. What do the first two columns represent? | |
![]() | Re: I found one way to do it, but I'm not very happy with the Find() method because it only passes one parameter to the comparison function (called a Predicate). If you want to find a specific cat I don't know how to do it without using some sort of global … |
Re: [QUOTE=Laser;527861]IMHO [URL="http://download.openoffice.org/index.html"]Open Office[/URL] is a sweet, suite alternative to MS Office; it'll handle the microsoft file formats, it's only a little over 100MB download and it's free.[/QUOTE] And its free too. But MS Office has a lot of features that are not present in Open Office. | |
Re: The easoest way to validate that all input only contains digits it to get the input as a string instead of an integer. Then you can easily determine if it contains any non-digit characters without screwing up the entire input stream. >>while((!isdigit(numbers[k])) Useless loop because [b]numbers[/b] can not hold anything … | |
Re: >>string substr(int pos = 0, int n = string::npos) That's not likely to work. string::npos does NOT mean the end of the string but rather the largest possible value that can be assigned in a size_t variable. See [URL="http://www.cplusplus.com/reference/string/string/npos/"]this link [/URL]for more details. | |
Re: I'd start by googling for "freelance programming" | |
Re: >>i dont know how to improve my programming skills Practice, practice, practice. The only way to improve it is to study, read other people's code (program maintenance) and coding your own programs. With time your coding skills will eventuall improve. A bachelor's degree is not the end of your learning, … | |
Re: you can put something in an if statement [code] for ( int i = 0; i < 100000; i++ ) { i = i + 1; if( i == 50000 ) { cout << "Press Enter to continue ..."; cin.get(); } } [/code] | |
Re: Start here [code] #include <iostream> using std::cin; using std::cout; int main() { // put your program here } [/code] | |
Re: >>Would (Float)(x) == (float)(double)(x) Maybe yes, and maybe no. == does not always work with floats and doubles due to the way they are stored in memory. Testing for equality with floats/doubles is always unreliable and risky business. >>I know 2) is not true, as floating point numbers are not … | |
Re: >>void main() It's [icode]int main()[/icode] -- never void main >>1. INTEREST, BALANCE and principal become negative Its very rare that the amount of the final payment will be exactly the same as it was during the life of the loan. So you have to adjust the final payment so that … | |
Re: Firefox is a web browser, not an application window. You are going to have to explain a lot better what you are attempting to do. | |
Re: >> char q; >> char SENTINEL = q; The second line does nothing more than assign one char value to another. What's the value of 'q'? Answer: Undetermined because 'q' just contains whatever random value happens to be in the memory at the time. If you want SENTINEL to represent … | |
Re: >>cannot covert from const char [2] to wchar_t Hummm. If you are compiling the program for UNICODE then why aren't you getting similar errors on all the other lines in your program (such as line 5)? You could have avoided that problem altogether had you used ifstream and getline() instead … | |
Re: 1. You are getting repeated entries because you display the word every time if contains one of the letters you entered. Don't do that. Wait until the program has counted the number of letters in the word then, if the count >= 2, display the word and its count. Problem … | |
Re: Click the Start button, then the arrow in the lower right corner of the menu. I don't have a laptop but on a PC that arrow shows a menu that says reboot. See the circle in the attached bitmap picture | |
Re: @firstPerson: Nice math lesson, but it doesn't tell us how to extract the digitis without using the % or / operators, or converting to a string, or " without the aid of STL or any other library functions" :) I'd be interested in seeing the solution too -- if there … | |
Re: call [URL="http://msdn.microsoft.com/en-us/library/system.io.driveinfo.getdrives(VS.85).aspx"]GetDriveInfo()[/URL] | |
Re: use <fstream> and associated functions | |
Re: It would be a lot easier to use std::vector<std::string> instead of that string array, then call [URL="http://www.richelbilderbeek.nl/CppFind.htm"]std::find[/URL] instead of your binary search algorithm Post a few lines from the data file you are using. | |
Re: how can I build a skyscraper? Please tell me instructions and blueprints. First you have to determine what information you want in the database -- last name, first name, address, city, etc etc. Next step is to design a structure to hold all that information for just one person. Now, … | |
Re: >>And in school we used VC++ but I don't have it at home Why not? The express version is free for the asking (downloading). Would you build an engine for a 50 year-old car and expect it to work on a 2010 model? | |
Re: Suggest you read [URL="http://www2.roguewave.com/support/docs/sourcepro/edition9/html/stdlibug/14-5.html"]this explaintion and example[/URL] I don't think you need all that recursion. | |
Re: You have a little cleanup to do on existing code. Make it work corectly before continuing. >>cdStruct *start = new cdStruct; // first element will NOT handle any info why?? That's just a waste of memory. Set start = NULL and pass it to addEntry() by reference instead of by … | |
Re: [URL=http://www.wotsit.org/]This[/URL] might help -- shows different file formats. | |
Re: >>Can anyone help me how to do sample codes for these? What language? | |
Re: MS-Windows programs can use [URL="http://msdn.microsoft.com/en-us/library/ms724390(VS.85).aspx"]GetSystemTime()[/URL] | |
Re: why bits? The smallest addressable memory location is a byte -- usuually 8 bits. And how to get the amount of RAM is operating system dependent. | |
Re: Oh -- you mean you two don't like that teacher because he makes you THINK? The assignment isn't really all that difficult if you code it in small steps. Sure learning is difficult, but isn't that the reason you are in school? | |
Re: At the bottom of the thread you started you will see "Has this thread been answered?". The text under that contains a link to mark your thread solved. | |
Re: It would be a lot simpler and faster to wait until all the data has been read and then sort it. Just use std::sort() to sort all the data in the vector at one time. | |
Re: If you want main() tgo know the squared values then square2() has to chane the values of a and b. | |
Re: What is a time table preparatin program? [URL="http://www.visualbench.com/TimeTable_Preparation_Software_Overview.aspx"]This perhaps?[/URL] | |
Re: Real numbers include both positive and negative numbers. Your use of the term "real numnbers" is misplaced. You need another sum and count for all positive values. Then in the while statement add an if statement to sum up all values >= 0 (0 is also counted as a positive … |
The End.