15,300 Posted Topics
Re: one way is to use sprintf() to convert the int to a char string then print the string in reverse order. | |
Re: you can not upgrade from xp home to xp business -- see the last post in [URL="http://www.daniweb.com/techtalkforums/thread70015.html"]this thread[/URL]. Your computer's speed is adequate, but I think you need to add more RAM. And you should replace those two small hard drives with one larger one -- I bought a [URL="http://www.tigerdirect.com/applications/SearchTools/item-details.asp?EdpNo=2268595&Sku=TSD-320AS&SRCCODE=WEBGOOHD&CMP=KNC-GOOGL"]350 … | |
Re: What are your question(s) ? We are not going to do you assignment for you but will gladly try to answer your questions. Do the assignment one small step at a time. For example, start out with the first requirement [b]read in a line of text [/b] Is it supposed … | |
Re: graphics.h is a Borland-specific header file and not supported by any other compiler. When you write Windows programs you must use win32 api graphics functions, which are completly different than those you learned with graphics.h. | |
Re: I've seen flour mills here in USA, I've visited them a few times. Extremly dirty and dusty -- flour all over the place. By the time your shift is over you will look like someone dumped a 50 lb sack of flour over your head. As for taking electronic equipment … | |
Re: difference in days between two dates is very easy to calculate. 1. get time_t for first date. If this is not today's date, then fill out a struct tm with day, month-1, year-1900 -- make all other structure members 0, then pass your struct tm object to mktime(), which will … | |
Re: [QUOTE=indianscorpion2;312366]tax information is required only if u are a US citizen.....if u are not US citizen...u can reply to every field with a no......that much info will be sufficient....[/QUOTE] I'm no tax expert either, but I suspect tax info is required of non-US citizens also if their web site is … | |
Re: >>if anybody knows how to check text for a specific string and then change it or create a message box(ie. swear detecter) If you are looking for a way to detect obscene language, you might ask Dani because she implemented something similar for DaniWeb a couple months ago. I don't … | |
Re: same problems as before -- you have used the same name for functions and variables. You can not do that. | |
Re: what did you try? I think you have to first run the .config program which will configure the source to your computer. Then you run the make utility which will compile and install the libraries. This is the standard way that *nix source files are distributed. Some of these tasks … | |
Re: you are a beginner and your instructor gave you an advanced assignment like that :eek: you will first have to build a linked list of names. After entering a name from the keyboard search that linked list for it. If you do not know anything at all about c/c++ language … | |
Re: How does that relate to computer software or hardware???? You will probably find the answer in your textbook. | |
Re: >>Could someone help me to understand more on class objects and help me on this code Sure, what exactly do you want help on? The functions fadd(), fsub(), fmul() and fdiv() all take parameters but you failed to include them in the class declaration. In the class function implementation code … | |
Re: >> strcpy (PCourant->nom, line); line is a c++ class, strcpy() wants a c style pointer. You have to use std::string's c_str method to get the pointer, like this [inlinecode] strcpy (PCourant->nom, line.c_str());[/inlinecode] [code=c] struct Professeur { char nom [20]; Professeur *suivant; }; [/code] Since you are writing a c++ program … | |
Re: use ofstream's write() method to write out each individual object, for example [code=c] ofstream out("filename"); out.write((char*)&a,sizeof(int)); out.write((char*)&b,sizeof(int)); [/code] | |
Re: post the code that does not work. After closing the file you should call the clear() method before attempting to open another file with the same fstream object. | |
Re: To convert a single character to an int just simply subtract '0' from its ascii value [code] char c = '1'; int num = c - '0'; [/code] When converting several characters to int you have to multiply the previous value by 10 to make room for the new digit. … | |
Re: why don't you just contact their support people? You will get a quicker and more accurate answer that way. | |
Re: your question is not very clear -- what exactly do you want to do? This will move a binary file into ax register [code] mov ax, 01010101B [/code] | |
Re: Yes -- you can get free source code[URL="http://www.muquit.com/muquit/software/mailsend/mailsend.html"] here[/URL]. I don't know if it works or no because I have not seen it. You might get more code from [URL="http://www.google.com/search?hl=en&q=c+program+to+send+email"]google links[/URL] ![]() | |
Re: what errors do you get? Does SampleMarketDataClient class have a constructor that takes a string as an argument (assuming lineString is type std::string)? | |
[url]http://www.youtube.com/watch?v=2AE847UXu3Q[/url] | |
Re: If you [URL="http://www.google.com/search?hl=en&q=DirectX+example+programs"]google for directx example programs[/URL] you will find lots help | |
Re: Rejected by McDonald's :eek: Did they tell you the reason? Do you look like someone that just crawled out from under a rock ? Drug user? Alcholic ? (those are all rhetorical questions that don't need an answer) . Maybe you need to get employment counseling to learn how to … | |
Re: They are nearly different languages, so you should do one or the other, but not both until you have a good grasp of one and can recognize the differences. I'd go for VC .NET and ignore VB 6 for a couple years. If you are planning to get a job … | |
Re: fgets() doesn't know the difference between characters, such as 'a', 'b', 'c' ... and numbers such as '1', '2', '3' ... '9'. In the file they are all just text. If you want to treat all those numbers as text, read the file line by line, then just use fgets() … | |
Re: if you search these threads you will find several threads on this topic. | |
Re: use the mod operator -- it returns the remainder after division. If the remainder is 0 then the number if evenly divisible by the value When (loop_counter % 100) == 0 then close the current file and start another one. | |
Re: One way to get a static member access non-static methods is thru a static or global pionter or reference to the desired instance. Then the static member uses that pointer to access non-static methods and data objects. Another method is to make static all the methods and objects that the … | |
Re: check the files in the project director with Windows Explorer -- that inData file is not where you think it is. Second problem: the individual cases in the while statements need to end with [b]break[/b] statements, otherwise without it the code will just keep executing all the cases below it. … | |
I joined the feeds today using newly installed Vista Home Premium. When I hover the mouse over the DaniWeb feeds link in IE7 it says it was last updated 4 hours ago with 0 new feeds. When I visit c/c++ board I see several new posts during the last 4 … | |
Re: 5:00 am is (60*60*5) (60 seconds in an minute times 60 minutes in an hour) = 18000 seconds after midnight. 6:00 am is (60*60*6) = 21600 seconds. After getting local time, convert the hour, minutes and seconds to an integer ((hour-1) * 60 + (minute-1) * 60 + seconds), then … | |
Re: 0xFF is the largest value that can be stored in one byte, for signed integers that is 0xFF/2, which is 127.5 (use a calculator if you must). Since you can put 0.5 in a byte, one side is 127 and the other is 128 so that 127+128 = 255 (0xFF). … | |
Re: [URL="http://www.zetnet.co.uk/rad/dll.html"]Here [/URL]is some information. For more info you can [URL="http://www.google.com/search?hl=en&q=how+to+write+a+dll+in+c"]google [/URL]for your question. Writing a dll is just too complicated to fully explain here. Read some of the google links. How to interface a DLL with python is probably best to post in the phthon board. | |
| |
Re: >> in visual c++ in windows yes, its called the win32 api. There is also MFC library supported by Microsoft compilers as well as C# language that make windows gui programming a little easier. There is also a [URL="http://pdcurses.sourceforge.net/"]PDCurses[/URL] that is a port of unix curses for MS-DOS and MS-Windows … | |
Re: why would you even want to do that? just press the standard shift key. | |
Re: >>(Hint: Use the function pow from the header file cmath to calculate the square root.) That is in error. the pow() function raises X to the power of Y. you need to use the sqrt() function to get the square root of a number. In the equation (-b +/- √b^2 … | |
Re: Yes I LOOOOOOOOOOOOOOVE yogurt, one of my favorite foods. Taks a cup of plain unflavored yogurt, a cup of cottage cheese and 1/2 cup blueberries (or other fruit), mix in blender, and you have a great drink. I've also used unsweetened jello mix. Daily doses of yogurt has proven to … | |
Re: >>//function call computeProduct(product *pProduct,int *pBest); Do not include the data type in the function call, just the variable name, like this: [inlinecode]computeProduct(pProduct, pBest);[/inlinecode] Q2: Error checking is a little more difficult to resolve; there is no [b]simple[/b] way to do it. In your case I would get keyboard input as … | |
Re: you mean a vector like below? There are probably other ways too, but this is how I do it. [code=c] vector< vector< string> > theList; vector<string>::iterator it; vector<string>& innerList = theList[0]; it = innerList.begin(); for( ; it != innerList.end(); it++) { // blabla } [/code] | |
Re: >> was told that I might try writing programming "pearls A common problem is to write a function that validates user integer input. It would get the value from the keyboard as a string then parse the string for illegal characters. If any illegal characters are found display an error … | |
Re: 1. you can not statically link a [b]dynamic link library (DLL)[/b]. 2. The os calls DLL initialization, your program does not do that. Each DLL has a dllMain() function which is similar to main() in C programs. It is called by the os when the dll is first loaded into … | |
Re: get keyboard input as a string then do whatever you want with the individual digits. | |
Re: I like Deal or No Deal American Idol Survivor Reruns: Perry Mason I've Got a Secret Murder She Wrote Diagnosis of Murder Who Wants to be a Millionare Dog Eat Dog | |
Re: you need to add a line before the return to make the program stop so that you can read it. This will do ok [code] system("PAUSE"); [/code] Also, it isn't necessary to create a new thread just to correct a mistake. Just hit the Edit button -- you have about … | |
Re: since the fstream is global (bad programming habbit) after closing the file you have to clear the errors. [code=c] is.close(); is.clear(); [/code] A better solution is to make the fstream object local to the function, or pass a reference to it. | |
Re: [URL="http://www.codeproject.com/cpp/unicode.asp"]Here[/URL] is a brief explanation Only the first couple paragraphs may be relevent to you. | |
Re: I use the [b]Back[/b] button in IE5 and FoxPro all the time and have never had a crash. I don't use dial-up either, so maybe that is the problem. | |
Re: what operating system? on *nix just open a pipe to the ps program than parse its output. There are probably other ways to accomplish it too. |
The End.