15,300 Posted Topics

Member Avatar for sneekula

>>Another number also considers people who are stuck in a low paying or a partime job. They are NOT unemployed! How can you possibly be considered unployed if you have a job and get a paycheck? There are many unemployed people who are not counted in the unemployment rate. The …

Member Avatar for GrimJack
0
478
Member Avatar for nexocentric
Member Avatar for nexocentric
0
194
Member Avatar for rstewar

line 19: missing closing } character to close out that if statement line 49: incrementing that pointer just destroyed the memory that was allocated on line 42. You must never change an allocated pointer. If you want to use pointer arithmetic (increment and decrement) then use a different pointer. I …

Member Avatar for Ancient Dragon
1
3K
Member Avatar for Aia

Are you sure about that 2,000/day? I have been here almost 4 years, and at that rate there should have been nearly 3,000,000 new members! On the otherhand it probably hasn't been 4 years since you started doing that.

Member Avatar for martin5211
0
315
Member Avatar for jephthah
Member Avatar for whitely

>>so English experts we want to listen from your expertise. That will not be me, but I will give you my opinion anyway :) There are hundreds of English language dialects, even in the USA there are quite a few. Fortunately, most of them can be understood by most people, …

Member Avatar for jephthah
-1
168
Member Avatar for DaveD3

>>I also don't know why every place there is a colon and capital D I am getting an emoticon. Yea -- click the Advanced button, scroll down to the checkbox Disable Smilies In Text. I fixed it for you. I think there were lots of changes between 2003 and 2005/8. …

Member Avatar for Ancient Dragon
0
107
Member Avatar for smitem03
Member Avatar for bkeenom

>> // not sure what goes here Neither do we since you didn't post enough of the class to know what is supposed to be returned. Its supposed to return a reference to something, but we have no idea what.

Member Avatar for bkeenom
0
130
Member Avatar for tasosa

[QUOTE=rm_daniweb;845354] 2. lack of "()" in sizeof(line) your code: while ( fgets ( line, sizeof line, file ) != NULL ) /* read a line */ should be --> while ( fgets ( line, sizeof(line), file ) != NULL ) /* read a line */[/QUOTE] What? sizeof doesn't always require …

Member Avatar for Ancient Dragon
0
166
Member Avatar for Sturm

[QUOTE=Sturm;840190]I think happygeek should change his name to happysuit. And dani should be happyhoe.[/QUOTE] In USA a [b]hoe[/b] i[URL="http://www.youtube.com/watch?v=QoMspJqqVcA&NR=1"]s a slang word for whore[/URL]. So are you calling Dani that?

Member Avatar for happygeek
0
186
Member Avatar for death_oclock

>>str[i++] &= 0xDF; //reset bit 5 Programming is not about trying to be cute, but about writing code that you and everyone else in the world can easily comprehend. [icode]str[i] = toupper(str[i]); ++i;[/icode]

Member Avatar for death_oclock
0
194
Member Avatar for Ancient Dragon

I came across [URL="http://www.daniweb.com/forums/thread15640.html"]this thread[/URL] from a few years ago. I was thinking I would like to put a small image in my signature, tried it but it didn't work. Is the policy (no gifs in sigs) still valid? Or did I do it wrong? Honestly I haven't see anyone …

0
60
Member Avatar for xgmx

[QUOTE=ahihihi...;844478]human race won't die as long as there are males[/QUOTE] what about nuclear war??? Or an huge asteroid hitting Earth ?? Or little green monsters from Mars ???

Member Avatar for sneekula
0
161
Member Avatar for amitonvoip
Member Avatar for marco93
0
175
Member Avatar for AlPhA

[QUOTE=jwenting;597930]End result: glassy-eyed supermarket cashiers who can't even add up.[/QUOTE] LOL: Not where I work -- we have to pass a first grade level math test before we can be hired as a cashier :) Yes, I remember hearing about those experimental schools -- they didn't last long.

Member Avatar for schoolsux
1
1K
Member Avatar for Stefano Mtangoo

in main.cpp, delete line 2 `#include "hello.cpp"`. NEVER EVER include a `*.c` or `*.cpp` file in another one like that. If main.cpp needs to know about that function, then just use extern keyword, like this: #include <iostream> using namespace std; extern int funny_words(); // blabla Also, funny_words() is declared to …

