377 Posted Topics

Member Avatar for j1979c
Member Avatar for SpS
0
276
Member Avatar for dp601

See this [code] #include <iostream> using namespace std; void CreatePattern(int); int main () { int limit; //Read limit cout << "\nEnter an even number:"; cin >> limit; CreatePattern(limit); return 0; } void CreatePattern(int limit) { for (int row = 1; row <= limit; row++) { for (int col = 1; …

Member Avatar for SpS
0
136
Member Avatar for DrJD
Member Avatar for SpS
0
34
Member Avatar for Tiffiney_v24

1. Define your class outside main. 2. [I](From MSDN) [/I] [U][B]Compiler Error C2447[/B][/U] [B]missing function header (old-style formal list?)[/B] An open curly brace ({) was found at global scope without a corresponding function header. This error can be caused by using the old-style C-language formal list. Check that the function …

Member Avatar for Ancient Dragon
0
125
Member Avatar for ZenaNqld
Member Avatar for richard henrich
Member Avatar for SpS
0
18
Member Avatar for meetmaruthi
Member Avatar for SpS
0
49
Member Avatar for darylesha
Member Avatar for Spasticmoose

See the code snippet section of this site. It has some really nice codes which can get you started. I suppose someone has also given a code convertor for dec to bin. Take a look.

Member Avatar for Spasticmoose
0
173
Member Avatar for destin
Member Avatar for jwenting
0
239
Member Avatar for grunge man

and [inlinecode]}[/inlinecode] instead of [inlinecode])[/inlinecode] in the end. [QUOTE=grunge man]hey i have another question what does endl mean [/quote] [b]endl[/b] Inserts a new-line character in the stream and if the stream is a buffered stream then flushes it.

Member Avatar for grunge man
0
363
Member Avatar for grunge man

[QUOTE=grunge man]A Nother Question What Are Classes[/QUOTE] A class is defined by using the keyword class followed by a programmer-specified name followed by the class definition in braces. The class definition contains the class members, its data, and the class methods, its functions. [QUOTE=grunge man]Is It Possible To Use A …

Member Avatar for prof.thakur
0
200
Member Avatar for grunge man
Member Avatar for SpS

Hi Dani Just wanted to bring that to your notice that lately I am not able to receive any instant notifications for replies. Plz look into it. Is anyone else also facing such problem or I am the only one :cry:

Member Avatar for SpS
0
123
Member Avatar for vamsi.rgiit

[QUOTE=vamsi.rgiit]can anyone explain me basic operations on binary tree[/QUOTE] Very nicely explained here [url]http://en.wikipedia.org/wiki/Binary_tree[/url]

Member Avatar for SpS
0
50
Member Avatar for porterrj
Member Avatar for prasath

[QUOTE=prasath] is it possible to declare constructors as private? if yes, will some one explain me how to do it or please provide some links regarding that. [/QUOTE] Here's one link [url]http://gethelp.devx.com/techtips/cpp_pro/10min/10min0200.asp[/url]

Member Avatar for Narue
0
75
Member Avatar for rc_ashish

If it's an html file then just open it through your C code and append [b]<font size="+somevalue">[/b] after beginning body tag and </font > before closing body tag.

Member Avatar for WolfPack
0
284
Member Avatar for renzo666

This might give you a start [url]http://faq.cprogramming.com/cgi-bin/smartfaq.cgi?answer=1048377569&id=1044780608[/url]

Member Avatar for renzo666
0
104
Member Avatar for benyam_dessu

[QUOTE=WolfPack]Out of curiosity, what made you name this thread after one of the members here :?:[/QUOTE] For a moment forget there is any member of such name and then think about the topic name and content. It will somewhat fall in place. But at first I was also confused.

Member Avatar for iamthwee
0
87
Member Avatar for jack223
Member Avatar for comwizz

[QUOTE=comwizz]Why cant we overload assignment operator using a friend function?[/QUOTE] [inlinecode]operator=[/inlinecode] can only be a member function. It is intimately connected to the object on the left side of the [inlinecode]=[/inlinecode]. If it was possible to define [inlinecode]operator=[/inlinecode] globally, then you might attempt to redefine the [b]built-in =[/b] sign [code] …

Member Avatar for SpS
0
668
Member Avatar for >shadow<

I have joined this forum in late Aug,05....and enjoying every bit of it....its my my first forum....and i agree with nanosani(first post)

Member Avatar for anupam_smart
0
459
Member Avatar for cancer10

That's Amazing....but there was already a thread relating to optical illusions.... [url]http://www.daniweb.com/techtalkforums/thread16129.html[/url]

Member Avatar for Educationalist
0
141
Member Avatar for Dani
Member Avatar for WolfPack
Member Avatar for WolfPack
0
364
Member Avatar for chaitanya.b

[QUOTE=chaitanya.b]OK sir, but can you give me for both malloc and free library functions definition i,e I want to allocate memory dynamically with out using malloc and deallocate memory with out using free library functions, I am waiting for your reply, [/QUOTE] Read chapter 8 of K&R, The C programming …

