15,300 Posted Topics

Member Avatar for AhmadHasanSahi
Member Avatar for Ancient Dragon
0
208
Member Avatar for centenond

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

Member Avatar for centenond
0
2K
Member Avatar for Ancient Dragon

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 …

Member Avatar for G_Waddell
0
304
Member Avatar for beck.muvirimi
Member Avatar for Ancient Dragon
0
110
Member Avatar for ArashVenus

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 …

Member Avatar for ArashVenus
0
1K
Member Avatar for Neuman

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.

Member Avatar for kal_crazy
0
486
Member Avatar for DanJones

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 …

Member Avatar for DanJones
0
435
Member Avatar for Warrens80

Maybe he's bragging about how much sex he is getting :) Young men like to do that, whether it's true or not.

Member Avatar for GrimJack
-13
641
Member Avatar for alaa zoghpy
Member Avatar for rubberman
0
60
Member Avatar for Eric_7

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.

Member Avatar for richieking
0
244
Member Avatar for Sara_6

I'll write it for you but it will cost you $10,000.00 USD, full payment in advance.

Member Avatar for richieking
-2
186
Member Avatar for NicAx64

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 …

Member Avatar for irum.nageen.3
0
6K
Member Avatar for John Dover

You need to post the first few lines of the text file so we can see what the program is to read.

Member Avatar for Deep Modi
0
206
Member Avatar for H_beginner

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.

Member Avatar for richieking
0
314
Member Avatar for osagie.odigie.77

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

Member Avatar for mike_2000_17
-1
225
Member Avatar for Ancient Dragon

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?

Member Avatar for Ancient Dragon
0
218
Member Avatar for Is_at_work

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

Member Avatar for Ancient Dragon
0
576
Member Avatar for Warrens80
Re: Gum

[Gummi Bears](http://www.candyfavorites.com/big-bite-red-cherry-gummi-bear), of course.

Member Avatar for kal_crazy
0
170
Member Avatar for Chinney

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 …

Member Avatar for Chinney
0
317
Member Avatar for amani_1

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 …

Member Avatar for rubberman
0
93
Member Avatar for alina.nazchowdhury

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

Member Avatar for ACE--
0
154
Member Avatar for Epn5014

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

Member Avatar for Ancient Dragon
0
160
Member Avatar for aditya.bhoi.35
Member Avatar for sarah.mathieson.7

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.

Member Avatar for Ancient Dragon
0
200
Member Avatar for rayborn66

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.

Member Avatar for Emran__
0
2K
Member Avatar for Djmann1013

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

Member Avatar for Ancient Dragon
0
480
Member Avatar for hendraligawan

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.

Member Avatar for Ancient Dragon
0
107
Member Avatar for hendraligawan

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 …

Member Avatar for hendraligawan
0
200
Member Avatar for pphamtuan

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.

Member Avatar for Ancient Dragon
0
402
Member Avatar for Rohan_1

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.

Member Avatar for Ancient Dragon
0
204
Member Avatar for castajiz_2

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 …

Member Avatar for deceptikon
0
151
Member Avatar for Quân

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

Member Avatar for Ancient Dragon
0
523
Member Avatar for Warrens80
Member Avatar for aluya

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.

Member Avatar for sophiaya
-1
235
Member Avatar for Jamblaster

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

Member Avatar for diafol
1
376
Member Avatar for jaymista

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 …

Member Avatar for mike_2000_17
-1
257
Member Avatar for Ancient Dragon

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

Member Avatar for vegaseat
0
192
Member Avatar for manel1989

>rel(*this,z==res[count]*X1[count1]); It was probably the == boolean operator that caused the problem `rel(*this,(z=res[count]*X1[count1]));`

Member Avatar for Ancient Dragon
0
626
Member Avatar for london-G

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 …

Member Avatar for JorgeM
0
139
Member Avatar for saimadanmohan

If the pattern is allowed to use wild card characters, such as \* and ? then it gets a bit trickier.

Member Avatar for stevedaniel
0
269
Member Avatar for emma.brady.794

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 …

Member Avatar for emma.brady.794
0
148
Member Avatar for HenryR7

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

Member Avatar for richieking
0
189
Member Avatar for poksmdpk

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.

Member Avatar for Ancient Dragon
0
120
Member Avatar for cambalinho

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 …

Member Avatar for cambalinho
0
5K
Member Avatar for pc20912

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.

Member Avatar for Ancient Dragon
0
477
Member Avatar for jonathan710

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

Member Avatar for Ancient Dragon
0
154
Member Avatar for castajiz_2

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 …

Member Avatar for Ancient Dragon
0
293
Member Avatar for COKEDUDE

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 …

Member Avatar for Ancient Dragon
0
278
Member Avatar for karthick_pmk

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 …

Member Avatar for Ancient Dragon
0
206
Member Avatar for Dani

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!

Member Avatar for <M/>
0
231

The End.