-
Replied To a Post in insert or move image in c
what kind of images -- gui or text? If gui then you would be better off using a library suited for that such as OpenGL -- all the hard work … -
Replied To a Post in Overloading a function
Then go to court and have his name changed, his parents weren't funny giving him that name. -
Replied To a Post in change settings in C
Why do you need to do that? Just have an array of max possible size, then have a variable, such as arrsz, that contains the size you want (either SIZE_10 … -
Replied To a Post in HELP !! lower case count
Actually I didn't have in mind summing them all up into one of three bins (as ddanbe called them). If that is the case then his approach would be more … -
Replied To a Post in Array-based Lists and Array-based Queues
We can all help you and it will be for free. But Dani would sure appreciate any donation you want to give her. If the class is too high for … -
Replied To a Post in C++ console game freezes HELP
Look at that line very carefully -- the while statement is an infinite loop. -
Replied To a Post in C++ console game freezes HELP
>Program doesn't reach line 75. That's because of the problem on line 70. Sorry, my previous post was incorrect, it should have said line 70 not line 75. -
Replied To a Post in fgets with sscanf new line vs carriage return
It can get even more complicated than that -- for a complete discussion see [this article](http://en.wikipedia.org/wiki/Newline). At one time the MAC used CR as line terminator, don't know if that' … -
Replied To a Post in C Language
He meant `i < j` in the above post -
Replied To a Post in HELP !! lower case count
>They are all really chars. There really is no such thing as a char in C and C++ languages, the data type char is just a one-byte integer with a … -
Replied To a Post in C++ console game freezes HELP
That's a new feature of c++11 iso standards. Some compilers such as Visual Studio have not implemented it yet, while others such as g++ may need special flags. For compiles … -
Replied To a Post in Help with Random Number Generator please
line 76: `y = static_cast<int> (1 + rand() * (max / x));` If all you want to do is to generate a random number for the user to guess then … -
Replied To a Post in Help with Random Number Generator please
delete line 26 because it destroyed the seed generated by line 25. -
Replied To a Post in HELP !! lower case count
I would do it by using an array of 255 ints, each element in the array represents one of the characters in standard ascii character set. So, if you enter … -
Replied To a Post in Random Facts
>Cats only have 239. Ones in their body You need to explain that one. I have no idea what that means. -
Replied To a Post in opencv with qt using c++
You include .h header files, not DLLs. Header files are very simple -- the compiler's preprocessor adds those files to your program in the spot where you have the #include … -
Replied To a Post in Trip through the US
I can drive my Prius 500+ miles between fillups, then then it's not 100% electric. It has a small gas engine to keep the battery charged. -
Replied To a Post in opencv with qt using c++
Most likely the problem is compiler mangling names. c++ compilers change function names so that they can be overriden, while c compilers do not because c does not support overiding … -
Replied To a Post in Trip through the US
Maybe, but I'll take my 52GPM Prius over your 23GPM car anytime. Granted, I have not driven it in the mountains or desert so that might make a difference. But … -
Replied To a Post in Database connectitvity
spintf() and many othere functions found in string.h expect strings to be null-terminated. That's how those functions know where the end-of-string is. Without that null terminator the functions will just … -
Replied To a Post in Swapping
>am wondering why would one need to swapp the numbers in real life? One very good reason is sorting numbers in either ascending or descending sequence. -
Replied To a Post in Things I hate about TV shows
Sometimes I count the number of commercials shown back-to-back -- The worst I've seen is 3 minutes of the show and 10 minutes commercials. -
Replied To a Post in Random Facts
[Mother Hubbard ](http://en.wikipedia.org/wiki/Mother_Goose)from Mother Goose was originally written in about 1590 and Mother Goose's Melody was first published sometime in the 1760s. -
Replied To a Post in check for set of characters in array of characters
great :) so now your problem is solved?? -
Replied To a Post in Database connectitvity
you need to post the code that you tried, you should be able to declare arrays in excess of several thousand, depending on the compiler. If you are using old … -
Replied To a Post in c++ question
Here you go, but don't be supprised if you get an F because your teacher will know at first sight you didn't write it #include "stdafx.h" #include <iostream> #include <cliext/map> … -
Replied To a Post in Trip through the US
I didn't realize that about the Prius -- I live in the mid-west where the temp is not nearly as hot as in Vagas. Also check for conventions in town … -
Replied To a Post in Trip through the US
You could sleep in a motel or hotel, but at $200/day that would cost you $3600.00 USD. Campervans get terrible gas milage, gas costs about $3.60/gallon. Get a Toyota Prius … -
Replied To a Post in What's wrong with this code
Lines 1-4 are all incorrect. You can't declare character arrays like that and you can't use gets() like that. I think you need to pay more careful attention to how … -
Replied To a Post in check for set of characters in array of characters
look up strstr() function. Another way is to call [strncmp(](http://www.cplusplus.com/reference/cstring/strncmp/)) -
Replied To a Post in C# Arrays
Are the questions all in an array? If they are, just have a counter that points to the current question. Initialize it to 0 to indicate the first question. When … -
Replied To a Post in OP Sponsor
>Is it possible that I could get it back? Probably not -- you auto lose the badge when the period of your donation expires. For example if you donate $3 … -
Replied To a Post in Need help with file reading
The difference is that eof() doesn't recognize end-of-file until an actual read is performed. When at end-of-file line 31 doesn't know it yet until line 33 is executed. But line … -
Replied To a Post in Reading uint Array properties inside WMI in Visual C++
>not using .net AFAIK WMI is .NET -
Replied To a Post in custom string function suggestions
line 5: how does that variable ever get reset back to 0 so that you can call the function again for a different string? -
Replied To a Post in Reading uint Array properties inside WMI in Visual C++
Have you read [this](http://technet.microsoft.com/en-us/library/ff405671.aspx) article? -
Replied To a Post in custom string function suggestions
line 26: what happens when found+1 > str.length()? There is nothing in the loop to stop the loop at the end of the str. Replace lines 19-31 with this loop … -
Replied To a Post in What are the main differences between C++ and C ?
>c++ is completely object oriented programming language. No it isn't. -
Gave Reputation to invadev in How to include windows.h header file in linux gcc compiler?
You can donwload MinGW for windows it has a GCC compiler for C and G++ compiler for C++. Good Luck -
Gave Reputation to David W in c++ program that would display the menu of a restaurant
Using several functions ... a function for each task ... could really help your program development ... and help elucidate the logic flow. // restaurant.cpp // #include <iostream> #include <string> … -
Replied To a Post in [c++] hide char
Didn't you read [this post](http://www.daniweb.com/software-development/cpp/threads/475676/c-hide-char-#post2077666) to show how to backspace? line 16: if Pass in line 15 is a pointer then you can't delete s1 on line 16 because it … -
Replied To a Post in Cannot receive complete string
There are two kinds of strings -- standard strings are char\* which are 1 byte per character. This is normal in English language and a few other languages too. The … -
Replied To a Post in c++ help
void\* is just a generic term for a pointer of any type. For example, malloc() returns void\*. If you really want a pointer of type char\* then, in c++, you … -
Replied To a Post in pleas hlep me in my project
what compiler? what operating system? what GUI library? -
Replied To a Post in Iterator not working with classes
That's because g points to an entire class and you need a friend class that prints all of it. cout has no idea how to display the class. -
Replied To a Post in iostream error basic_ostream is protected??
ifstream and ofstream cannot be members of a class like you have them. It's probably better to just have inData() and outData() declare ifstream/ofstrem, open the file, then read/write. void … -
Replied To a Post in Iterator not working with classes
remove the asterisk -
Replied To a Post in How do I access data in List
iterators are pointers and need the -> operator not the dot operator cout << left << setw(0) << "--d" << diskQueue.size() << left << setw(4) << " " << left … -
Replied To a Post in Iterator not working
Remove const keyword after PCB::screen. const functions can't use the iterator. -
Replied To a Post in Iterator not working
Remove const keyword after PCB::screen.
The End.