15,300 Posted Topics

Member Avatar for sarminatorius

If you want to see the source code for std templates such as list then just look at the header file. But be prepared for some pretty awful looking code :) The ones from Microsoft are nearly unreadable, at least it is for me.

Member Avatar for mrnutty
0
95
Member Avatar for cwarn23

[QUOTE=Lardmeister;1099623]It just doesn't make much sense to give a chicken elaborate rights and then eat it.[/QUOTE] My thought about animal rights is not to treat them as humans, but to treat and/or kill them humanly -- animal rights does not prohibit slaughtering chickens for food, but rather raising them so …

Member Avatar for GrimJack
1
453
Member Avatar for cwarn23

Flying American flags in front of my home, having a cookout, then working at WalMart this evening until 10:00 p.m.

Member Avatar for GrimJack
0
108
Member Avatar for laky
Member Avatar for Ancient Dragon
0
48
Member Avatar for dhruv_arora

[QUOTE] Generally if there's no file such as s.dat, then it creates a file by the name but it it's creating one instead it exits the program. I have to then manually create a file. Why is it happening so and is there any way that it creates a file …

Member Avatar for p@rse
0
133
Member Avatar for madhumathi.cse

>>i wish to develop software on my own. That's a bad place to begin. Start by working with a team of programmers so that you can take advantage of their experience and knowledge. Have you completed a college bachelor's degree yet? If not, then you need to do that.

Member Avatar for Ancient Dragon
0
34
Member Avatar for YoavX
Member Avatar for iqra123

Please post the way you declared those variables. Is [b]input[/b] a character array? You generally don't have to do a thing to convert char* to unsigned char*. typecasting is sufficient. And ultoa() takes an unsigned long int as the first parameter, not an unsigned char.

Member Avatar for kings_mitra
0
176
Member Avatar for vbx_wx

What you posted is not a double linked list but just an array of People classes. Post the node structure of the linked list you are using. The j loop starting on line 7 should start at (i+1), not 1. There is no reason to compare anything from 0 up …

Member Avatar for dusktreader
0
3K
Member Avatar for majesticmanish

If the 8 bit variable is passed by value then there should not be a problem because the compiler doesn't pass 8 bit values anyway, the smallest that can be put on the stack is 16 bit variables (with a 32-bit compiler on an Intel beased computer). Casting can lead …

Member Avatar for majesticmanish
0
143
Member Avatar for maria99

