15,300 Posted Topics

Member Avatar for skatamatic

[URL="http://www.tutorialized.com/tutorials/C-and-Cpp/Graphics/1"]Here are some starter tutorials[/URL] for MS-Windows operating system.

Member Avatar for Ancient Dragon
0
104
Member Avatar for geska10

[quote]can some one make this before 19 march 2008. it is my homework [/quote] Absolutely NOT! Do your own homework.

Member Avatar for mitrmkar
0
86
Member Avatar for crisjoyce

[QUOTE=crisjoyce;564446]Need to be informed on how to code and also how my coding should follow.If possible need to be shown with an example of how to code.Ihave never done this so please assist me.[/QUOTE] If you have never done a program then what makes you think you can code something …

Member Avatar for skatamatic
0
108
Member Avatar for CoolGamer48

The computer that gets that error is missing one or more DLLs that are needed by the program. Make sure the program has been compiled for release mode instead of debug mode.

Member Avatar for CoolGamer48
0
188
Member Avatar for amitahlawat20

Looks like you need to add code that will read/write employee information to/from a file (database). You need a menu in the main() function something like [code] 1. Read an employee record 2. Create a new employee record 3. Write the employee record 4. List all employee names 5. Quit …

Member Avatar for Ancient Dragon
0
139
Member Avatar for experimenter

Don't expect to get very accurate timeings in the threads because XP (or any other version of MS-Windows or *.nix) is not a real-time operating system. So if you expect an event to happen in exactly X milliseconds it probably won't happen. Probably the best you can hope for is …

Member Avatar for experimenter
0
94
Member Avatar for rathmal

what exactly do you mean by that? what operating system? what kind of printer ? what font? any graphics? any lines? If you search [url]www.codeproject.com[/url] you will find a few c++ classes for laser printers that do all sorts of fancy things in MS-Windows.

Member Avatar for Rachnamb
1
615
Member Avatar for texas.chef94

Welcome to DaniWeb. >>I am a retired chef so I am not a complete idiot Since you posted this in the wrong place that statement is debatable :) (from a retired SMSgt).

Member Avatar for hughv
0
92
Member Avatar for sahil_itprof

[URL="http://www.google.com/search?hl=en&q=fstream"]here are some google links [/URL]that will help you. Learn to use google because it will frequently find answers to your questions.

Member Avatar for Ancient Dragon
0
140
Member Avatar for kako13

Read you text book to see how to create a class. [URL="http://www.google.com/search?hl=en&q=c%2B%2B+linked+list+class"]Then you can use google[/URL] to find examples of a linked list class. The Person class should be straight forward -- just follow the example in your text book of in any of the hundreds of tutorials you can …

Member Avatar for kako13
0
117
Member Avatar for Waseemn

