15,300 Posted Topics

Member Avatar for Prathvi

The file systems on all mobile hardware running Microsoft Mobile 5.0 and PocketPC are in UTC (GMT). AFAIK there is no way to make GetOpenFileName() to display anything else.

Member Avatar for Ancient Dragon
0
79
Member Avatar for JustLearning

>>It wont let me just use a cout statement what do I need to use Why not? Post what you attempted to do.

Member Avatar for JustLearning
0
160
Member Avatar for bbhe

>>I have tried to use an SED editor, and it works ok. But I would like to have the option to have different colour in the output file There is no such thing as color in a file. To color, or not to color is all up to the editor …

Member Avatar for bbhe
0
153
Member Avatar for Ancient Dragon

A friend of mine just introduced me to lowrider videow on youtube. Many are very humerous [url]http://www.youtube.com/results?search_query=lowrider&search_type=[/url]

Member Avatar for GrimJack
0
90
Member Avatar for mus1010

[QUOTE=mus1010;697226]I wasn't talking to you !! before you talk to people, learn how to respect yourself ! STEP ASIDE !![/QUOTE] I, and everyone else too, realize that programming is often very frustrating. But LizR is just trying to tell you how to do that without actually doing your homework for …

Member Avatar for LizR
0
336
Member Avatar for dise652

His wife needs an attitude adjustment. My wife always told me "Only dead people stop looking -- looky but don't touchy."

Member Avatar for sittas87
0
73
Member Avatar for bonnie1702

After the cin statement if a < b then just swap them so that you don't have to code for that condition.

Member Avatar for bonnie1702
1
221
Member Avatar for cutedipti

[URL="http://www.faqs.org/qa/qa-3786.html"]Clink this link[/URL] then scroll down the page a little and you will find the answer to your question.

Member Avatar for Ancient Dragon
0
68
Member Avatar for dodo_ind

Yes, there is a maximum size of a std::string object. [URL="http://www.cplusplus.com/reference/string/string/max_size.html"]Click here.[/URL] The output of the example code in the URL is this: [quote] size: 11 length: 11 capacity: 15 [color=red]max_size: 4,294,967,294[/color] Press any key to continue . . . [/quote]

Member Avatar for Alex Edwards
0
202
Member Avatar for Hinche4

what errors does your compiler produce -- and what compiler/operating system are you using ?

Member Avatar for ArkM
0
311
Member Avatar for defychaos

line 36: [b]case[/b] is a c++ keyword so use another variable name in that loop. line 38: you have to put variable names inside the parentheses, not data types.

Member Avatar for skatamatic
0
120
Member Avatar for Dave Sinkula

I've never been to a VA hospital, so don't know. But I've never heard anything good about them from people who have been there. I go to normal doctors and use tricare military health plan.

Member Avatar for Dave Sinkula
0
118
Member Avatar for amt_muk
Member Avatar for JackDurden

1) [icode]const char* A = a[0]; [/icode] will point to the first of 25 strings in the 2d array. 2) A = x.c_str() doesn[t work because x is not c++ std::string class. character arrays like x do not have methods.

Member Avatar for Ancient Dragon
0
105
Member Avatar for botter911

1) you need to create another thread that processes all keyboard input events. But that means you can't use such functions as scanf() in the main program. So it boils down to this: "Don't try that without parental supervision." :) 2) Don't use the <Enter> key between numbers, hit the …

Member Avatar for Ancient Dragon
0
249
Member Avatar for sneekula

Passing back the original pointer is sometimes also used so that the function can be a nested function call. Example: [code] const char* foo(char *ptr) { ... <snip> return ptr; } int main() { printf("%s\n", foo("How now brown cow.")); } [/code]

Member Avatar for Ancient Dragon
0
104
Member Avatar for Trekker182

don't use the name time.h -- that's the name of standard c include header file. Name it something else. If that doesn't fix the problems then post the code.

Member Avatar for Trekker182
0
173
Member Avatar for scru

[QUOTE=Ene Uran;692519]I wonder if all those annoying Cirtcuit City popups on DaniWeb are considered spamming?[/QUOTE] I have never seen them. Use a popup blocker, or I think you can just go to your CONTROL PANEL and turn them off.

Member Avatar for bumsfeld
0
182
Member Avatar for flipjoebanana

