15,300 Posted Topics

Member Avatar for Mike Askew

It will also depend on your network connection speed. I'm also using Chrome, my rep graph is pretty large, and my profile page loads with no problems. Maybe there should be an option to turn off that graph so that people with slow connections don't have to wait so long.

Member Avatar for Mike Askew
0
216
Member Avatar for binaryjc

I don't quite understand how the data is to be sorted. Is it according to column 2 minus the value of column 3?, for example for Kelvin it would be 170-58 = 112 Put the data into a structure then sort the structures struct data { char name[20]; int a1; …

Member Avatar for WaltP
0
262
Member Avatar for jorgmen

Generally GUI programs can have other threads that do background work such as performing long calculations. Post your program and compiler's error messages that you can't get to work and we will see how to help you.

Member Avatar for np complete
0
153
Member Avatar for silvercats

The best way is to use portable libraries such as QT and boost. That way you write just one program without all those preprocessor statements. There are quite a few cross-platform libraries to choose from, which one you choose will depend on what you are trying to accomplish. I've heard …

Member Avatar for Ancient Dragon
0
278
Member Avatar for cih1091

You need to create a structure that holds the information for one person, then create an array of those structures. As the file is read you will populate each of the structures in the array. After file reading is finished, you need to sort the array of structures. There are …

Member Avatar for WaltP
0
116
Member Avatar for zeppelyn

I used vc++ 2012 RC to debug the program. The problem is that the value of elm in function eval() is '\0' and the switch statement doesn't handle that value so it returns crap since you didn't initialize the return variable. The string returned by in_to_post() has an embedded '\0' …

Member Avatar for Ancient Dragon
0
646
Member Avatar for ilvanhellovan

>You can do what deceptikon suggested or just declared the string as Almost right, you need to surround string literals with _TEXT() macro or _T() macro, they are both the same. TCHAR temp[10] = _TEXT("abcd");

Member Avatar for deceptikon
0
2K
Member Avatar for nitin1

