15,300 Posted Topics

Member Avatar for omnik123
Member Avatar for Turismosan

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 …

Member Avatar for kamilacbe
0
205
Member Avatar for ashesh1708

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

Member Avatar for Moschops
0
445
Member Avatar for MasterHacker110

move line 27 down to line 38 because you are throwing out the first token in the string.

Member Avatar for MasterHacker110
0
323
Member Avatar for Learner010

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 …

Member Avatar for Pregger
0
209
Member Avatar for Ganesh_7

what grid? c++ doesn't support grids natively. We need more info about your compiler, operating syste, and GUI library.

Member Avatar for Ancient Dragon
0
106
Member Avatar for sileshi nibret
Member Avatar for mcodesmart

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 …

Member Avatar for pappu.thakare.5
0
302
Member Avatar for Ace7z

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 …

Member Avatar for Ancient Dragon
0
176
Member Avatar for Reverend Jim

contrary to popular belief, the Earth is flat and the sun revolves around it. The Earth is also only 10,000 years old.

Member Avatar for Reverend Jim
0
433
Member Avatar for ckide

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.

Member Avatar for hericles
0
377
Member Avatar for DeneyimszDenek
Member Avatar for cambalinho

unless MSDN says otherwise, controls don't work with them. You have to expand those yourself before sending text to the control.

Member Avatar for cambalinho
0
136
Member Avatar for <M/>
Member Avatar for JimH13

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

Member Avatar for arndtwc
0
624
Member Avatar for CorradoC

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.

Member Avatar for HDJper999
0
657
Member Avatar for iAssistant

Here in midwest USA its very hot -- 7 straight days of +100 temps and no rain. Pretty typical for this time of year.

Member Avatar for Stuugie
0
4K
Member Avatar for Stefan_2

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 …

Member Avatar for Ancient Dragon
0
224
Member Avatar for riahc3

Have you tried ADOCE DLL? I haven't used it in several years now but it worked about 10 years ago.

Member Avatar for riahc3
0
1K
Member Avatar for amavikmukherjee
Member Avatar for Ancient Dragon

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.

Member Avatar for Ancient Dragon
0
149
Member Avatar for RikTelner

I heard a couple years ago Santa is no longer allowed to say HoHoHo because Ho is synonymous with Hore (prostitute).

Member Avatar for jwenting
0
233
Member Avatar for Adem_1

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

Member Avatar for Ancient Dragon
0
415
Member Avatar for sankubha
Member Avatar for anupam_smart
Member Avatar for asia_6969

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()); …

Member Avatar for Ancient Dragon
0
396
Member Avatar for masimba81

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

Member Avatar for richieking
0
132
Member Avatar for marirs07

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(), ... );

Member Avatar for BobS0327
0
393
Member Avatar for peter_budo

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.

Member Avatar for Dani
3
236
Member Avatar for pspwxp fan

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 …

Member Avatar for Ancient Dragon
0
2K
Member Avatar for glamiex
Member Avatar for tirumalai
Member Avatar for Reverend Jim
0
89
Member Avatar for Himanshu Chawla

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.

Member Avatar for iamthwee
0
241
Member Avatar for ivan3510

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?

Member Avatar for ivan3510
0
4K
Member Avatar for JOSheaIV

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 …

Member Avatar for JOSheaIV
0
200
Member Avatar for Stefan_2

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 …

Member Avatar for Stefan_2
0
357
Member Avatar for Dave_5

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.

Member Avatar for Dave_5
0
627
Member Avatar for chozotheqhai

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 …

Member Avatar for rubberman
0
326
Member Avatar for dawibob

printf("\rLoading ..."); // after timer expires printf("\r "); The "\r" moves the cursor back to the beginning of the line without changing lines.

Member Avatar for dawibob
0
139
Member Avatar for Pinky_1
Member Avatar for chubbyy.putto

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 …

Member Avatar for Ancient Dragon
0
178
Member Avatar for ngashy.litoh
Member Avatar for newbiewwcode

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

Member Avatar for newbiewwcode
0
207
Member Avatar for Mhayt
Member Avatar for svsathyavishnu

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.

Member Avatar for Daemon_CC
0
192
Member Avatar for bejfake

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 …

Member Avatar for bejfake
0
243
Member Avatar for Mhayt

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

Member Avatar for Ancient Dragon
0
244
Member Avatar for Sarkurd

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.

Member Avatar for Sarkurd
0
384
Member Avatar for Bertram

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 …

Member Avatar for vijitris
0
2K
Member Avatar for Robert_18

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

Member Avatar for Robert_18
0
264

The End.