15,300 Posted Topics
Re: 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. | |
Re: >>It wont let me just use a cout statement what do I need to use Why not? Post what you attempted to do. | |
Re: >>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 … | |
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] | |
Re: [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 … | |
Re: His wife needs an attitude adjustment. My wife always told me "Only dead people stop looking -- looky but don't touchy." | |
Re: After the cin statement if a < b then just swap them so that you don't have to code for that condition. | |
Re: [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. | |
Re: 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] | |
Re: what errors does your compiler produce -- and what compiler/operating system are you using ? | |
Re: 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. | |
Re: 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. | |
Re: check your man pages for spawn family of functions. | |
Re: 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. | |
Re: 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 … | |
Re: 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] | |
Re: 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. | |
Re: [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. | |
Re: 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??? | |
Re: IDE == [URL="http://en.wikipedia.org/wiki/Integrated_development_environment"]Integrated Development Environment[/URL] | |
Re: Homework???? What have you done to do this problem? | |
Re: 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. | |
Re: 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] | |
Re: did you try [URL="http://answers.yahoo.com/question/index?qid=20080909015944AAGBhH3"]google?[/URL] | |
Re: [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 … | |
Re: [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 … | |
[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>1=42003"]Bill Gates and Jerry Steinfield commercials[/URL] | |
Re: 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 … | |
Re: 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 … | |
Re: >>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. | |
Re: Welcome to DaniWeb. Your English looks great, better than many people whose mother toung is English. :) | |
Re: Welcome to DaniWeb Liz. There are quite a few people here your age and older, so you will fit right in :) | |
Re: 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 … | |
Re: [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. | |
Re: 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] | |
Re: 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] | |
Re: >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] | |
Re: [URL="http://blog.markandmandy.com/index.php/2008/01/04/my-little-martian/"]nanno nanno[/URL] | |
Re: >>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. | |
Re: 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 … | |
Re: 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. | |
Re: 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. | |
Re: use vector [code] #include <vector> ... int main() { vector<Thing> things; Thing oneThing; // add OneThing to the vector vector.push_back(theThing); } [/code] | |
Re: 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 … | |
Re: [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] | |
Re: >>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, … | |
Re: 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. | |
Re: >>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 … | |
Re: 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* … |
The End.