maybe [this will help you](http://stackoverflow.com/questions/9043805/test-if-two-lines-intersect-javascript-function)

Member Avatar for rithish
0
94
Member Avatar for GrimJack

My sister -- she is still alive but I've always looked up to her as if she were a Goddess.

Member Avatar for GrimJack
3
534
Member Avatar for LukeJames

Hummm -- I think Dani needs to sue Microsoft for about $10 Billion because DaniWeb had that color scheme first.

Member Avatar for JorgeM
0
229
Member Avatar for binaryjc

You won't find anyone here who will write your program for you, so you might as well try to do it then post the questions you have.

Member Avatar for binaryjc
-1
175
Member Avatar for kgal

lines 22-27: if statements that have more than one line require { and } around them. line 24: use a different variable because j is used as loop counter on line 22. line 25: That line does nothing. You need something like this: A[j][i] = X; where X is the …

Member Avatar for kgal
0
116
Member Avatar for mkaynutty

line 40: That ctr is expecting a double as the last parameter, not a pointer. Remove the & before RetailPrice.

Member Avatar for Ancient Dragon
0
185
Member Avatar for delta_frost

what you need to solve that problem is to study is [probability theory](http://en.wikipedia.org/wiki/Probability_theory), not computer science. Pay attention to the section Discrete probability distributions

Member Avatar for TrustyTony
0
181
Member Avatar for hg_fs2002

Your macro is wrong \#define BUFFEFR_SIZE 5 You don't put a variable name in the macro char buf = BUFFER_SIZE;

Member Avatar for deceptikon
0
220
Member Avatar for triumphost

line 18: can't do that because there is no memory allocated for the vector. Data.push_back(Pixels[(Foo.Height() - 1 - I) \* Foo.Width() + J].RGBA.B); If you can calculate the size needed beforehand, then call Data.Resize(X) to allocate all the memory at one time, then I think the rest of your program …

Member Avatar for triumphost
0
400
Member Avatar for mharks.newton

Without better formatted code I can only guess the problem is mismatched { and }.

Member Avatar for Ancient Dragon
0
201
Member Avatar for 88GzPopLock88

line 26: never, ever for any reason call main() from within your program. That function is reserved for call by the operating system, not your program. Instead, add a loop around all that code. line 33: syntax error because that line isn't inside any function, at least I don't think …

Member Avatar for Ancient Dragon
0
313
Member Avatar for 88GzPopLock88

The screen shots are unreadable -- copy and paste your code into DaniWeb's code editor so that we can see it better.

Member Avatar for Ancient Dragon
0
290
Member Avatar for DelilahDemented

It's not a pointer problem, just output problem. Try adding fixed to cout outFile << "Value: " << fixed << company[i].budget_value << endl;

Member Avatar for DelilahDemented
0
213
Member Avatar for Reverend Jim

Or you could just write your own program. What's so difficult about writing a program that does nothing more than blindly split a file into small chuncks? It could be written in maybe 15 minutes. Of course people who don't know how to program couldn't do that, but that's not …

Member Avatar for Reverend Jim
0
335
Member Avatar for porkchop7
Member Avatar for Ancient Dragon
0
93
Member Avatar for RonKevin

If you marked the thread solved and later find that you have more questions about the same topic you can change the thread to unsolved then continue the discussion.

Member Avatar for WaltP
0
199
Member Avatar for DelilahDemented

there is no such index value as company[15], the indices are numbered 0, 1, 2, ... 14. A safer loop is to use integer, not pointer, in the for statement. Attempting to use ptr like you did is not safe because it depends on how the computer's memory is laid …

Member Avatar for Ancient Dragon
0
394
Member Avatar for nitin1
Member Avatar for zoomblue2000

are those hex values? Are you certain there is a comma between words? e.x. 0010 and 0440? One way to do it if with int ival; fscanf(%x", &ival);

Member Avatar for zoomblue2000
0
293
Member Avatar for vicky30312

>warning C4244: You are getting that because the program is assigning a double to an int -- for example assigning a double value to Mercury. That's not really a problem unless you expect Mercury to have fractions. The way to remove such warnings is to convert the result of the …

Member Avatar for Ancient Dragon
0
278
Member Avatar for mbasit

1. PC, mem_CARD, soft_WARE, and disk_DRIVE should be an int, not double because you can't by a fraction of those items, whole numbers only. Use the data type that is appropriate for the thing you want it to represent. >mem_CARD + MEMORY_CARD You need to multiply those numbers, not add …

Member Avatar for mbasit
0
330
Member Avatar for Iamateur

>So,the coding will be compare all integers with 0 and save according in two different files right? Correct. >If I am right then how to store it in files? See FILE\* file handling functions (a tutorial is [here](http://www.functionx.com/cpp/articles/cfileprocessing.htm)). >Can we save it in already existed file? Yes, see the above …

Member Avatar for Iamateur
0
139
Member Avatar for RonKevin

I compiled your program with vc ++ 2012 and, after changing a couple things to make it compatible with new compilers, it worked as expected for me. I don't have Turbo C so I can't tell you if its your compiler or not that is causing the problem. Or maybe …

Member Avatar for RonKevin
0
360
Member Avatar for logic20
Member Avatar for enakta13

>But HOW? I have no idea -- ask your teacher how to drive the priority list from the matrix. >>main() Learn to program correctly -- it's int main(), not just main(). There is int before the function name.

Member Avatar for TrustyTony
0
162
Member Avatar for sampsont

There is no difference as far as efficiency, references are actually implemented as pointers. The difference is in safety because references can not be changed once set.

Member Avatar for Ancient Dragon
0
212
Member Avatar for ArYan.AgRwl

Use two loops, one nested inside the other. The outermost loop counts rows (1-5) and the inner loop counts from 0 to the value of the outer loop.

Member Avatar for deceptikon
0
84
Member Avatar for Tintso

You don't. The computer that is running the vb program must also have the Access odbc device driver and the Access database file. If you mean you want to call Access from your vb program then read one or more of [these tutorials](http://www.google.com/#hl=en&sugexp=les%3B&gs_nf=1&gs_mss=vb%206.0%20Ac&cp=13&gs_id=1g&xhr=t&q=vb%206.0%20Access%20database%20connection&pf=p&output=search&sclient=psy-ab&oq=vb+6.0+Access&gs_l=&pbx=1&bav=on.2,or.r_gc.r_pw.r_qf.&fp=53a17e24ef004a70&biw=1032&bih=493)

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

yes. See [ODBC tutorials](http://www.easysoft.com/developer/languages/c/odbc_tutorial.html) and [SQL tutorials](http://www.google.com/#hl=en&sclient=psy-ab&q=sql+tutorial+for+beginners&oq=sql+tutorial&gs_l=hp.1.2.0l4.1365.3364.0.6307.12.8.0.3.3.0.103.632.7j1.8.0.les%3B..0.0...1c.1.e_9JdH05sH0&pbx=1&bav=on.2,or.r_gc.r_pw.r_qf.&fp=53a17e24ef004a70&biw=1035&bih=493)

Member Avatar for Ancient Dragon
0
121
Member Avatar for bdl365

Why use an array? Just sum the numbers as they are entered then print the result when finished, no need to keep them. start of loop enter a number if number less than 0? if yes then exit the loop sum = sum + value of number entered end of …

Member Avatar for bdl365
0
2K
Member Avatar for Ancient Dragon

I've noticed for some time now that the ribbon frequently is not fully visible as if it is getting painted below the bottom of the browser's window. If I change larger font size (Ctrl+mouse wheel) it shows up again, making font smaller it disappears again. I'm jusing Chrome. It works …

Member Avatar for Ancient Dragon
0
131
Member Avatar for Labdabeta

You want to call the win32 api funcgtion GetOpenFileName(), [here's ](http://www.daniweb.com/software-development/cpp/code/217307/a-simple-getopenfilename-example)an example program. You can call it from a standard console program that uses main() if you wish instead of from a win32 program that uses WinMain()

Member Avatar for Ancient Dragon
0
257
Member Avatar for Koji01

use fgets() to read an entire line at one time. But since you are using c++ you really need to learn the <fstream> and <string> library fuctions. #include<stdio.h> #include<conio.h> #include<stdlib.h> #include<string.h> int main() { FILE *fp1; char line[255]; fp1=fopen("data1.txt","r"); while(fgets(line, sizeof(line), fp1) != NULL) { printf("%s ",line); } fclose(fp1); printf("\n\n"); …

Member Avatar for Koji01
0
236
Member Avatar for ilvanhellovan

win32 api has no function that reads one line at a time such as fgets() and getline() do, instead they do binary reads similar to fread() and fstream.read(). If you want to read a file in text mode then don't use win32 api functions but standard C or C++ file …

Member Avatar for Ancient Dragon
0
221
Member Avatar for DizaFire

nitin1 is correct, the question is not c or c++ related, but how to use a modem.

Member Avatar for rubberman
0
122
Member Avatar for kabir383

>Everyone makes mistakes, it's a fact of humanity. I only made one mistake in my life, that was when I thought I was wrong, but I was wrong about that.

Member Avatar for woooee
0
178
Member Avatar for addicted

[URL="http://www.codexxi.com/MyBlocks.html#atConsoleObj"]Here's[/URL] another link that may interest you.

Member Avatar for Bob
0
2K
Member Avatar for Swati_1

\n is an escape character that moves the cursor to a new line \b is backspace \r moves the cursor back to the beginning of the current line So if you use pencil & paper to draw the characters on paper and follow the above escape characters you will see …

Member Avatar for np complete
0
133
Member Avatar for Stpdoug

If you are printing the results to the screen, post the code that prints it. It might be just a display problem instead of a problem with the data.

Member Avatar for Stpdoug
0
287
Member Avatar for PinoyDev

Which version of vc++ Express did you install? Earlier versions did not contain windows.h or related headers/libraries, you had to also download windows SDK. Microsoft includes all that with version 2008 (I think that was the version). If you have the older version then uninstall it and download the latest …

Member Avatar for Ancient Dragon
0
319
Member Avatar for tspga
Member Avatar for tspga
0
319
Member Avatar for edgar5

[Here](http://stackoverflow.com/questions/7625421/minimize-app-to-system-tray) is C# way to do it, which is almost identical to CLR/C++ (which you are writing).

Member Avatar for edgar5
0
209
Member Avatar for Tinnin

What compiler are you using? Learn to use your compiler's debugger so that you can step through the program and find out for yourself what is causing the problem.

Member Avatar for Tinnin
0
289

The End.