15,300 Posted Topics

Member Avatar for zampi91

IMO you need to rethink how you are implementing this. You should have only one class that does serial port stuff, not two classes unless the two classes act as one class. One of the members of the class could be the serial port number so that the instance of …

Member Avatar for zampi91
0
944
Member Avatar for Garidius

Which version of VC++ do you have? Generally, you start a new project but select Win32 Project instead of Win32 Console Project. You will then get a new project in which you copy your console function(s). You then have to use win32 api functions for the GUI part of the …

Member Avatar for Garidius
0
552
Member Avatar for aVar++
Member Avatar for Thundermax

Can't help you until you show us the code that stores the words. It could be as simple as `strcat(word," ");`, but might not too. It all depends on how you wrote the code.

Member Avatar for Adak
0
216
Member Avatar for Robin_3

>But i am sure anyone who will search for this matter will be getting help from this thread.. Not likely to happen because you are using a 30-year-old compiler (Turbo C), right?

Member Avatar for Ancient Dragon
0
491
Member Avatar for curt.owens.5

the loop is too busy while ( num_list >> number && count < 50) { sum += number; if (number % 2 == 0) ++even; // increment even count else ++odd; // increment odd count ++count; }

Member Avatar for Ancient Dragon
0
152
Member Avatar for jain_1
Member Avatar for sparsh610_1

what are you entering for the search string? If it contains spaces then cin >> won't work because it stops after the first space. you should probably use cin.getline(a,80) so that it will keep the spaces. The loop is a little off while( fgets(b,80,fp1) && strcmp(b,a) ) ; notice that …

Member Avatar for Ancient Dragon
0
110
Member Avatar for Ancient Dragon

I bought a new Galaxy Note3 the other day. Last night I thought I'd use it to browse DaniWeb. Big mistake -- DaniWeb is viturally unusable on Android because the purple menu at the top covers the entire screen except for about 1/2 inch at the bottom and the purple …

Member Avatar for Learner010
0
328
Member Avatar for Ancient Dragon

I bought a new Galaxy Note3 a couple days ago and experimenting with various rintones. I noticed most of the free ones are pretty sad -- except for this one "An idot is trying to call you". LMAO and so did my kids when I let them hear it. Anyone …

Member Avatar for Learner010
0
94
Member Avatar for numbplum

You tell us how you answered the questions then we will tell you if you are right or not, and if not we will tell you the correct answer.

Member Avatar for rubberman
0
836
Member Avatar for Triryche

What error(s) are you getting? Post the exact error message(s). Is secondTemp a textbox? If it is then you have to convert the Value to an int or float before using it in mathmatical equation.

Member Avatar for Triryche
0
1,000
Member Avatar for somjit{}

Sorry, I don't like the looks of it -- looks like something from the 1980's. Notepad++ is much better.

Member Avatar for somjit{}
0
263
Member Avatar for iFrolox
Member Avatar for ariannas

e.KeyChar contains the key that was pressed. Set e.Handled = true if KeyChar is not a numeric character or a period, that will make the system throw the character away. Hint: see IsNumeric() function.

Member Avatar for ariannas
0
158
Member Avatar for ariannas

This is a duplicate of the same question in VB.NET. You should not create threads in multiple forums for the same question because it just confuses everyone.

Member Avatar for Ancient Dragon
0
159
Member Avatar for ariannas

>I am done but there I have mistakes LOL :) That's like saying "I am done building the car but the engine is not in it yet"

Member Avatar for tinstaafl
0
125
Member Avatar for laklaker

Easiest way is to use two pointers. The pointer to the source string startgs at the beginning of the string. The pointer to the destination string starts at the beginning of the destination character array plus the length of the source string + 1. You need to the +1 in …

Member Avatar for Ajit_2
0
262
Member Avatar for cambalinho

What are the error(s) you got? The code you posted is not overloading any functions. line 3: remove the {} characters because it makes the function an inline function. It should look like this: `virtual void created();` line 10 is wrong. Remove the word "test"

Member Avatar for cambalinho
0
410
Member Avatar for joshl_1995

