15,300 Posted Topics

Member Avatar for alc6379
Member Avatar for Louis.S
Member Avatar for gabs

maybe [URL="http://www.winprog.org/tutorial/app_four.html"]this[/URL] will help you.

Member Avatar for Ancient Dragon
0
161
Member Avatar for lennyemp

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 …

Member Avatar for Ancient Dragon
0
465
Member Avatar for dchunt

call win32 api ShellExecute() or CreateProcess() instead of system() to execute another program.

Member Avatar for Ancient Dragon
0
188
Member Avatar for fire_
Member Avatar for silversurfer515

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]

Member Avatar for silversurfer515
0
149
Member Avatar for Halomak

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

Member Avatar for Halomak
0
121
Member Avatar for myk45

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

Member Avatar for myk45
0
179
Member Avatar for exekiel101
Member Avatar for Unidennn

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

Member Avatar for abhimanipal
0
125
Member Avatar for Ilyana

The file you posted contains three columns -- two numbers and a string. What do the first two columns represent?

Member Avatar for Ilyana
0
102
Member Avatar for Smithy566

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 …

Member Avatar for Ancient Dragon
0
1K
Member Avatar for elove

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

Member Avatar for caperjack
0
2K
Member Avatar for Violet_82

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 …

Member Avatar for Violet_82
0
146
Member Avatar for vbx_wx

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

Member Avatar for Ancient Dragon
0
95
Member Avatar for recoba
Member Avatar for PREETHIBCA

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

Member Avatar for jayreis
0
288
Member Avatar for Jennifer84

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]

Member Avatar for WaltP
0
4K
Member Avatar for bob200707
Member Avatar for marvik

Start here [code] #include <iostream> using std::cin; using std::cout; int main() { // put your program here } [/code]

Member Avatar for Ancient Dragon
0
82
Member Avatar for nonetheless

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

Member Avatar for Ancient Dragon
0
144
Member Avatar for azim_axl

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

Member Avatar for Ancient Dragon
0
977
Member Avatar for fire_

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.

Member Avatar for fire_
0
96
Member Avatar for andimiami

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

Member Avatar for Ancient Dragon
0
732
Member Avatar for Kunal Aggarwal

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

Member Avatar for Kunal Aggarwal
0
198
Member Avatar for theausum
Member Avatar for Ptap03

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 …

Member Avatar for Ancient Dragon
0
1K
Member Avatar for iRobz

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

Member Avatar for Ancient Dragon
-3
193
Member Avatar for athar89

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

Member Avatar for mrnutty
0
449
Member Avatar for pstrohma

call [URL="http://msdn.microsoft.com/en-us/library/system.io.driveinfo.getdrives(VS.85).aspx"]GetDriveInfo()[/URL]

Member Avatar for pstrohma
0
518
Member Avatar for +_+man
Member Avatar for EarendurRingern

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.

Member Avatar for Ancient Dragon
0
3K
Member Avatar for Anuradha Mandal

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

Member Avatar for Ancient Dragon
0
138
Member Avatar for livesinabox

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

Member Avatar for Ancient Dragon
0
110
Member Avatar for dboltz03

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.

Member Avatar for Ancient Dragon
0
77
Member Avatar for glenak
Member Avatar for Christ1m

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 …

Member Avatar for Ancient Dragon
0
93
Member Avatar for diddle

[URL=http://www.wotsit.org/]This[/URL] might help -- shows different file formats.

Member Avatar for Ancient Dragon
0
364
Member Avatar for Chalson
Member Avatar for frogboy77
Member Avatar for claw72
Member Avatar for xinyonz

MS-Windows programs can use [URL="http://msdn.microsoft.com/en-us/library/ms724390(VS.85).aspx"]GetSystemTime()[/URL]

Member Avatar for Ancient Dragon
0
71
Member Avatar for Akulki

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.

Member Avatar for Akulki
0
81
Member Avatar for mast3rshan3

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?

Member Avatar for NuclearSheep
0
688
Member Avatar for bigwhiteegg

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.

Member Avatar for Ancient Dragon
0
138
Member Avatar for jpetrey

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.

Member Avatar for Ancient Dragon
0
957
Member Avatar for cortez716

If you want main() tgo know the squared values then square2() has to chane the values of a and b.

Member Avatar for cortez716
0
167
Member Avatar for randyson

What is a time table preparatin program? [URL="http://www.visualbench.com/TimeTable_Preparation_Software_Overview.aspx"]This perhaps?[/URL]

Member Avatar for halil.burak
0
545
Member Avatar for tKc

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 …

Member Avatar for Ancient Dragon
0
476

The End.