15,300 Posted Topics
Re: Check out DirectX or OpenGL -- but be prepared for some heavy-duty programming. | |
Re: [here](http://www.daniweb.com/software-development/cpp/threads/37630/dev-c-build-error-main.o-error-1/3) is a related thread. If you google for "error 2816" you will find similar related articles. | |
Microsoft is ALMOST giving this away to people who already own VS 2012 Pro -- just $99.00, compared to $400.00 price without VS 2012 Pro. There were a few changes to .NET Framework, closer compliance to C++11, and better support for writing Windows 8.1 apps. If you don't care about … | |
Re: See [these tutorials](http://www.swiftless.com/opengltuts.html) | |
![]() | Re: To write a GUI using pure c++ is pretty difficult. [ Here](http://www.winprog.org/tutorial/) is an into tutorial, and it only scratches the surface. Writing Windows GUI programs is a lot simpler with other languages, such as CLR/C++, C# or VB.NET. [Here](http://www.codeproject.com/Articles/3992/What-is-NET) is a pretty good overview of .NET, and if you … ![]() |
Re: Yes, it is possible. And Yes, c++ is not the best language for it any more -- vb.net and C# are easier for MS-Windows. If you want cross-platform, then QT is a better solution. There are many ways to write GUI applications, some platform dependent and some are not. | |
Re: Instead of putting all those statements in one bit line separated by either || or && you should call them as individual statements. bool a,b,c,d,e,f; a = checklength(length); b = lowerCase(length,line); c = upperDate(length,line); d = beginLetter(length, line); e = correctDigits(length, line); f = specialChar(length, line); if( a || b … | |
![]() | Re: Maybe he's bragging about how much sex he is getting :) Young men like to do that, whether it's true or not. |
Re: What part of that asssignment do you need help with? | |
Re: What compiler are you using? Does it tell you what line the error occurred on? The error message is not related to the tt array becuse that is an array, not a vector. | |
Re: I'll write it for you but it will cost you $10,000.00 USD, full payment in advance. | |
Re: You could, but you will have to do a lot of other things too, such as implement a message pump so that Windows messages can be read and processed. Not really worth the effort. An easier way is to just create another thread, then in an infinite loop put it … | |
Re: You need to post the first few lines of the text file so we can see what the program is to read. | |
Re: I would swap the data, not the link pointers. That makes sorting a lot easier. But your teacher may or may not allow that simple method. | |
Re: >HAY Ninjasssssssss ! No clue what that means. AFAIK you are calling everyone vulgar names. >I’s asked recently by a friend to do a pentesting on d system dat he administers What the hell does all that mean??? what is "d" and "dat". Write English please. And I have no … | |
Is there currently a way to mark all threads in a forum as read? Every one of the forums I see in the Home Page shows NEW (I assume that means there are some unread threads). If not, will you please add such a feature? | |
Re: line 136: I don't understand the purpose of that calculation. I would think the fastest and easiest way to get a random word from the text file is to first read the entire file into a vector of std::strings, then the program will always know how may words there are. … | |
![]() | Re: [Gummi Bears](http://www.candyfavorites.com/big-bite-red-cherry-gummi-bear), of course. |
Re: It will depend on the operating system, but for MS-Windows the best program for writing Windows GUI is [Visual Studio](http://www.visualstudio.com/en-us/visual-studio-homepage-vs.aspx). That doesn't mean it's the easiest to learn or use. [Code::Blocks](http://www.codeblocks.org/) with MinGW is easier to learn, and for console programs just as good as Visual Studio. Also MinGW is … | |
Re: Do the assignment one small part at a time. First write a program that contains a loop which runs from 0 to 5. Then declare an array of 5 strings. Now your program is ready to prompt inside the loop for the strings, using the loop counter as the index … | |
Re: Here are [50 Ways To Leave Your Icon](http://www.codeproject.com/Articles/4335/Embedding-Icons-In-Your-VB-NET-Application) Then [how to change the icon on the task bar](http://stackoverflow.com/questions/11581320/change-icon-on-task-bar-for-vb-net). | |
Re: >i didn't handle firstName and id in struct Well, add them to the structure. > And there is no lettergrade in input file. There is in the example you posted. Post the exact contents of the first few lines of the time, not some made-up dummy stuff. We don't have … | |
| |
Re: Call find_first_of() instead of just find(), as in the example in [this thread](http://www.cplusplus.com/reference/string/string/find_first_of/). In a while loop keep calling find_first_of() until it returns npos. Each time one of the characters is found replace it with something else, such as a space. | |
Re: post the contents of the input file. Does it contain numeric digits only or can it contain non-numeric characters? How to parse the file will depend on what it contains. | |
Re: Since it was written in C# you can't just simply add it to your existing vb.net code. You might try compiling it with C# compiler into a library, then calling and linking the library to your vb.net program. Supposedly you can mix and code written in all the .net languages, … | |
Re: localtime() returns a pointer to a tm structure. Then asctime() is called to convert the structure into something human readable, although you could do this yourself if you wanted to. | |
Re: The instructions are not completely clear -- How are you supposed to determine how much time each transaction takes? Or is that just a random number too? First you will have to define exactly what each node of the linked list will contain. Each node of the linked list will … | |
Re: Those kind of errors nearly always means you didn't implement one or more of the class's methods. If you think you did, then it may be a spelling/capitalization problem. The error message will tell you which method you failed to implement. | |
Re: When I was working a programmer would have been repremanded for using the goto statement. On the otherhand, I saw it used once in Micorosoft source code. | |
Re: Using feof() like that may produce unexpected behavior, such as counting the last line twice. That's why it's better to loop like Deceptkion wrote it. Is there a reason why your program is reading the file one character at a time instead of calling fscanf() to read an entire line … | |
Re: >i have a problem in ConfigureSerialPort function. What is the problem? Have you compiled for debug and single-stepped through the function to find out where it goes wrong? Or is there a compiler error? | |
![]() | |
Re: Windows 7/8 have a program that changes existing partition size so that you can create new partitions. I've done it several times with no problems. There's also [Partition Magic](http://partition-magic.soft32.com/), but if you have Windows 7 or 8 you don't need it. | |
Re: > In the few posts which I have had on here asking for help I have generally had to solve the problem myself (and that is always the best way right?) Actually -- yes, that is right. We are here to "help" you solve the problem, not solve it for … ![]() | |
Re: Oh no! Not another Elvis nutjob :) I don't know why people are so crazy over that truck-driver-turned-singer. He wasn't all that good of a signer, and a horrible actor. The final straw was when he died of drug overdose. Why would you want to memoralize someone like that??? If … | |
This is a typical day today at WalMart and other stores throughout the USA http://abcnews.go.com/US/black-friday-turns-dark-twitter-websites-track-injuries/story?id=21048805 | |
Re: >rel(*this,z==res[count]*X1[count1]); It was probably the == boolean operator that caused the problem `rel(*this,(z=res[count]*X1[count1]));` | |
Re: Are the printers wifi ready? Or are they connected directly to computers? What operating systems are running on the 6 computers? With MS-Windows 7/8 you don't really need a computer to act as a server, just set up a home network and all the computers on the network are considered … | |
Re: If the pattern is allowed to use wild card characters, such as \* and ? then it gets a bit trickier. | |
Re: Delete lines 17 and 24 -- the variable Count is changed by lines 14 and 21 delete line 6 to 12 because the user is supposed to enter those strings. line 16: You don't need the string ***Response***. Just use the array `Name(count) = Console.ReadLine()` So your program should look … | |
Re: >Read the entire file to a string and use string lenght function. That won't necessarily produce the file size because the file may contain characters that are translated by the operating system. For example, MS-Windows uses two bytes to indicate end-of-line and, when read in text mode, those two bytes … | |
Re: It's just a simple SQL statement. If you don't know SQL, then you need to read [a tutorial ](https://www.google.com/#q=sql+tutorial)on it. | |
Re: Not sure which of these you want, all three have been mentioned before. Here are three possibilities. Maybe the third option is what you are looking for. If ***test*** is really a pointer to an integer then in order to save it in std::string it has to be converted from … | |
Re: The problem is most likely with the Firewall that's on the computer hosting the database. Change a firewall setting to open up the port your program is using. I had to do that with my own Home Network in order to get a similar program running on my computers. | |
Re: Instead of trying to blaim memory leaks on your compiler you should be looking at your own code for them. Most compilers have been tested pretty thoroughly. In 25+ years coding I think I found just ONE compiler-generated memory leak (in malloc/free functions, and that was over 10 years ago, … | |
Re: As deceptikon said, C language does not have a string data type. Instead, it uses character arrays. For example if you want it to hold the word "Hello" then the character array has to room to hold at least 6 characters -- 5 for "Hello" and another for the terminating … | |
Re: I don't see a linked list in the code you posted -- just a couple arrays. Why do you have a two structures that contain circular references? EDGE has a pointer to VERTEX which has a pointer back to EDGE??? That makes no sense. Maybe you need to rethink the … | |
Re: In c++ we use either cin or getline() to get characters from the keyboard, and you have to allocate the buffer yourself Use this if the password contains no spaces std::string saltedPassword; std::cin >> saltedPassword; if the password contains spaces then it's like this: std::string saltedPassword; std::getline(std::cin, saltedPassword); In both … | |
Re: Tomorrow I'm taking my family to a local restaurant for lunch -- had to make reservations because they are packed on Thanksgiving day. They have a buffet room that is probably 3 or 4 times the size of my house! |
The End.