I bought a Galaxy Note3 the other day. Pretty pricy but pretty nice too. Nice big clear screen that's good on my old eyes. This is my first smartphone -- it's a little like moving up from horse & buggy to a Ferrari :)

Member Avatar for Ancient Dragon
0
495
Member Avatar for theguitarist
Member Avatar for theguitarist
0
248
Member Avatar for Benjamin_6

> I believe I could learn more in 3 weeks at my computer than I could in 3 years taking Computer Science. That may or may not be true, but why deny yourself an education when you have the choice of either putting yourself on the same level as your …

Member Avatar for Mike Askew
0
269
Member Avatar for Dani

An Android app! Most of the forums I visit are based on vBulletin. DaniWeb is already better than any of them.

Member Avatar for Dani
0
157
Member Avatar for GeekPlease

Linking MS Access to C++ is not using console program but a GUI .NET program. It's useless for console programs. Other ways to do it is [c++ odbc](https://www.google.com/#q=c%2B%2B+odbc+tutorial) and [ADO](https://www.google.com/#q=c%2B%2B+adodb+example)

Member Avatar for Ancient Dragon
0
483
Member Avatar for Thundermax

I do it without shifting by using a temporary character array. After calling strstr() to find the beginning of the word or string you want to replace, copy the original string from the beginning to the position returned by strstr(). For example, If the original string is "Now is the …

Member Avatar for Ancient Dragon
0
229
Member Avatar for Dani

I thought the first two sentences of Reputation tooltip was confusing at first -- didn't see the relevance of "Vote on posts. Leave a comment", but eventually realized that is telling us how reputation is changed by "Vote on posts AND leave a comment".

Member Avatar for Stuugie
2
358
Member Avatar for ShadyTyrant

At the Bachelor's level, computer science is sufficient. Most colleges I know of don't have other paths, but you could specialize in web development, programming, etc. They all lead to Bachelor of Science (or Arts) in Computer Science. You safest bet is to look at the catalogs from the college(s) …

Member Avatar for jwenting
0
331
Member Avatar for tooota

If this is a web-based program than don't use c or c++. Use a scripting language designed for web servers, such as php, javascript, etc. And yes, install wamp on your development computer.

Member Avatar for tooota
0
214
Member Avatar for Andy90

You're getting what error? Function prototypes just tell the compiler about the function's return values and parameters. An easy way to create a prototype is to copy the function header and add a semicolon at the end. `int searchEntry(indexs ind[],char key[],int n);` > Can we use Fopen in C++? Yes, …

Member Avatar for mridul.ahuja
0
515
Member Avatar for shashidhargm

I couldn't get it to install either on Windows 7 ![f766f495df4c8446f4dfa34820d4e498](/attachments/small/0/f766f495df4c8446f4dfa34820d4e498.png "align-left")

Member Avatar for Smitha Nayak
0
167
Member Avatar for Nicholas_1

I'd recommend writing the value of the variables to a text file, and tag each value with the name of the variable. That way you can change the program to add more or remove some variables without changing the format of the file. An old \*.ini file format is good …

Member Avatar for Nicholas_1
0
183
Member Avatar for Assembly Guy

>Can you change it to something that isn't your name and then back to your name? I don't think so -- as I recall we only get one crack at changing the user name.

Member Avatar for Assembly Guy
3
285
Member Avatar for Andy90

Here it is as a class class foo { public: void Scanned(ifstrem& ifp,int i); void Read(ofstream& ofp); int Checker(std::string s,std::string u); void Stored(fstream&); void Printed(ifstream& ifp,ofstream& ofp); };

Member Avatar for Ancient Dragon
0
674
Member Avatar for maralbt

