15,300 Posted Topics

Member Avatar for bigben09

one way is to use sprintf() to convert the int to a char string then print the string in reverse order.

Member Avatar for kansmish82
0
94
Member Avatar for 03humphrec

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 …

Member Avatar for lasher511
0
156
Member Avatar for bosanac515

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 …

Member Avatar for John A
0
944
Member Avatar for abhijit11

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.

Member Avatar for Colin Mac
0
198
Member Avatar for Mushy-pea

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 …

Member Avatar for jwenting
0
133
Member Avatar for hui

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 …

Member Avatar for Ancient Dragon
0
205
Member Avatar for fireboat

[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 …

Member Avatar for jenny4u
0
96
Member Avatar for waynewilson1

>>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 …

Member Avatar for WaltP
0
104
Member Avatar for boujibabe

same problems as before -- you have used the same name for functions and variables. You can not do that.

Member Avatar for WaltP
0
133
Member Avatar for tech291083

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 …

Member Avatar for Ancient Dragon
0
86
Member Avatar for bbycapr

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 …

Member Avatar for Ancient Dragon
0
85
Member Avatar for bobby77

How does that relate to computer software or hardware???? You will probably find the answer in your textbook.

Member Avatar for Rashakil Fol
0
72
Member Avatar for countrygirl1970

>>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 …

Member Avatar for countrygirl1970
0
130
Member Avatar for earlyriser

>> 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 …

Member Avatar for ~s.o.s~
0
290
Member Avatar for n.aggel

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]

Member Avatar for Ancient Dragon
0
83
Member Avatar for niceliang84

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.

Member Avatar for Ancient Dragon
0
148
Member Avatar for RisTar

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. …

Member Avatar for RisTar
0
251
Member Avatar for sravani

why don't you just contact their support people? You will get a quicker and more accurate answer that way.

Member Avatar for sravani
0
108
Member Avatar for SamY

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]

Member Avatar for SamY
0
153
Member Avatar for himanjim

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]

Member Avatar for GreenDay2001
0
75
Member Avatar for jobra

what errors do you get? Does SampleMarketDataClient class have a constructor that takes a string as an argument (assuming lineString is type std::string)?

Member Avatar for John A
0
136
Member Avatar for Ancient Dragon
Member Avatar for russian_bear

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

Member Avatar for russian_bear
0
80
Member Avatar for jbennet

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 …

Member Avatar for jbennet
0
139
Member Avatar for joseapab

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 …

Member Avatar for Ancient Dragon
0
109
Member Avatar for donaldunca

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() …

Member Avatar for donaldunca
0
231
Member Avatar for srinath33
Member Avatar for goutham_see
0
3K
Member Avatar for jobra

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.

Member Avatar for Salem
0
106
Member Avatar for unclepauly

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 …

Member Avatar for thekashyap
0
233
Member Avatar for Duki

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. …

Member Avatar for Duki
0
172
Member Avatar for Ancient Dragon

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 …

Member Avatar for Dani
0
99
Member Avatar for n.aggel

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 …

Member Avatar for Ancient Dragon
0
153
Member Avatar for himanjim

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). …

Member Avatar for Ancient Dragon
0
251
Member Avatar for saintlysav

[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.

Member Avatar for saintlysav
0
116
Member Avatar for Tauren
Member Avatar for Phaelax
0
148
Member Avatar for nadith_cs

>> 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 …

Member Avatar for Ancient Dragon
0
110
Member Avatar for JeffCapes
Member Avatar for Ancient Dragon
0
102
Member Avatar for Duki

>>(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 …

Member Avatar for Duki
0
2K
Member Avatar for The Dude

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 …

Member Avatar for Ancient Dragon
0
108
Member Avatar for ReDeViL

>>//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 …

Member Avatar for ~s.o.s~
0
228
Member Avatar for tinie

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]

Member Avatar for Narue
0
4K
Member Avatar for Duki

>> 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 …

Member Avatar for Narue
0
140
Member Avatar for soveijn

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 …

Member Avatar for soveijn
0
78
Member Avatar for Harshita_garg

get keyboard input as a string then do whatever you want with the individual digits.

Member Avatar for Lazaro Claiborn
0
424
Member Avatar for mattyd

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

Member Avatar for jbennet
0
122
Member Avatar for kobi

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 …

Member Avatar for Ancient Dragon
0
393
Member Avatar for tinie

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.

Member Avatar for Lazaro Claiborn
0
135
Member Avatar for killer007

[URL="http://www.codeproject.com/cpp/unicode.asp"]Here[/URL] is a brief explanation Only the first couple paragraphs may be relevent to you.

Member Avatar for Ancient Dragon
0
62
Member Avatar for MidiMagic

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.

Member Avatar for MidiMagic
0
124
Member Avatar for amt_muk

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.

Member Avatar for amt_muk
0
124

The End.