Member Avatar for SpS
0
152
Member Avatar for comwizz

[QUOTE=comwizz]How are functions returning reference used?? Do they return values on the left side or the right side of the assignment. I would be glad if I could get some help. Thanks, comwizz.[/QUOTE] Try looking at this and post further queries [url]http://www.parashift.com/c++-faq-lite/references.html#faq-8.2[/url]

Member Avatar for Bench
0
157
Member Avatar for Mac Paul

[url]http://www.daniweb.com/techtalkforums/announcement8-2.html[/url]

Member Avatar for agiorgio
0
112
Member Avatar for Kiba Ookami

chnage your code to [code] #include <iostream> using namespace std; int main() { //print out the text string, "Hello, World!" cout << "Hello, World!" << endl; return 0; } [/code]

Member Avatar for Narue
0
115
Member Avatar for egor

Read This [url]http://www.cprogramming.com/tutorial/lesson8.html[/url]

Member Avatar for dwks
0
106
Member Avatar for anupam_smart

We can change the calling conventions by prefixing decleration with [b]__cdecl,__stdcall[/b]-for right to left [b]pascal[/b]-for left to right

Member Avatar for Ancient Dragon
0
119
Member Avatar for osean
Member Avatar for osean
0
169
Member Avatar for stackOverflow
Member Avatar for Bench
-1
317
Member Avatar for iamthwee

Such post was not at all expected from you....At first look I said what a ******* post. You almost made me blind. I swear I would have given you a bad rep for this...but you are lucky as I recently gave a positive rep and can't add more.

Member Avatar for G-Do
0
209
Member Avatar for perlsu

[QUOTE=perlsu]fatal error C1001: INTERNAL COMPILER ERROR (compiler file 'msc1.cpp', line 1794) Please choose the Technical Support command on the Visual C++ Help menu, or open the Technical Support help file for more information Error executing cl.exe. Creating browse info file... BSCMAKE: error BK1506 : cannot open file '.\Release\nfc_Application.sbr': No such …

Member Avatar for SpS
0
198
Member Avatar for thinhbk1802

[QUOTE=thinhbk1802]So there is a float number problem. [/QUOTE]What do you mean by this.??

Member Avatar for SpS
0
111
Member Avatar for dreamreaver

Add this in the beginning instead of your deprected headers [code] #include <iostream> #include <string> using namespace std;[/code]

Member Avatar for SpS
0
160
Member Avatar for sosy2001
Member Avatar for rahulgupta1979

[b]java.lang.math[/b] The class Math contains methods for performing basic numeric operations such as the elementary exponential, logarithm, square root, and trigonometric functions. [url]http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Math.html[/url]

Member Avatar for jwenting
0
1K
Member Avatar for cesarmas

what complier are you using In VC6.0 you get profiling option in built

Member Avatar for kc0arf
0
127
Member Avatar for taha umar
Re: hi

A [b]Pointer[/b] contains an address that points to data. A [b]string[/b] is any finite sequence of characters (i.e., letters, numerals, symbols and punctuation marks).

Member Avatar for ITgeneration
0
331
Member Avatar for comwizz
Member Avatar for SpS
0
125
Member Avatar for chaitanya.b

Like This [code] #include <iostream> #include <string> using namespace std; int main () { string str="HelloWorld"; string first=str.substr(0,5); string second=str.substr(5,5); cout<<str;//Original String str=second+first; cout<<endl<<str;//Swapped String return 0; }[/code]

Member Avatar for Ancient Dragon
0
148
Member Avatar for server_crash
Member Avatar for kryptolite

Pass the parameters to [inlinecode]float do_next_op[/inlinecode] by reference. Also you need to add [inlinecode]<cmath>[/inlinecode] in your code [code] #include <iostream> [color=red]#include<cmath>[/color] using namespace std; void instruction (); [color=red]float do_next_op ( float&, float& , char );[/color] int main() { instruction(); // displays instruction float total; float newentry; char op; total = …

Member Avatar for SpS
0
252
Member Avatar for Twins_effect

[QUOTE=the_coolcat_11]help me to answer the product of first 10 even numbers in c++ program[/QUOTE] Two posters posting the same code :eek: . now what is happening.

Member Avatar for SpS
0
253
Member Avatar for monique83
Member Avatar for comwizz

[QUOTE=comwizz]I would like an example for using copy constructor with new operator. comwizz.[/QUOTE] [url]http://cplus.about.com/od/beginnerctutorial/l/aa072802a.htm[/url]

Member Avatar for comwizz
0
230
Member Avatar for Geek-Master

Constructors can initialise through assignment operator or initialisation lists. Benefit of using initialisation lists is the improved performance. Your code will run faster if you use initialization lists rather than assignment. [url]http://www.parashift.com/c++-faq-lite/ctors.html#faq-10.6[/url]

Member Avatar for WolfPack
0
3K

The End.