15,300 Posted Topics
Re: Probably the single most famous in USA would be the Grand Canyon. | |
Re: 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 the Next button is pressed, increment the counter, if it exceeds the number of questions then reset it to 0 … | |
Re: >But when i compile the program it give the error: what Error(s)? post the error messages what compiler and operating system are you using? | |
Re: move line 27 down to line 38 because you are throwing out the first token in the string. | |
Re: There are [many kinds of barcodes](http://en.wikipedia.org/wiki/Barcode) -- some contain more information than others. [RFID ](http://en.wikipedia.org/wiki/Radio-frequency_identification)contains the most information, such as nearly everything about the product (manufacturer, dates, shipping info, just to name a few). The person or company generating the barcodes determine what information the barcode contains. The most common … | |
Re: what grid? c++ doesn't support grids natively. We need more info about your compiler, operating syste, and GUI library. | |
Re: Do you have a question? | |
Re: b is a pointer to a vector, not to a Matrix2. vector's don't have transpose() method. `myMtrix2[0].transpost()` may be what you want. Or if you want to call that method for each Matrix2 in the vector for(auto x : myMatrix2) { x.transpost(); } The above requires c++11 compiliant compiler, and … | |
Re: move lines 43 and 44 up between lines 40 and 41 so that they are within the if statement that start on line 27. The way it is now you are re-writing the struture whether it needs to be changed or not. Only write the structure if something has been … | |
Re: contrary to popular belief, the Earth is flat and the sun revolves around it. The Earth is also only 10,000 years old. | |
Re: I prefer ebook because I can change the font size to whatever I like, because ebooks aren't as heavy as paper books, and because people don't chop down any trees to create ebooks. | |
Re: unless MSDN says otherwise, controls don't work with them. You have to expand those yourself before sending text to the control. | |
Re: >>Is there a fix? Yes -- don't install that on Vista. Most old compilers don't work very well, if at all, on Vista. The good news is that you can download the newest version VB 2008 Express free from [URL="http://www.microsoft.com/express/vb/"]here[/URL]. | |
Re: More than likely the same problem as other very old compilers, such as vc++ 6.0. Upgrade the compiler -- VB 2008 Express is free, but I don't know if that version will do what you want it to do. | |
Re: Here in midwest USA its very hot -- 7 straight days of +100 temps and no rain. Pretty typical for this time of year. | |
Re: Is that in response to a program you wrote? What compiler did you use? there are many ways to figure out where the problem lies -- one way is to put a bunch of print statements everywhere so that you can see where the program stopped when the error message … | |
Re: Have you tried ADOCE DLL? I haven't used it in several years now but it worked about 10 years ago. | |
It takes an unusually long time for PFO to respond to link clicks. I don't think it's my computer because DaniWeb and other sites are ok. | |
Re: I heard a couple years ago Santa is no longer allowed to say HoHoHo because Ho is synonymous with Hore (prostitute). | |
Re: >Note:I dont know anything about c++. Good luck! Do you know anthing about programming at all? If not you are in very deep cow dodo. | |
Re: [Link](http://qt-project.org/) | |
Re: Yellow Submarine | |
Re: Your program is doing way too much work! There's an easier way to do it. The code below does NO error checking so you might want to add that. ifstream myfile("CS DataSet.txt"); std::string line; int nums[20][5]; int row = 0; int col = 0; while( myfile(line,',') { nums[row][col] = atoi(line.c_str()); … | |
Re: start out simple. First just write a progam thad declares an array of 20 floats. The expand the program to fill the array with 20 values. Once you get that done and tested you can continue the problem a little bit at a time. This is called "divide and conquer" … | |
Re: Just get the port number from the user then format a string, something like this. The code may not be exactly correct, I didn't test it. int port = 0; cout << "Enter port number\n"; cin >> port; stringstream str; str << "\\\\.\\Com"; str << port; CreateFile(str.str(), ... ); | |
Re: 1. Item One 2. Item Two 3. Item Three Log.i(MainActivity.class().getSimpleName(), SOME_MESSAGE); //info Log.d(MainActivity.class().getSimpleName(), SOME_MESSAGE); //debug Log.w(MainActivity.class().getSimpleName(), SOME_MESSAGE); //warning Log.e(MainActivity.class().getSimpleName(), SOME_MESSAGE); //error >List followed by code snippet does not render properly. Example You're right. The Log... lines are in Code block but have no line numbers. | |
Re: AFAIK masm only works with \*.lib libraries built with Microsoft compilers or other compilers that create libraries in that format. Download and isntall the free Visual Studio 2013 Express. >ont libraries consist of header files? They are compiled \*.c files. You will have to create the header file manually yourself … | |
Re: [Tutorial here](http://www.homeandlearn.co.uk/NET/vbNet.html) | |
Re: I would think `ab^4c^2-d/m-n` would be interpreted liks this: where ^ is power operation `a*(b^4)*(c^2)-(d/m)-n` In none of the math courses I took (or recall) did ^ represent bit operation. I only learned that when studying computer programming. ![]() | |
Re: Are you sure "sum up two arays" means `a[tid] + b[tid]` instead of one thread sums the values of array a and the other array sums the values in array b? | |
Re: You're talking about MS-Windows, right? You can easily get the file info in a C program (or another language) by calling win32 api function [FindFirstFile](http://msdn.microsoft.com/en-us/library/windows/desktop/aa364418(v=vs.85).aspx)() and [FindNextFile](http://msdn.microsoft.com/en-us/library/windows/desktop/aa364428(v=vs.85).aspx)(). They both fill in a structure that you pass to the functions that contains all the data. You can rename a file by … | |
Re: declaration of character arrays in C is like this: `char var1[] = "1F 19 03 04 09 18 10"` Or if you want a pointer instead of an array `char* var1 = "1F 19 03 04 09 18 10"` There are several ways to convert "1F190304091810" to "1F 19 03 … | |
![]() | Re: The first thing you should do is learn about tennis scoring rules. google for "tennis scoring rules" and you will come across [this site](http://tennis.about.com/cs/beginners/a/beginnerscore.htm), among several others. ![]() |
Re: If you want to replace an existing line then you need another temp file. You can't just simply replace an existing line in a text file because the length of the old and new lines may not be the same. If you attempt to do it anyway you will wind … | |
Re: printf("\rLoading ..."); // after timer expires printf("\r "); The "\r" moves the cursor back to the beginning of the line without changing lines. | |
| |
Re: All the code from lines 27 to 45 needs to be outside the loop started on line 21. You don't want to do all those calculations until the entire file has been read into the array. while( project >> myFile[num] ) { num++; } // now do all the calculations … | |
Re: ptr[i] is not a pointer, so you need to use the dot operator . SetState() only needs one parameter, now twom In main() you would write this: for(int i = 0; i < 100; i++) A[i].setState(n); And setState() simplifies to just one line void State::setState(int num) { *state = num; … | |
Re: Install [CCleaner](http://www.software-watcher.com/listing/121963/CCleaner?did=10940&pid=1&ppd=search,38695043435,ccleaner,e,,c,0,,,&gclid=CPaVnu61ib4CFahAMgodNTEARw) -- it do0es a pretty good and thorough job at removing junk (e.g. temp) files, unneeded cookes, and other things. | |
Re: Is Dict storing just the pointer address passed to it by addWord()? If yes, then that would explain why passing string literals such as "dog" and "cat" works while passing a character array doesn't. Dict needs to duplicate the string within the class so that the class has it's own … | |
Re: > got mad because of this quation Why? because you think it is too difficult? As with most programs just do it a little bit at a time. In this case the first step would be to create a menu in main(), when read all the data from the file … | |
Re: move the function starting on line 28 into a \*.cpp file -- you can't put executable code in header files because the compiler will duplicate the code in each \*.cpp file that uses the header file. | |
Re: that doesn't work if your program does not have a message pump. I've never tried it in a dll but I do know it doesn't work in a standard C/C++ language console program. You might want to write a small C windows program that tests your dll to see if … | |
Re: >I was a clean install all right. If you did a clean install then the installer should have reformatted the hard drive before installing 64-bit Windows 7. If you have c:\windows.old then you did not do a clean install. Many (but not all) the 32-bit drivers/programs you had may not … |
The End.