I think you might be confused about the purpose of a batch file. Batch files are interpreted by the operating system -- not a program that you write. Yes, you can write a program that reads a batch file, but what will it do with it???

Member Avatar for flipjoebanana
0
161
Member Avatar for Juancd
Member Avatar for waldchr

IDE == [URL="http://en.wikipedia.org/wiki/Integrated_development_environment"]Integrated Development Environment[/URL]

Member Avatar for waldchr
0
173
Member Avatar for dhaval942
Member Avatar for hjjayakrishnan

You can not use those header files with that 16-bit compiler. They require newer compilers, such as Dev-C++, Code::Blocks, or VC++ 2008 Express.

Member Avatar for Ancient Dragon
0
67
Member Avatar for furpacino

Its a built-in data type so you don't have to define it anywhere. The sizeof(__int8) is 1, so its the same as a char. [code] #include <iostream> using namespace std; int main() { cout << "sizeof(__int8) = " << sizeof(__int8) << "\n"; }[/code]

Member Avatar for furpacino
0
100
Member Avatar for ezkonekgal

did you try [URL="http://answers.yahoo.com/question/index?qid=20080909015944AAGBhH3"]google?[/URL]

Member Avatar for crunchie
0
141
Member Avatar for eehyf

[URL="http://en.wikipedia.org/wiki/Lexicographical_order"]Link[/URL] If you use C's strcmp() function it will return an integer > 0 if string1 is lexicographically larger than string2. Example: "Z" is greater than "A" because A comes first in the English alphabet and Z comes last. Example2: "A" less than "Z" so strcmp() will return some number …

Member Avatar for grumpier
0
154
Member Avatar for Dave Sinkula

[quote]and also recognizes all who have become citizens due to either coming of age or naturalization. [/quote] Am I missing something? Natural born Americans become citizens the minute they are born. There is no minimum age requirements to be a citizen. Even if the parents remove the child from USA …

Member Avatar for Aia
0
420
Member Avatar for Ancient Dragon

[URL="http://video.msn.com/?mkt=en-us&vid=df102345-4270-41be-8a0d-c6b284aeced7&playlist=videoByUuids:uuids:d6ed1c4d-10e0-4774-885a-e19c5fba2e73%2Cf56728a6-b6c5-4620-a894-f546ab372298%2C763f96bd-cd71-47c6-8a8a-b8a6919763bd&from=msnweather&tab=m137&GT1=42003"]Bill Gates and Jerry Steinfield commercials[/URL]

Member Avatar for vmanes
0
166
Member Avatar for cam875

The compiler creates a program in several steps before generating the *.exe file. How exactly that is accomplished is different for each compiler. >>If it is binary I have always wondered how it is structured Depends on the compiler. See [URL="http://en.wikipedia.org/wiki/Object_code"]this wikipedia article[/URL] >>is it possibly to actually write to …

Member Avatar for ArkM
0
141
Member Avatar for DaveCachia

If this is a list of your own making then you have to iterate each node in the original list, allocate memory for a new node and attach the new node to the new list. Sorry but there is not much more to tell you without the details of the …

Member Avatar for Lerner
0
106
Member Avatar for lleighob1011

