15,300 Posted Topics

Member Avatar for MiketheBook

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.

Member Avatar for SaintAce
0
245
Member Avatar for umaradam
Member Avatar for rashad fares

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

Member Avatar for Ancient Dragon
0
155
Member Avatar for beastie805

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.

Member Avatar for Ancient Dragon
0
193
Member Avatar for glao

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.

Member Avatar for Suzie999
0
456
Member Avatar for Im_Numma_One
Member Avatar for Sinan_2

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?

Member Avatar for BobS0327
0
2K
Member Avatar for uday.raj.73345

>//what would be output of this program. Why don't you compile it, run it and see for your self what the output is.

Member Avatar for Schol-R-LEA
0
99
Member Avatar for Traffkk

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.

Member Avatar for Ancient Dragon
-2
160
Member Avatar for lena1990

That appears to be a tarball, but it has no extension so I don't know how to extract it.

Member Avatar for lena1990
0
315
Member Avatar for Rahul47

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

Member Avatar for N1GHTS
0
222
Member Avatar for Alxprog

Then it would be this: `TabPage^ tabPage3 = gcnew System::Windows::Forms::TabPage();` >I use VS2008. Upgrade your compiler.

Member Avatar for Alxprog
0
234
Member Avatar for smitsky
Member Avatar for smitsky
0
209
Member Avatar for Alxprog

What compiler are you using with QT? If it's gcc then probably not because the binary libraries are different.

Member Avatar for Alxprog
0
127
Member Avatar for huzeifa

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.

Member Avatar for Ancient Dragon
0
4K
Member Avatar for javed.iqbal.3979

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 …

Member Avatar for Ancient Dragon
0
520
Member Avatar for N1GHTS

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.

Member Avatar for N1GHTS
0
244
Member Avatar for pars99

If it's anything like gcc then `-o myfile` in the makefile link statement should do it.

Member Avatar for pars99
0
162
Member Avatar for TaylorS

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.

Member Avatar for Ancient Dragon
-1
233
Member Avatar for Rootz

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.

Member Avatar for Ancient Dragon
0
253
Member Avatar for M_I_K_E_911

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 …

Member Avatar for M_I_K_E_911
1
353
Member Avatar for codey666

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 …

Member Avatar for codey666
0
311
Member Avatar for jkhippie

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.

Member Avatar for jkhippie
0
249
Member Avatar for Fillipus
Member Avatar for rubberman
0
172
Member Avatar for ponnan

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.

Member Avatar for rubberman
0
433
Member Avatar for willygstyle

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 …

Member Avatar for willygstyle
0
182
Member Avatar for nitish.mohiputlall

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

Member Avatar for Ancient Dragon
0
291
Member Avatar for DS9596

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 …

Member Avatar for Ancient Dragon
0
1K
Member Avatar for smitsky

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 …

Member Avatar for Ancient Dragon
0
223
Member Avatar for dancks

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.

Member Avatar for rubberman
0
201
Member Avatar for GiddyupGilbert

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

Member Avatar for GiddyupGilbert
0
266
Member Avatar for Rootz

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

Member Avatar for Rootz
0
841
Member Avatar for nikiki

I was thinking that too -- I have a Chinese medical doctor whose last name is Hu.

Member Avatar for Momerath
0
189
Member Avatar for vacuum

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

Member Avatar for Ancient Dragon
0
534
Member Avatar for Wiebren

[Here](http://www.codeproject.com/Articles/3598/Drag-and-Drop-files-from-Windows-Explorer-to-Windo) is a C# drag & drop from FileExplorer tutorial

Member Avatar for Ancient Dragon
0
156
Member Avatar for wayne.nishant

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 …

Member Avatar for Daemon_CC
0
2K
Member Avatar for DkgMarine

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 …

Member Avatar for Banfa
0
262
Member Avatar for alagez

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 …

Member Avatar for alagez
0
195
Member Avatar for jtjudge

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

Member Avatar for Ancient Dragon
0
324
Member Avatar for cambalinho

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 …

Member Avatar for cambalinho
0
290
Member Avatar for Transcendent
Member Avatar for Pilot122x

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.

Member Avatar for Bandarigoda123
0
562
Member Avatar for DkgMarine

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 …

Member Avatar for DkgMarine
0
2K
Member Avatar for wafadz

Do you have a windows repair disk? Did you make backup before you started screwing up your computer?

Member Avatar for wafadz
0
247
Member Avatar for kent.johnstone_1

Probably the parentheses on line 1. Remove them and see if it compiles. `#define GetSystemClock 200000000UL` Same with line 3 `#define GetPeripheralClock GetSystemClock`

Member Avatar for kent.johnstone_1
0
252
Member Avatar for mxwarning
Member Avatar for Learner010
0
256
Member Avatar for saif.shafqat.5

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

Member Avatar for Ancient Dragon
0
324
Member Avatar for ddanbe

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.

Member Avatar for jwenting
0
734
Member Avatar for cambalinho

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.

Member Avatar for cambalinho
0
291
Member Avatar for iblanq

you mean after your program exists? run your program in a console window instead of from within the IDE.

Member Avatar for Ancient Dragon
0
320

The End.