Since you already know how many numbers are on a line [code] while( inFile >> num1 >> num2 >> num3 >> num4) { // do something with the data } [/code]

Member Avatar for Narue
0
100
Member Avatar for MahdiDani

Welcome to DaniWeb. Please feel free to post questions and comments in the appropriate boards.

Member Avatar for Serunson
0
108
Member Avatar for WXuan
Member Avatar for chts12345

[QUOTE=chts12345;563406]Hi I didn't get you. This is not the answer of my problem.Please be clear.[/QUOTE] I think it was meant as a joke :)

Member Avatar for jephthah
0
138
Member Avatar for nurulshidanoni

post some of the error messages. Also post the rest of the program -- what's above line 1???

Member Avatar for nurulshidanoni
0
135
Member Avatar for Saaddani

Look at the function prototypes on lines 13-17 then look at the actual functions. The function arguments must be identical in each case. For example displayInfo() on line 14 does not have any parameters, yet on 59 it does -- in c++ they are not the same functions. >>but at …

Member Avatar for Ancient Dragon
0
129
Member Avatar for kireol

>>mbstowcs(CHAT," ",strlen(" ")-1 ); That's the same as this: [icode]mbstowcs(CHAT," ",0);[/icode]. In otherwords, it does nothing. >>What shows up is "123defg" You aren't clearing the CHAT beffer before copying the contents of szRecvBuffer. Zero it out first. The second problem is that you are subtracting 1 from the length of …

Member Avatar for kireol
0
122
Member Avatar for Squeeker
Member Avatar for Squeeker
0
154
Member Avatar for hafhag

First you need to decide on what the file is going to look like -- design the file format. My suggestion is to put everything about one account on a single like with commas separating the individual fields. For example [code] 12000,John Smith,1000000.00,999.99 [/code] Now with that you can easily …

Member Avatar for hafhag
0
288
Member Avatar for sayso36

what does [b][URL="http://depts.washington.edu/fasdpn/htmls/fasd-fas.htm"]Fetal Alcohol Spectrum Disorders (FASD)[/URL][/b] have to do with anything ?

Member Avatar for Ancient Dragon
0
370
Member Avatar for m2185

try this: [code] void Perfect (int number) { int sum = 0; vector<int> ay; for (int i = 1; i < number; i++) { if (number % i == 0) { sum = sum + i; ay.push_back(i); } } if (sum == number) { size_t i = 0; cout << …

Member Avatar for Ancient Dragon
0
89
Member Avatar for wonder_laptop

[QUOTE=wonder_laptop;545553]intresting :) and what are names of the files that correspond to that library?[/QUOTE] depends on your compiler because there is no standard naming convention. *nix it's normally in libm.a as Duoas reported. MS-Windows Microsoft compilers the math functions are in one of the [URL="http://msdn2.microsoft.com/en-us/library/abx4dbyh(VS.80).aspx"]c runtime libraries[/URL].

Member Avatar for jephthah
0
95
Member Avatar for MahdiDani
Member Avatar for Lalarukh khalid

There are millions of topics -- can you narrow it down just a tad ? Such as what is the problem and what parts are you confused about?

Member Avatar for Lalarukh khalid
0
278
Member Avatar for dophine

template and inerentence at two completly different animals. You would use one instead of the other at any time. I'm not great on templates but I think templates can experience inherentence just as normal classes can.

Member Avatar for Narue
0
139
Member Avatar for Ripture

You have come across a common problem that is inherent in the way floats and doubles are represented in memory. There are many numbers that can't be represented exactly. One way around your problem is to use only long integers with implied decimal point. For example instead of 1.23 in …

Member Avatar for vmanes
0
126
Member Avatar for jinchiruki

I guess you need a [URL="http://www.w3schools.com/sql/default.asp"]tutorial[/URL] to learn the SQL language. [URL="http://www.google.com/search?hl=en&q=sql+tutorial"]Here are several others [/URL]if that one isn't so good. What you want to do is in the join clause. We have to know the schema of each table before we can say exactly how to do it but …

Member Avatar for Ancient Dragon
0
73
Member Avatar for harisshafiq

>>help me to do operator overloading n class Does that mean you want us to write that class for you? If not then you need to post the class that you have written. If it does mean that then sorry but you're out of luck here because we don't do …

Member Avatar for ithelp
0
370
Member Avatar for GPXtC02

>>while(i<50 && in_stream.getline(temp, 50) && temp>0) Under what conditions would temp ever be 0 ? My guess is that it can't every be 0 because it is allocated pointer or a character array. So checking for temp > 0 is superflous. >>if(isdigit(temp)) That is only checking if the first character …

Member Avatar for GPXtC02
0
804
Member Avatar for sauron84

Add the encrypt *.cpp file to your MFC project then compile and link just as you have the rest of the program. In the OnClick() event handler for the button just call your emcrypt function as you would any other function. Not able to unzip the attachment with WinZip.

Member Avatar for sauron84
0
156
Member Avatar for Cpp123

>>I'm trying to do section off functions by themselves first Excellent appropach to the problem. Do it just a little bit at a time and you won't have so many problems. Line 8: remove the semicolon at the end of the line. That is a very very common error that …

Member Avatar for Cpp123
0
228
Member Avatar for jeffige

just put a space between each one [icode]cout << The average of: " << a << " " << b << " " << c << d << " " << e << " "<<" = " [/icode]

Member Avatar for Ancient Dragon
0
120
Member Avatar for prayami

Not sure right now if this will work, but create a third array with 1000 rows that will contain the difference between the value in the array and the search value. Example: [code] array[0][0] = 2.00 array[0][1] = -200.00 delta = (4.056 - 2.00) + abs(-200.375) - abs(-200.0)) = 2.431 …

Member Avatar for prayami
0
177
Member Avatar for SpectateSwamp

[QUOTE=SpectateSwamp;349527]I have a couple more tips to add to my Nature and Digital Video tips list. Check the following clips out first. [url]http://video.google.ca/videoplay?docid=-2712850167775261588[/url] [url]http://video.google.ca/videoplay?docid=-2491448387537557028[/url] You can download the originals and take a more serious look if you have video editing software. Somebody out there should be able to explain this …

Member Avatar for Ancient Dragon
0
434
Member Avatar for arlene1

line 3 -- delete it because the program does not use anything in that header file. move the close brace on line 20 down to the end of the function on line 25 (after the return). Then remove the open brace on line 13 because it is redundent. remove the …

Member Avatar for Ancient Dragon
0
174
Member Avatar for Jennifer84

there is stricmp() C function, but there is no c++ equivalent. convert the string to all upper or lower case then search it. [code] string stringToFind = "number["; string stringToSearch = "something Number[1]"; transform(stringToSearch.begin(),stringToSearch.end(),tolower); stringToSearch.find(stringToFind); [/code]

Member Avatar for Ancient Dragon
0
189
Member Avatar for Gerritt

you need a loop and the macro toupper(). For example of how to convert a single character to upper case please read the related thread that appeared immediately next to the one you created.

Member Avatar for jephthah
0
92
Member Avatar for Ancient Dragon

Bill Gates ?? think again because he lost that title in January this year when he tried a hostile takeover of Yahoo. Microsoft stock fell 15% and put poor Bill in the #3 spot behind Warren Buffett (now #1) and Carlos Slim Helú from Mexico. Full article [URL="http://articles.moneycentral.msn.com/News/GatesDethronedBuffettIsRichest.aspx?GT1=33009"]here[/URL].

Member Avatar for vegaseat
0
249
Member Avatar for williamthelast

line 12: Since temp is an uninitialized pointer this line will most certainly crash your program. You have to allocate memory using malloc() before starting the loop on line 10. Line 8 should read: [icode]char *tmp = malloc(strlen(string)+1);[/icode]. line 7: You don't need to save the pointer [b]string[/b], you need …

Member Avatar for jephthah
0
112
Member Avatar for arlene1

line 23: you are attempting to give each of the variables two names -- delete a, b, c and d then leave all the rest.

Member Avatar for Ancient Dragon
0
108
Member Avatar for dspi
Member Avatar for Ancient Dragon
0
43
Member Avatar for hellokitty88

remove the brackets from the last parameter -- it should not be an array [icode]int searchList(string array[], int numElems, string value);[/icode]

Member Avatar for Ancient Dragon
0
116
Member Avatar for flash2007

what do you need help doing ? >># include <string.h> That is the wrong header file which contains C functions for manipulating character arrays. What you want is [icode]#include <string>;[/icode], without the .h file extension Do you know how to write a constructor ? You will find them explained in …

Member Avatar for flash2007
0
183
Member Avatar for Gerlan

see line 10: it has the wrong prototype. Compare it with line 25 which is correct.

Member Avatar for Ancient Dragon
0
106
Member Avatar for rrich1103

[QUOTE=Sh13;561932] I'm totally stuck!![/QUOTE] Get out the lard and grease up to that you can get unstuck :)

Member Avatar for Ancient Dragon
0
96
Member Avatar for Jennifer84

Its pretty easy to extract the number between the square brackets, but why? put the number in a std::string ? std::string has a replace() method that you can use to replace one substring with another.

Member Avatar for Jennifer84
0
166
Member Avatar for rashmigs84

The only way to get the exact row count of the number of rows returned by a query is to count them as they are retrieved. Before starting to retrieve rows the db server knows whether or not there are more than zero rows, but doesn't know exactly how many …

Member Avatar for Ancient Dragon
0
60
Member Avatar for w2s

You forgot to tell us what is the problem -- sorry but I'm not a mind reader.

Member Avatar for Ancient Dragon
0
100
Member Avatar for Yaka

>>but still i dont know how to fix the warning Should be obvious -- put a return value at the end of the function. Once the loop ends the function is supposed to return something, but you forgot that instance. I think you can delete lines 65-68 and just return …

Member Avatar for mitrmkar
0
332
Member Avatar for bobbyjcardona

If you upgrade to Vista there are a lot of programs that ran on XP that will not run on Vista. If you like to play a lot of games on XP then check with the manufacturer(s) of your favorites before upgrading. I have to duel-boot back to XP in …

Member Avatar for jbennet
0
129

The End.