>>Linker error] undefined reference to `Delivery(book*, int&)' That error message means you failed to write the function named [i][b]Delivery[/b][/i]. Will I write it for you? Answer: no. But give a try and come back with any questions you may have.

Member Avatar for ithelp
0
132
Member Avatar for ablago

Welcome to DaniWeb. Your English looks great, better than many people whose mother toung is English. :)

Member Avatar for sittas87
0
79
Member Avatar for CFApprentice

Welcome to DaniWeb Liz. There are quite a few people here your age and older, so you will fit right in :)

Member Avatar for sittas87
0
51
Member Avatar for cutedipti

strcat() appends one string to the end of the other string. Before that will work you have to insure the destination string is big enough to hold both strings. str3 is not needed, so just get rid of it. The second problem with your program is that string literals can …

Member Avatar for ithelp
0
93
Member Avatar for JONZ

[QUOTE=JONZ;694730]Can anyone add some codes in my program so that it could output a receipt which would display the name of the items bought with their price..:) [/quote] Yes, but I won't. If you wrote all that then you should be able to write the receipt code too.

Member Avatar for Ancient Dragon
0
213
Member Avatar for asifjavaid

Here is how to allocate a BSTR. There are a few variations of SysAllocString() -- use the one that suits the purpose of your program. [code] VARIANT vt; VariantInit(&vt); // initialize the variant vt.vt = VT_BSTR; // set to BSTR string vt.bstr_val = SysAllocString(_TEXT("Hello World")); [/code]

Member Avatar for asifjavaid
0
2K
Member Avatar for JustLearning

try this: [code] char UnsortedList::DeleteFirst() { char ch; UnsortedListNode* tempPtr = headPtr; tempPtr = headPtr; ch = tempPtr->ch; headPtr = headPtr->nextPtr; num--; delete tempPtr; return ch; } [/code]

Member Avatar for Ancient Dragon
0
182
Member Avatar for stormtr00per

>How would I add "C:\\" to the front of the_date. [icode]strftime(the_date, 12, "[color=red]c:\\[/color]%d_%m_%Y", gmtime(&now));[/icode]

Member Avatar for Ancient Dragon
0
121
Member Avatar for zandiago
Re: Ufo

[URL="http://blog.markandmandy.com/index.php/2008/01/04/my-little-martian/"]nanno nanno[/URL]

Member Avatar for R0bb0b
0
487
Member Avatar for Adrian99420

>>I keep getting the error of form1 not identify. Why is it so? Could be thousands of reasons, but most likely you failed to include the header file in the *.cpp file. Or to declare [b]form1[/b] somewhere.

Member Avatar for Naisan_Yazdani
0
107
Member Avatar for balena

post the structure or class Partita. We have no clue what you are talking about without that information. If that structure contains pointers, then you have to write out their values separately, and you will have to design the file format in such a way that the Partita structure and …

Member Avatar for balena
0
151
Member Avatar for shamila08

between lines 45 and 46 add a line: [icode]cin.get();[/icode] to make the program stop before exiting. delete line 1 -- stdio.h -- its not needed in your program.

Member Avatar for stilllearning
0
108
Member Avatar for shirishbhosale

You are going to have to tell us what's wrong (in detail) before anyone can help you. Just telling us "my program's broke" is like taking your car to the auto repair shop and telling the repairman "my car's broke". We need a lot more information than that.

Member Avatar for dmanw100
0
104
Member Avatar for dmanw100

use vector [code] #include <vector> ... int main() { vector<Thing> things; Thing oneThing; // add OneThing to the vector vector.push_back(theThing); } [/code]

Member Avatar for Agni
0
119
Member Avatar for The Dude

I use google exclusively -- if I can't find it with google then I assume it can't be found anywhere. I don't even consider yahoo search, not because I don't like it but because I consider google to be better. Am I right? maybe yes and maybe no. And do …

Member Avatar for x3mario
0
102
Member Avatar for jadedman

[QUOTE=jadedman;691929]so a cout needs the three header files to be in effect...[/QUOTE] NO. cout only needs <iostream> [code] #include <iostrem> using std::cout; int main() { cout << "Hello World\n"; return 0; } [/code]

Member Avatar for x3mario
0
143
Member Avatar for shamila08

>>for (i=1;i<=N;i++) That's a problem. Arrays indices always, always begin with 0, never with 1. So what you want there is this: [icode]for(i = 0; i < N; i++) [/icode] The same with the other loops. >>my algorithm have no problem with N <= 4. Only because you were lucky, …

Member Avatar for shamila08
0
121
Member Avatar for Jennifer84

That is called a [URL="http://www.codeproject.com/KB/splitter/"]Splitter Window[/URL]. The only way I know how to do it is with MFC, but I suppose it can be done with pure win32 api functions. Don't know about wxWidgets either.

Member Avatar for Jennifer84
0
123
Member Avatar for swbuko

>>but I can't figure out how that works. [code] #include <fstream> #include <string> using namespace std; int main() { ifstream in("filename.txt"); string line; // read each line of the file while( getline( in, line) ) { //blabla do something this line } } [/code] >>I can't find a way to …

Member Avatar for Ancient Dragon
0
130
Member Avatar for vibgyor

To pass that array. Note: name in the structure is an array is 5 pointers, not a character array. So that structure can hold up to 5 strings (names). [code] typedef struct { char * name[5]; int number; }mystr; int foo(mystr* myptr[5]) { return 0; } int main() { mystr* …

Member Avatar for Ancient Dragon
0
108

The End.