There were a lot of compiler changes between the two versions that you are using -- 6.0 and 2008. One of the changes is that 2008 uses UNICODE strings by default. You can begin to analyze your problem by turning off UNICODE. Go to menu Project --> Properties (at the …

Member Avatar for maria99
0
176
Member Avatar for Ramy Mahrous

>>mods / featured posters / sponsors /team colleagues etc etc etc are just as prepared to give crap answers as noobs Yup, I do that on occasion too. Just shows that nobody, even Narue, is above giving crap or wrong answers on occasion. All that my post count means is …

Member Avatar for happygeek
3
195
Member Avatar for kymarscheng

vc++ 2010 Express. Most IDE's and compilers will compile both C and C++, depending on the file extension is *.c or *.cpp or *.cc. It will also depend on the operating system you are using.

Member Avatar for tokenjoker187
0
257
Member Avatar for CodeAerial

I would probably write a batch file that contained the compiler parameters you want and then call that from Notepad++'s Run menu item.

Member Avatar for Ancient Dragon
0
82
Member Avatar for fenerista

I'm confused. You want a std::list of matrices -- each node in the std::list contains a different matrix? Something on this order? [code] #include <list> class matrix { public: matrix(int rows, int cols) { data = new int*[rows]; for(int i = 0; i < rows; i++) data[i] = new int[cols]; …

Member Avatar for fenerista
0
130
Member Avatar for urchinsub

>>sPtr=&s; Wrong. should be [icode]sPtr = s;[/icode]. But you really don't need that line, or the previous line, at all since both variables are being initialized on line 1 of the code snippet you posted. This worked for me [code] #include <string> #include <iostream> using namespace std; class someclass{ public: …

Member Avatar for urchinsub
0
276
Member Avatar for hotness

We don't do homework for you. You do the homework, we just help. So post what YOU think are the answers.

Member Avatar for mrnutty
0
2K
Member Avatar for RobBrown

If you don't want to do it in Excel or as a CVS file as previously mentioned, then I'd go with VB.NET because I think it has built-in support for Excel files. But then I could be wrong because I don't know a whole lot about vb.NET.

Member Avatar for RobBrown
0
156
Member Avatar for insanely_sane

>>how do I run my .cpp notepad files via the command prompt? Depends on the compiler you install. There is lots of information about how to create make files for MinGW, which is the MS-Windows port of *nix g++ compiler. Or you can just compile it without a make file. …

Member Avatar for Stefano Mtangoo
0
2K
Member Avatar for vivek01anand

The result is undefined behavior because of the ++ operator. max() evaluates both variables a and b twice, so the ++ operator gets executed twice. Exactly what the final result will be is compiler implementation dependent. Your compiler may produce one value while another compiler may produce something else.

Member Avatar for lionaneesh
0
129
Member Avatar for Andreas5

Its a two-dimensional array of strings. Simething like [icode]string Rule_Collection[100][2];[/icode] except that using vectors is much more efficient because the dimensions are not hard coded. I've often used the same or similar technique for reading rows and columns (result set) from a database. Where the inner-most vector represents the columns …

Member Avatar for Ancient Dragon
0
143
Member Avatar for 2bit

"new double" is not a variable. "new" is a c++ operator that allocates memory from the heap, and "double" is the type of memory that new will allocate.

Member Avatar for 2bit
0
108
Member Avatar for literal

One reason its named "Visual C++" because its a c++ compiler/IDE designed to make writing MS-Windows programs easier. Otherwise it will compile standard c++ programs without a problem unless you try to use something from the newest version of c++ standards which vc++ has not yet implemented. But then most …

Member Avatar for alaukik
0
264
Member Avatar for J.P.

>>do i have to use the get function to get the numbers from the user? No -- get functions return the value of private members to the calling function or class. For example [b]get_invoiceAmount()[/b] should be an int function that returns the invoice amount (re-read your instructions on this). With …

Member Avatar for mik334
0
497
Member Avatar for avarionist

esi just contains an address that is within the ds segment. ds is not a pointer -- it contains the address of the data segment. Sometimes you might even see cs:[esi] or even ss:[esi] in which case esi is pointer to somewhere in the code segment or stack segment, respectively.

Member Avatar for avarionist
0
349
Member Avatar for madhub2v

There is no one language to do all that. Writing desktop applications will require different languages and compiler than writing web based applications. And writing mobile applications is still different from either of the other two. First determine what it is that you want to write and then select a …

Member Avatar for StuXYZ
0
113
Member Avatar for dhruv_arora

The paramarater is the value that the program will return to the operating system so that other programs can use it for some purpose. The value 0 traditionally means the program exits normally without error. Any other value would mean the program encountered some kind of error. The value of …

Member Avatar for dhruv_arora
0
117
Member Avatar for nileshgr

[QUOTE]Arch Linux / Firefox 3.6.3[/QUOTE] I just finished installing Ubuntu 10 with FF 3.6.3 and do not see the problem shown in that screenshot. DaniWeb looks just like it does in Windows 7 and IE8.

Member Avatar for nileshgr
0
258
Member Avatar for mahmud2008
Member Avatar for angelrapunzel

Where are the code tags??? >>clrscr(); non-standard function that is normally available only to Turbo C. If you are going to post code snippets that everyone might want to use then don't use non-standard functions like that one. >>cout<<count; >>cout<<" "<<"+"<<" "; You can abbreviate that into a single statement: …

Member Avatar for NathanOliver
0
111
Member Avatar for nbaztec

Why?? I'm sure it was a lot of fun writing that program, but there are already been several similar programs for a long long time, for example Notepad++. And I'm not about to download and run that *.exe program. That's one way viruses are spread.

Member Avatar for nbaztec
1
144
Member Avatar for Madawar

You should be able to learn C and C++ from *nix without any problems -- the language itself is platform independent. You run into cross-platform problems when you start writing programs that call platform-specific functions, such as GUI and hardware. But for learning the language *nix is a good as …

Member Avatar for lionaneesh
0
125
Member Avatar for invisi

getch() returns two bytes, not just one, when you press special keys such as arrows and function keys. I like to make the keys negative values so that the program can easily distinguish between special keys and normal keys, but there are other ways such as add 255 to the …

Member Avatar for invisi
0
189
Member Avatar for Thew

Create a small program to test out that function and find out how it works. I don't use that compiler so I can't help you very much. Working with small two or three line programs is a lot easier than trying to work with large programs and DLLs.

Member Avatar for Thew
0
250
Member Avatar for n30h4x
Member Avatar for noobuser

If you want to initialize the array to 0 then just declare it like this: [icode]int prime[200000] = {0};[/icode] and the compiler will most likely use the optimal way to initialize it.

Member Avatar for Ancient Dragon
0
207
Member Avatar for Niner710
Member Avatar for vuki27

>>or show me a 32 bit BGI compiler There isn't one. AFAIK Borland itself doesn't even support BGI in its current compilers. You will have to upgrade your skills and use something like Code::Blocks or VC++ 2010 Express, both are free.

Member Avatar for mitrmkar
0
171
Member Avatar for fplgenius

You may have to post this problem on [URL="http://social.msdn.microsoft.com/Forums/en-US/category/visualc/"]Microsoft's forum web site.[/URL] I'm on Windows 7 and have never seen that problem.

Member Avatar for Ancient Dragon
0
124
Member Avatar for iamcreasy

you may also have to specify the open mode, e.g. [icode]filestr.open ("test.txt", fstream::in | fstream::out | fstream::app);[/icode] With ios::app the file stream is set to end-of-file on each write operation. After the write its position is undefined, especially in text files. If you want to back up 10 characters then …

Member Avatar for iamcreasy
0
341
Member Avatar for avarionist

Tutorials??? why -- [URL="http://lmgtfy.com/?q=winforms+tutorials"]yes there are.[/URL]

Member Avatar for avarionist
0
174
Member Avatar for andyg55

Cody: if you want to post code, that is ok, but please [list] [*]Use code tags [noparse][code=c++] /* code goes here */ [/code][/noparse] [*]Don't use ancient header files with .h extension [*]Don't use eof() as you did in line 12 because it doesn't work like that [/list] >> This reads …

Member Avatar for tagazin
0
2K
Member Avatar for altXerror

>>- i want to know if this is possible Why not? You could also declare them as [icode]int a, b, ab;[/icode]. If you put that in a header file then you have to use the [b]extern[/b] keyword in the header file, e.g. [icode]extern int a, b, ab;[/icode] then do the …

Member Avatar for mrnutty
0
159
Member Avatar for vipin.sachan

Using a 64-bit compiler instead of a 32-bit compiler may also make malloc() allocate more memory. Just because you have a 64-bit computer doesn't mean the compiler is going to produce 64-bit code. If you are using gcc or g++ then I presume it has flags to enable 64-bit compiles.

Member Avatar for mitrmkar
0
188
Member Avatar for daviddoria
Member Avatar for daviddoria
0
2K
Member Avatar for hqt

Sounds like you want to learn how to create wallpaper. I'm sure there are many tutorials, [URL="http://www.codeproject.com/KB/graphics/SmartWallpaperChanger.aspx"]here is just one of them[/URL] but written in VB instead of C.

Member Avatar for nbaztec
0
101
Member Avatar for jay29982

SQL is a language, MYSQL is an implementation of that language. There are many different database engines that support the SQL language -- MySQL is only one of them. Others are Oracle, Sybase, and Microsoft SQL Server.

Member Avatar for pradeepthi
0
93
Member Avatar for allonline

You have to decide whether you want to sort the file by name or by GPA. If you want it sorted alphabetically then sort by last name (or second name) then first name. If you want it sorted by GPA then sort by gpa, last name and first name. To …

Member Avatar for peter_budo
0
342
Member Avatar for playagain

Please read [URL="http://www.daniweb.com/techtalkforums/thread76934.html"]this thread[/URL]. posted a couple days ago gotoxy is a borland-specific function which was never implemented by any other compiler. If you want to use it with other compilers you will have to write your own gotoxy() function using operating system specific api calls.

Member Avatar for karrl
0
317
Member Avatar for Brandlax

use a [URL="http://www.google.com/#hl=en&source=hp&q=windows+font+editor&aq=0&aqi=g7g-m2&aql=&oq=windows+font+e&gs_rfai=CfiYrxzsSTM3oA4LCNYL4wLoKAAAAqgQFT9Bw1hU&fp=fabe5f418103de0b"]font editor[/URL] to edit an existing font

Member Avatar for anu07
0
76

The End.