15,300 Posted Topics
Re: download [memtest32](http://www.memtest.org/). You will have to put it on a bootable disk or DVD then boot from that. It performs a very thorough check of the computer's RAM. You will probably have to download it from some other computer and burn the iso file to DVD. | |
Re: x % 10 will return the right most digit, for example if x = 15 then x%10 will return 5. Now put that in a loop, divide x by 10, to get all the digits | |
Re: line 124: **Tests** is an uninitialized pointer, attempting to read something into that pointer is destined to fail. Same with **TestNo** on line 133 -- no memory has been allocated to that pointer either. | |
Re: If you are using a multi-process operating system such as MS-Windows or \*nix there are lots of things outside the control of your program that could cause such behavior, such as some other process could consume more CPU time, or the os might be flushing data to the file system. | |
Re: you could create an Android game or some other Android app. | |
Re: Are the values you put in lines 3-7 correct for the server you are trying to access (I assume you just posted dummy values here) ? Can you connect to the server manually? | |
Re: >//what would be output of this program. Why don't you compile it, run it and see for your self what the output is. | |
Re: Tutorials only scratch the surface of what you need to know about c++ language. If you really want to get into c++ programming then you will want to buy a good c++ book, such as The C++ Programming Language 4th Edition. [Here](http://www.daniweb.com/software-development/cpp/threads/70096/c-books) is a lengthy discussion about c++ books. | |
Re: That appears to be a tarball, but it has no extension so I don't know how to extract it. | |
![]() | Re: The environment variable is set for only the current process, it does not affect system-wide global environment variables. You can simulate the same problem by doing the same in a command window, close the window, open another window and inspecting the environment variable you tried to set the first time. … |
Re: Then it would be this: `TabPage^ tabPage3 = gcnew System::Windows::Forms::TabPage();` >I use VS2008. Upgrade your compiler. | |
Re: You can have a vector of vectors `vector< vector<MyClass> > printerList;` | |
Re: What compiler are you using with QT? If it's gcc then probably not because the binary libraries are different. | |
Re: IMO C and C++ are poor languages for doing web stuff. It will be a lot simpler to use a language that is suited for that kind of programming. | |
Re: there are probably several ways to calculate the mode, but I think the simplest was is to create another 2d array, but this time the 1st dim contains one of the numbers from the original 2d array and the second dim contains a count of the number of times it … | |
Re: Why make assumptions that may or may not be valid? Just do it the safe way and use a semaphore to synchronize access to the byte that contains those bits. | |
Re: If it's anything like gcc then `-o myfile` in the makefile link statement should do it. | |
Re: We don't do homework. You write code, you post the code, and you ask questions about what you don't understand. Show the work you have done and someone will help you finish it, but don't expect anyone to write it for you. | |
Re: The << operator overload has one simple task -- write to the stream that is the first parmeter to the function. If you add other things to the function then it is doing too much. | |
Re: C# is a nice language -- if you already know C++. As a first language I think c++ could be easier and faster to learn then C#. If you have never learned a programming language before there are lots of concepts that C# assumes you know. An intro course in … | |
Re: line 35: where is the array of curr->action ever set to anything other than NULL? Where is the value of max set (line 35) ? line 37: wrong delete. Since curr is not an array (see line 8) then that should be just `delete curr;` But that's not possible either … | |
Re: In c++ stucts can even have methods just like class. The only method I use in a struct is a constructor to initialize all the data. If you add other methods then you'd be better off just renaming the struct as class. | |
Re: what database are you using? What compiler and operating system? | |
Re: It's called a bootloader (see [this link](http://en.wikipedia.org/wiki/Booting)). I never wrote one, so I can't really help you out with that. | |
Re: line 11: What??? That like saying `while( 1 != 2)` You could just delete lines 11 and 13 without changing that function. unsigned int timer(){ clock_t t; t = clock(); unsigned int curtime = 0; return curtime += t; } And the above reduces to this: unsigned int timer(){ return … | |
Re: `name` is a single character, it is not an array (see line 7). Therefore you can only enter a one-character name. I doubt that is what you want. Also, Stud_Names is an array of pointers, so if you assign `names` to each pointer then all pointers will contain the same … | |
Re: I assume the array of winning digits can not contain duplicate numbers -- for example this would be illegal: 7 1 4 7 2 5 because the number 7 appears more than once. If that is correct, then you need to expand the loop on line 12 to check the … | |
Re: variable named tau is a static variable, which means all instances of the class share the same value of tau. It retains only the last value that was assigned to it, regardless of which class instance assigned it. So if you initialize tau to be 10, then assigned 2, only … | |
Re: diff is used to find the differences between two files. So you will need a copy of the file before the changes were made and a copy of the file after the changes were made. | |
Re: >I've always understood you go in and click to remove USB hardware from the computer, click what? Not saying that's wrong, but I don't know what youre supposed to click. | |
Re: >When I try to compile my code in visual basic 2010 it gives me the error 1903 I think you meant to say Visual C++ 2010 Error 1903 just means there were too many previous errors and the compiler gave up. Usually the first error is the most relevent. | |
Re: I was thinking that too -- I have a Chinese medical doctor whose last name is Hu. | |
Re: >I tried to use it in my MDI application, but I failed. Why did it fail? Did you get compile error(s)? Did the example demo program work? | |
Re: [Here](http://www.codeproject.com/Articles/3598/Drag-and-Drop-files-from-Windows-Explorer-to-Windo) is a C# drag & drop from FileExplorer tutorial | |
Re: line 17 is wrong. If you enter the string "Hello" why would you check all 100 bytes of the array when only the first 5 bytes are used? for(i = 0; i < 10; i++) { int len = strlen(z[i]); for(j = 0; j < len; j++) >i want the … | |
Re: You want to sort all the structures by score? If yes, which score? Say each instance of the structure contains 20 scores, which of those 20 scores do you want to use to sort all the structures? Or do you just want to sort all the scores within each instance … | |
Re: Have you seen any of [these examples](https://www.google.com/#q=c%23+serial+communication+example)? At some point you just have to bite the dust and learn how to manipulate the serial ports so that your program can communicate with whatever is on the other end of the serial cable. A pure OOP library is not going to … | |
Re: >I guess I have found the limit of a overload. That's not the problem. Lines 43-46 pass 5 arguments, line 11 wants 6. Remove the last argument on line 5 and make total local to that function. But what is that function doing with total? It's a useless variable that … | |
Re: CMyAxUICtrl is a class, not an instance of a class. >but it's used outside of main function: Do you mean it's used in some other function? main() has nothing to do with it. Looks to me what you posted is the implementation for OnDraw(). That's just normal c++. I wouldn't … | |
Re: The only way I know of is to rewrite the file before Notepad (or some other program) gets it. I doubt Notepad.exe has a hook where you can intercept the file that it reads. | |
Re: As sepp2k alreay said, you can malloc ptr because it's already an array of 100 pinters. Instead you will have to malloc each individual pointer for (i=0;i<=n;i++) { ptr[i] = malloc(sizeof(the_struct)); ... } >what type should it be so it could hold char and int? It holds the_struct which is … | |
Re: Do you have a windows repair disk? Did you make backup before you started screwing up your computer? | |
Re: Probably the parentheses on line 1. Remove them and see if it compiles. `#define GetSystemClock 200000000UL` Same with line 3 `#define GetPeripheralClock GetSystemClock` | |
Re: What compiler are you using? I don't get any errors with Visual C++ 2013. | |
Re: Let's say you enter the number 5. That means you need to print 5 rows and each row has 5 numbers. The first number on the row tells you how to show the numbers on that row, for example row 1 all the numbers are in sequence 1,2,3,4 and 5. … | |
Re: This discussion reminds me of the [Geritol fiasco](http://en.wikipedia.org/wiki/Geritol) a few years ago (1960s). I remember those Geritol commercials -- it was the cure for almost everything. | |
Re: Did you try[ DT_EXPANDTABS](http://msdn.microsoft.com/en-us/library/windows/desktop/dd162498(v=vs.85).aspx) ? >DT_SINGLELINE >Displays text on a single line only. Carriage returns and line feeds do not break the line. | |
Re: you mean after your program exists? run your program in a console window instead of from within the IDE. |
The End.