you didn't declare the variables you used. You have to declare all variables before they can be used, for example: `float a;` If you don't know what "float" is then you should read up on [C Language Data Types.](http://www.tutorialspoint.com/cprogramming/index.htm) line 7: the = is an assignment operator, the == is …

Member Avatar for Ancient Dragon
-1
214
Member Avatar for iwanna4get

The second parameter must be a web address, like in the examples in [this article](http://msdn.microsoft.com/en-us/library/dfkdh7eb(v=vs.90).aspx). Why would you want to use that function just to copy a file from one place to another on your own computer?

Member Avatar for iwanna4get
0
231
Member Avatar for flony

Do you have 32-bit or 64-bit version of MySQL? Check the program's platform to make sure it is the same as version of MySQL. If they are different you will have to change the program's platform ![3c2f9dffecb4c334156fc0bf546aed5c](/attachments/large/0/3c2f9dffecb4c334156fc0bf546aed5c.png "3c2f9dffecb4c334156fc0bf546aed5c") to match the library you are trying to link to.

Member Avatar for Ancient Dragon
0
186
Member Avatar for Williams2222

One way to do it is to create an array of pointers, each pointer points to a node in the linked list. Then sort that array of pointers, swapping the data in the nodes of the linked list, not the pointers. If each node contains several data items then change …

Member Avatar for Ancient Dragon
0
830
Member Avatar for cambalinho

>2 - why some people adive me use '{' after function\class name and not in next line? I used to put { on the same line as function/class name, but was often difficulty to match { and } braces, so I started putting { on the next line all by …

Member Avatar for cambalinho
0
249
Member Avatar for cambalinho

> Created() function without nothing and can be changed outside of class It can not be change by anything outside the class unless it is a child class of the class in which Created() is declared. Then it's called inheritence. For example you inherit certain traits from your parents, but …

Member Avatar for cambalinho
0
199
Member Avatar for Oliver_1

After you cd to where you think Motto.cpp is locted, do dir command to make sure the file is where you think it is. The file needs to be in the current working directory.

Member Avatar for Ancient Dragon
0
188
Member Avatar for Goldfinch

MySQL is supported on many platforms ([link](http://www.mysql.com/support/supportedplatforms/database.html))

Member Avatar for Goldfinch
0
174
Member Avatar for Ancient Dragon

People are legally allowed to use a ripper to make copies of dvds and blu-ray movies as long as they do not give or sell them to other people or send them anywhere over the internet. I've finished ripping all my movie collection onto a 3 TB external hard drive, …

Member Avatar for Reverend Jim
0
411
Member Avatar for shahab.burki_1

After you enter an integer you press the Enter key, right? Well, scanf() doesn't remove that key, so it remains in the keyboard buffer. When you enter a number, scanf() will ignore white space until it reaches the first numeric digit then stop reading the keyboard when it reaches a …

Member Avatar for <Anurag>
0
662
Member Avatar for <M/>

Most of us older folks lived our entire lives without a phone attached to our bodies, so what we never had we never miss. I have a cell phone (not a smartphone) but rarely carry it with me. The only reason I even have the damned thing is so that …

Member Avatar for vegaseat
0
424
Member Avatar for KEN7977

What operating system are the computers running? Are the computers network cabeled or wifi? How about the environment -- fairly quiet like an office or very noisy like in a manufacturing facility? I've known noise to interver with cabled systems, don't know about wifi. Electrical lines (wiring) may also cause …

Member Avatar for KEN7977
0
393
Member Avatar for spider2vb

If you make the key field(s) of the table non-duplicate then your program won't need to check for duplicates because the database will return an error.

Member Avatar for ReyJEnriquez
0
1K
Member Avatar for Dani

Seems to be working ok as far as I can tell. Hover the mouse over a link and I see the correct thumbnail.

Member Avatar for Dani
4
418
Member Avatar for diafol

I've seen the same problem -- just happened today and lost some of the edits so I had to go back and edit again. I have to refresh the page after each edit -- which is a real pain in the ass.

Member Avatar for Ancient Dragon
2
500
Member Avatar for Xakzi

Solution seems simple enough -- put the lines in a vector of strings instead of writing them to a file. Build a string by adding characters one as a time as they are read and decrypt. When '\n' is reached then you know that's the end of the line and …

Member Avatar for Ancient Dragon
0
464
Member Avatar for mahaveer somani

The End.