Member Avatar for Stefano Mtangoo
0
154
Member Avatar for WarB1rd
Member Avatar for zoner7

why bother using strncat() just to concantinate a single character? Seems such a waste of time. And in that loop [icode]K[k][0] = '\0'; [/icode] is always deleting the previous entry in the array. A much easier, and IMO, better approach to the problem is just keep another counter where the …

Member Avatar for jephthah
0
172
Member Avatar for Ancient Dragon

I'm using FF version 3.0.2 on 64-bit Vista. Every once in awhile it will just simply crash. I can restart and it will take me back to where it was when it crashed. Anyone know why it does that?

Member Avatar for Ancient Dragon
0
107
Member Avatar for saditam

Welcome to DaniWeb. Sorry, but this is not the place to post encryped messages or c++ code.

Member Avatar for saditam
0
15
Member Avatar for kha_504

>>can u help me Yes, but you have to explain a little more what you want and how we can help. For example, what is "final database ER" ?

Member Avatar for Ancient Dragon
0
53
Member Avatar for beschi

For MS-Windows you will [URL="http://www.microsoft.com/whdc/Devtools/wdk/default.mspx"]need this[/URL]. But you don't need to write a driver to do what you want -- there are win32 api functions that let your program monitor the file system. [URL="http://lmgtfy.com/?q=how+to+monitor+windows+file+system"]Here is a start how to do that[/URL].

Member Avatar for Ancient Dragon
0
112
Member Avatar for halfnode

How is that array declared in the class? Array's can't be initialized like that after they have been declared. After the array has been declared that is has to be initialized the hard way, like below. [code] TravelVoucher::exchItems[0]="Dinner for TWO at BestFood Restaurant"; TravelVoucher::exchItems[1]= "Buffet for TWO at EatTillDrop"; TravelVoucher::exchItems[2]= …

Member Avatar for siddhant3s
0
150
Member Avatar for #include_rose

scanf() with "%s" (see line 16 of your program), like its cousin gets(), should never ever in this lifetime be used for any purpose Its an evil function that will cripple your program and possibly crash the os. Instead, use fgets() which limits imput to the size of the input …

Member Avatar for jephthah
0
213
Member Avatar for BruenorBH

>>#include <afxres.h> That header file is only useful in Microsoft MFC programs. For Dev-C++ you might as well delete it.

Member Avatar for BruenorBH
0
312
Member Avatar for xVent

There's nothing to it [icode]MessageBox(NULL, "Hello This is a message box", "Help", MB_OK);[/icode]

Member Avatar for Ancient Dragon
0
187
Member Avatar for Ancient Dragon

"Hail to the Chief" sounds forth as the President of the United States arrives at any formal occasion Thought you might enjoy this version. :) [url]http://video.google.com/videoplay?docid=6185603495801760929[/url]

Member Avatar for GrimJack
0
73
Member Avatar for divineavatar

That's pretty much it in a nutshell. If you want to know exact details than I suppose you need to go to amazon.com and buy a book.

Member Avatar for jbennet
0
175
Member Avatar for oracle123

use the functions in time.h to get a struct tm, then use sprintf() to format the filename [code] char filename[255]; struct tm* tm; time_t now; now = time(0); // get current time tm = localtime(&now); // get structure sprintf(filename, "file_%02d%02d%04d", tm->tm_mon+1, tm->tm_day, tm->tm_year+1900); [/code]

Member Avatar for jephthah
0
4K
Member Avatar for RayvenHawk

I'm not sure I understand the format of the *.txt file. Will you post an example file? And the keyword file. What does it look like -- post sample lines from that file.

Member Avatar for RayvenHawk
0
90
Member Avatar for want_to_code

>>if(str1==str2) Can not compare two strings like that. use strcmp() [icode]if( strcmp(str1,str2) == 0)[/icode]

Member Avatar for Nick Evan
0
299
Member Avatar for r1ian2

Create 5 integers that will accumulate the counts for each vowel. [code] print prompt to enter string accept keyboard input into std::string or character array variable loop through each character in the string beginning of loop test for vowel if 'a' then increment a-counter else if 'e' then increment e-counter …

Member Avatar for ArkM
0
94
Member Avatar for everard

What I have done is create a structure with all the information I want exchanged between the two windows. When the 2nd window is created pass a pointer to the structure to the 2nd Window so that it can fill in the information. Once Window 1 regains control it will …

