15,300 Posted Topics
Re: 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 … | |
Re: 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 … | |
Re: us should not take any military action, that's what united nations for. | |
Re: 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. | |
Re: >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? | |
Re: 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; } | |
Re: We don't do homework. [Here is a hint](http://lmgtfy.com/?q=get+host+from+ip). | |
Re: 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 … | |
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 … | |
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 … | |
Re: 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. | |
Re: 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. | |
Re: Sorry, I don't like the looks of it -- looks like something from the 1980's. Notepad++ is much better. | |
Re: depends on the operating system. | |
Re: 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. | |
Re: 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. | |
Re: >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" | |
Re: 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 … | |
Re: 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" | |
Re: 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 :) | |
Re: Hummm -- where is there an "Insert with the Quote editor button"? I can't find it. | |
Re: > 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 … | |
Re: An Android app! Most of the forums I visit are based on vBulletin. DaniWeb is already better than any of them. | |
Re: 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) | |
Re: 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 … | |
Re: 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". | |
Re: 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) … | |
Re: 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. | |
Re: 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, … | |
Re: I couldn't get it to install either on Windows 7  | |
Re: 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 … | |
Re: >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. | |
Re: 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); }; | |
Re: 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 … | |
Re: 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? | |
Re: 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  to match the library you are trying to link to. | |
Re: 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 … | |
Re: >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 … | |
Re: > 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 … | |
Re: 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. | |
Re: MySQL is supported on many platforms ([link](http://www.mysql.com/support/supportedplatforms/database.html)) | |
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, … | |
Re: 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 … | |
Re: 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 … | |
Re: 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 … | |
Re: 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. | |
Re: Seems to be working ok as far as I can tell. Hover the mouse over a link and I see the correct thumbnail. | |
![]() | Re: 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. |
Re: 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 … | |
Re: [See this Microsoft article](http://support.microsoft.com/kb/302094) |
The End.