-
Replied To a Post in Jokes
Wife to husband: Do you rememember last month when two men tried to kidnap me? Husban: Yes, and an hour later they returned you with their apologies Wife: I only … -
Replied To a Post in Speeding ticket calculator
Read the first sentence I wrote >Compare the parameter list of the function on line 18 with what you are trying to do on line 107. The number of parameters … -
Replied To a Post in Speeding ticket calculator
I told you about 21 hours ago what's wrong, there is no function named getFine() that has only one parameter, or at least you didn't post one. -
Replied To a Post in function that return value from file
why are you passing fractional values instead of whole numbers. When you pass 0.02 does that mean to get the line that contains 2 zeros, e.g. 100? Then why not … -
Replied To a Post in segm fault again, please help
index+1 first increments index then does the recursive call. index++ doesn't increment index until after the recrsive function call. It's similar to coding `++index or index++` Somehow that function needs … -
Replied To a Post in inline function
Microsoft IDE can generate some pretty huge inline functions which consume a lot of stack space. -
Replied To a Post in Is this a typedef problem?
SOCKET shold be an int, not char because it's value can be a lot larger than what an char can hold. The file that contains SOCKET declaration is probably not … -
Replied To a Post in i want to learn c++ for exam
Try attending all the classes, reading your text book and doing all the exercises in your book. Then you can post specific questions here at DaniWeb along with the code … -
Replied To a Post in segm fault again, please help
The function doesn't make much sense. For example, line 15 is unreachable, If line 5 is false then the only other option is for line 8 to be true. This … -
Replied To a Post in Possible edit window bug
That thread looks ok to me. -
Replied To a Post in Speeding ticket calculator
Compare the parameter list of the function on line 18 with what you are trying to do on line 107. The number of parameters on line 107 must be the … -
Gave Reputation to ObSys in Is VB free or do I buy it?
Read this an figured I should add something. DO NOT FOLLOW DEEPMODI's advice!!! Microsoft never take kindly to people downloading their software from anyone except themselves. People have tried and … -
Replied To a Post in How do I make this C program to accept a negative input
Did you write GetFloat()? Post it's source code so that we don't have to guess what it does. -
Replied To a Post in Simple problem (files)
Open the file in append mode the write a line to it. The os will put the new line after the last line of the file. See the a+ flag … -
Replied To a Post in sorting a text file
I don't think there are any languages with 10,000,000,000 (10 Billion) words. But if you have a file with that many random words (many duplicates I suppose) then sort it … -
Replied To a Post in c++
look in limits.h for exact ranges for your compiler. -
Replied To a Post in Change text color using visual c++
Read the previous post -- some of the colors are already in that post and they are all defined in windows.h. Console programs have very limited colors, the same as … -
Replied To a Post in Convert from Java to C++
learn both languages then you will most likely know how to do it. -
Replied To a Post in What is your favorite English word?
"gobbeldygook" is another favorate. It describes pretty well what politicians say. -
Replied To a Post in jack-en-poy codes please..
Here[Click Here](http://lmgtfy.com/?q=rock+paper+scissors+c+program) you go. -
Replied To a Post in Shell based progress indicator.
The C API don't help you, if by C api you mean standard C language. You need to study operating system specific API such as win32 api for MS-Windows. -
Replied To a Post in Shell based progress indicator.
To make a working progress bar you have to split up the work into small units so that the screen can be updated periodically. Depending on what work is being … -
Replied To a Post in Counting positive and negative...
this is what I meant int counter = 0; for (int i=0; i < num ; i++) { if (findNum[i] >= 0) { ++counter; } } cout <<"The number of … -
Replied To a Post in Game development
c++ is probably the most used by good game developers, but it's not the easiest. IMO the easiest would be VB.NET because it's graphics are much easier than other languages. … -
Replied To a Post in Counting positive and negative...
you didn't post the loop, but you need to declare a counter before the loop starts then increment it every time a positive integer is encountered inside the loop. Only … -
Replied To a Post in What is your favorite English word?
The F*** bomb, because it can mean so many different things depending on the context in which it's used. But, unfortunately, many people just overuse it which just trivializes it. -
Replied To a Post in Shell based progress indicator.
Since it's text mode and not GUI a better looking progress bar is probably not possible. -
Replied To a Post in My Computer "Pauses" when not in use for a few seconds. HELP!!
have you scanned the computer for viruses and malware? -
Replied To a Post in My Computer "Pauses" when not in use for a few seconds. HELP!!
Sounds like normal behavior -- your computer is going into sleep mode. Turn it off ([click this](https://www.google.com/#q=windows+7+how+to+turn+off+sleep)) -
Replied To a Post in Suggestion for Account record
When the file fails to open it means one of two things: (1) you mispelled the name of the file, or (2) the file isn't in the same folder as … -
Replied To a Post in Problem in getting "<< gets(string)" to workout
why are you mixing gets() and puts() which are C functions with cin and cout which are c++??? Be consistent, use either C or C++ fuctions but not both. Replace … -
Replied To a Post in How is the weather today in your country?
Yes it is -- and you can keep all that snow where you are, I don't want it here :) But I'll bet winter sports are great where you live. … -
Replied To a Post in please help me .........
This question has been asked and answered over a million times. Why don't you just use google to get your homework done. -
Replied To a Post in Harvesting online data
To do it in either C or C++ you need to read some tutorials about socket programming. There is a difference between MS-Windows and \*nix sockets, so you first have … -
Replied To a Post in Good C++ Video Tutorials/Books Anywhere?
Please don't refer to people you don't know as "dear". No one here is your sweatheart. Did you read [this thread?](http://www.daniweb.com/software-development/cpp/threads/70096/c-books) -
Replied To a Post in How is the weather today in your country?
Relatively nice day today. Yesterday was about 15.5C but today is -10C. At least there's no snow on the ground :) -
Replied To a Post in Database connectitvity
With VC++ 2014 I have to include windows.h before sqlext.h #include <Windows.h> #include <sqlext.h> -
Replied To a Post in short,long,typedef,const
Or smaller? I know the number of bits im a byte varies quite a bit from one patform to another, but AFAIK a char is always 1 byte. -
Replied To a Post in Is there a better way to make a unicode aware IO class?
If you want it to output unicode strings then std::cout and std::cin won't work because they are not unicode functions. Example: int main() { wchar_t buf[255] = { 0 }; … -
Replied To a Post in short,long,typedef,const
Yes, it was off, the range is -128 to 127 define SCHAR_MIN (-128) /* minimum signed char value */ #define SCHAR_MAX 127 /* maximum signed char value */ -
Replied To a Post in variable in c
The quote you posted does NOT say globals are static by default, it says just the opposite. "external linkage" means that if there are two \*.c files, say A.c and … -
Replied To a Post in short,long,typedef,const
short and long are two of the numeric data types (char, short, int, long, float and double). Only char has a guarenteed size, which is 1 byte with a range … -
Replied To a Post in Problem in getting "<< gets(string)" to workout
Because after you enter a number from the keyboard you have to press the <Return> or <Enter> key. That key, '\n' remains in the kayboard buffer until the next input … -
Replied To a Post in Is there a better way to make a unicode aware IO class?
I usually use the macros in tchar.h to make programs UNICODE friendly. If you search MSDN for the string function it will tell you what macro to use from tchar.h. … -
Replied To a Post in variable in c
The default is non-static. -
Replied To a Post in cppunit only accept return value zero
I can't help you if you don't post the code that exhibits the problem(s). -
Replied To a Post in Internal or External command
line 11 is wrong. There is no such command as c:\Computer. -
Replied To a Post in cppunit only accept return value zero
Try this: Your function is exiting the loop after the first iteration whether the username and password are found or not. int POSConsole::Authenticate(string _userID, string _password) { bool failedLogin=false; int … -
Replied To a Post in What movie have you seen lately?
Stargate -- oldie but goodie. -
Replied To a Post in basic message box not working
Another option is to remove the L in front of the two string literals.
The End.