Member Avatar for everard
0
95
Member Avatar for lancevo3

>>I need to copy the name, addr, telephone, carinfo, payment array to the output array. How would I go about doing that use strcat() to concantinate c-style character arrays. You just need to make sure the destination string is big enough to hold all the strings you want to put …

Member Avatar for Ancient Dragon
0
111
Member Avatar for shea279

Its probably the DLLs. What version of os did you compile it on, and is it different than the one you tried to run it on? In the compiler's install directory you will see a folder named "redist", which contains the DLLs you may have to install with your program. …

Member Avatar for Ancient Dragon
0
600
Member Avatar for Niner710

I think that is beyond the scope of VC. Get an installation program, something like InstallShield should do it.

Member Avatar for ArkM
0
125
Member Avatar for ithelp

[quote]Dirty IT job No. 5: Ability to withstand a variety of environments and personality types; concealed-weapons permit a plus. Individuals with anger management issues need not apply.[/quote] Try installing the computer and your program in a flour factory where the employees have to wear a mask because the air is …

Member Avatar for debasisdas
1
151
Member Avatar for abhi.nalluri

use "%-4d" to left-justify the number in the field. Probably what you are seeing is the number right-justified.

Member Avatar for MrSpigot
0
102
Member Avatar for Gerlan

>> fgets (mystring, 100, &file); That's wrong -- remove the & symbol [code] int main(int argc, char* argv[]) { char line[255]; FILE* fp; if( argc == 1) fp = fopen(argv[1], "r"); else fp = fopen ("myfile.txt", "r"); while( fgets( line, sizeof(line), fp) != NULL) { printf("%s", line); } fclose(fp); } …

Member Avatar for Gerlan
0
126
Member Avatar for shazzy99

you need to use CString's Format() method. It works exactly like printf(). [code] CString txt; txt.Format("%d", m_AMC.get_FramesDrawn())); MessageBox(txt, MB_OK); [/code]

Member Avatar for Nick Evan
0
208
Member Avatar for SeeTheLite

>>Does my second header have to be a pointer too or can it be static? No, it does not need to be a pointer. what you have on line 14 of class example2 looks ok to me.

Member Avatar for Ancient Dragon
0
63
Member Avatar for LiBOC
Member Avatar for Icebone1000

you did't include "F:\SDL-1.2.13\include\SDL.h in that zip file. FiltroPNM::ApplyPixMap() has a lot of conversion problems -- converting int to float. [code] media = ( F_img_pix[i].rgb[0] + F_img_pix[i].rgb[1] + F_img_pix[i].rgb[2]) * 0.33333; F_img_pix[i].rgb[0] = media;//transform red F_img_pix[i].rgb[1] = media;//transform green F_img_pix[i].rgb[2] = media;//transform blue [/code] All those lines produce warnings which …

Member Avatar for Icebone1000
0
277
Member Avatar for YaelGD

If you have variables a, b and c it would be not too difficult with some if statements. But the more variables you have the greater difficulty to sort them without an array or linked list.

Member Avatar for Narue
0
116
Member Avatar for metal_butterfly

line 56: initialize variable [b]i[/b] to 0. line 75: fgets() adds the '\n' to the end of each line when '\n' appears in the data file. I don't know off-hand it that will cause problems for getaddrinfo() or not. You might add code between lines 57 and 58 to strip …

Member Avatar for Ancient Dragon
0
82
Member Avatar for clutchkiller

[QUOTE=clutchkiller;788555]I hope all of you Obama fanboys are proud that you finally elected your closet terrorist into office so that he could shut down Gauntanamo Bay and release all his muslim friends, and while he was at it he shut down all over seas prisons linked through the CIA so …

Member Avatar for GrimJack
1
316
Member Avatar for CHOC

>>How do I get another browser on my computer? Go to the web site and download it ???

Member Avatar for Ancient Dragon
0
25
Member Avatar for SCHarris

You need to use function prototypes [code] void run(); // this is a function prototype void command( const char* cmd); // another function prototype int main() { run(); } void run() { "code" } [/code]

Member Avatar for SCHarris
0
84
Member Avatar for Ancient Dragon

I have a bunch of old attachments I want to delete. Some of them have selections squares on the right side of the list while many do not. How do I delete those that can not be selected ?

Member Avatar for Ancient Dragon
0
104

The End.