Posts
 
Reputation
Joined
Last Seen
Ranked #729
Strength to Increase Rep
+8
Strength to Decrease Rep
-2
92% Quality Score
Upvotes Received
20
Posts with Upvotes
15
Upvoting Members
18
Downvotes Received
2
Posts with Downvotes
1
Downvoting Members
2
14 Commented Posts
~273.62K People Reached
Favorite Tags

377 Posted Topics

Member Avatar for samaru
Member Avatar for moderate_rock48
Member Avatar for Dave Sinkula

There's another veru nice book Thinking In C++,2nd Edition by Bruce Eckel

Member Avatar for shahidali6
11
10K
Member Avatar for danijohn

[QUOTE=danijohn;293007]when I exit a function i get 'general protection exception' -' processor fault'. Function writes to file and works ok except won't exit. What does this mean please, and where should I look ? Am using Turbo C 4.5 & Windows xp. Must be overwriting memory somehow I suppose but …

Member Avatar for alifriend7
0
599
Member Avatar for ricciola
Member Avatar for SpS

Code will check whether the number entered is integer or not. [inlinecode]ignore[/inlinecode] extracts characters from the input sequence and discards them. The extraction ends when max characters have been extracted and discarded or when the character delim(\n) is found, whichever comes first. In the latter case, the delim character itself …

Member Avatar for VikyTushar
0
857
Member Avatar for SpS

Can anyone explain me in simple language and better if with an example [B]why constructor don't have return types :!: [/B]

Member Avatar for ishan_1
0
739
Member Avatar for Yzk
Member Avatar for Asif_NSU

[QUOTE=Looben;293127][B]Execute -> Rebuild All[/B] should fix it.[/QUOTE] I guess his problem would have been solved by now :mrgreen:

Member Avatar for Musa_Jutt
0
3K
Member Avatar for johnray31

Read K & R. You'll know how to do that. By the way why do you want to make your own malloc function?

Member Avatar for np complete
0
1K
Member Avatar for OurNation
Member Avatar for vinnitro
1
16K
Member Avatar for cessna172

Why are you taking pain by handling memory yourself. Use power of STL. [CODE=cplusplus]#include <vector> #include <stdexcept> template <typename T> class Stack { private: std::vector<T> elems; // elements public: void push(T const&); // push element void pop(); // pop element T top() const; // return top element bool empty() const …

Member Avatar for mrnutty
0
2K
Member Avatar for vissure
Member Avatar for Sandeep Shetty
0
276
Member Avatar for neeludhiman

Try this sample code [code] #include<windows.h> int main() { MessageBox(0,"Hello","Welcome Message",1); return 0; }[/code] Change the last parameter to see various options.

Member Avatar for rishabh413
1
17K
Member Avatar for axiss

I don't think there is any built in standard function to do it in C++. You need to use numerical techniques to solve this. Try implementing trapezoidal, simpson etc.. in C++.

Member Avatar for ynikitenko
0
280
Member Avatar for comwizz

[QUOTE=comwizz]Please reply.[/QUOTE] Don't bump your thread. Everyone here is helping others on voluntary basis by finding whatever time they are free to spare. [QUOTE=comwizz] I cannot figure out how to open the results/output window in Dev c++. Also how to effectively use step over / step into . I kept …

Member Avatar for deepshikha more
0
448
Member Avatar for SpS

I HAVE LOADED ORACLE 8i ON WINDOWS XP. IT HAD LOADED SUCCESSFULLY AND I HAD WORKED ON IT. BUT ON NEXT REBOOT WINDOWS IS NOT ABLE TO START THE SERVICE CALLED OracleServiceORCL. WHEN I TRY TO START IT AGAIN IT ENDS WITH AN [quote] ERROR:- Could not start the OracleServiceORCL …

Member Avatar for Vadim_Invar
0
2K
Member Avatar for degamer106

[QUOTE=degamer106]i'm sorry i meant if x < y.[/QUOTE] Yes, then result will be x.

Member Avatar for Shankye
-1
249
Member Avatar for SpS

Hi guys...i am having this nokia phone model 2280.....i had a connection of MTNL garuda....now i have disconnected the service....and i want to switch it over to TATA or RELIANCE......but i am not able to change the settings of the phone.....there are ways to do it...since touts are sitting in …

Member Avatar for printing.host
0
198
Member Avatar for vegaseat

[B]Just Following Directions...[/B] A blonde was terribly overweight, so her doctor put her on a diet. "I want you to eat regularly for 2 days, then skip a day, and repeat this procedure for 2 weeks. The next time I see you, you'll have lost at least 5 pounds." When …

Member Avatar for crunchie
0
858
Member Avatar for dexter1984

dexter1984, Why don't you simply use vector of vectors [code] #include <vector> template <typename T> class dynamic_array { public: dynamic_array(){}; dynamic_array(int rows, int cols) { for(int i=0; i<rows; ++i) { data_.push_back(std::vector<T>(cols)); } } // other ctors .... inline std::vector<T> & operator[](int i) { return data_[i]; } inline const std::vector<T> & …

Member Avatar for Maxwell175
0
141
Member Avatar for SpS

Hi guys....I want to make a simple game using openGL Should I go for GLUT or MFC...don't know anything about any of these.... please refer me to some ebooks on net or tutorials (not very advanced please)

Member Avatar for Sodabread
0
193
Member Avatar for stackOverflow

Blinking text in DOS, compiled with Turbo C [code] #include <conio.h> #include <stdio.h> int main() { int color; textattr(128 + 10); cprintf("This is blinking text\n"); return 0; }[/code]

Member Avatar for Nick Evan
-1
995
Member Avatar for OurNation
Member Avatar for Kushal Thakkar
Member Avatar for Dave Sinkula
0
2K
Member Avatar for j1979c
Member Avatar for borlys
0
581
Member Avatar for johnray31

Turbo*** is 15 year old compiler and does not conforms to most of the standards..stop using it asap....you can download the DEV C++ IDE which uses GCC as it's compiler from here [url]http://www.bloodshed.net/devcpp.html[/url]

Member Avatar for vibhu1
0
232
Member Avatar for hongfan

Something Like This [code] #include<iostream> #include<string> using namespace std; int main( ) { string x("12345"); cout<<x<<endl; x.erase(3,1); cout<<x; return 0; }[/code]

Member Avatar for jeyson
0
524
Member Avatar for rasheed1982

Or Something like this [code] int a=rand(); int b=rand(); int c=rand(); std::vector<int> vec; vec.push_back(a); vec.push_back(b); vec.push_back(c); std::cout<< *std::max_element(vec.begin(),vec.end())<<std::endl;[/code]

Member Avatar for csurfer
0
132
Member Avatar for yeya

[QUOTE=yeya;292327]Hi, I wonder if there is some open source C++ library for creating SWF movies, something like SWF Scout but open source? Thanks![/QUOTE] See if this is what you need [URL="http://sourceforge.net/projects/ming/"]Ming - an SWF output library[/URL]

Member Avatar for jbennet
0
189
Member Avatar for SpS

For all functions, a domain error occurs if an input argument is outside the domain over which the mathematical function is defined. On a domain error, the function returns an implementation-defined value.

Member Avatar for Dave Sinkula
0
340
Member Avatar for Comatose

Narue, You are not going anywhere. You are one of the reason why people like me visit this forum.

Member Avatar for Ancient Dragon
0
1K
Member Avatar for mikeregas

Something like this [code] #include <stdio.h> #include <stdlib.h> #include <string.h> int recursivePalindrome(char *str, unsigned int index) { if (index > strlen(str)/2) return 1; if (str[index] == str[strlen(str)-index-1]) return recursivePalindrome(str, ++index); else return 0; } int main () { printf("%d\n",recursivePalindrome("yehey",0)); printf("%d\n",recursivePalindrome("w00t",0)); return EXIT_SUCCESS; } [/code]

Member Avatar for ArkM
0
143
Member Avatar for pb2006

[QUOTE=pb2006;290285]I found many tutorial sites are bookmark like. Anybody knows some good programming tutorials site with rich content?[/QUOTE] By programming tutorial I guess you mean C or C++ tutorial since this is a C and C++ forum Check [URL="http://www.cplusplus.com/"]this[/URL] and [URL="http://www.cprogramming.com/"]this[/URL]

Member Avatar for Flamingkat
0
142
Member Avatar for allwiyn

[quote=allwiyn;423639][B]Hi, How to write a function that checks if the circle passes through given four points.. please answer this with code or just give me the logic and concept of writing this...[/B][/quote] [URL="http://www.daniweb.com/forums/announcement8-2.html"]Help yourself by reading this[/URL]

Member Avatar for VernonDozier
0
110
Member Avatar for Croft .L
Member Avatar for joshmo
0
131
Member Avatar for zellex

[QUOTE=zellex]what does [code] bool bad_move[7] [/code] do? [/QUOTE] It creates an array of bool. [QUOTE=zellex]what does the bool do overall?[/QUOTE] Answer already given in previous post.

Member Avatar for mentkapto
0
1K
Member Avatar for invincible_king
Member Avatar for Ancient Dragon
0
112
Member Avatar for farag

The reason for linker error is that the definition of the function template has not been instantiated. In order for a template to be instantiated, the compiler must know which definition should be instantiated and for what template arguments it should be instantiated. Unfortunately, these two pieces of information are …

Member Avatar for farag
0
158
Member Avatar for dophine

If you would have been given an options to implement operator++() which would work for both versions of ++, how would you do it? You need to find some way to distinguish between both of them.

Member Avatar for dophine
0
140
Member Avatar for baddal

Best way would be to get a book. Some of the recommendations [url]http://www.daniweb.com/forums/thread70096.html[/url] One online tutorial [url]http://www.cplusplus.com/doc/tutorial/[/url]

Member Avatar for SpS
0
104
Member Avatar for mario123

Another link [URL="http://users.aber.ac.uk/auj/voidmain.shtml"]void main(void) - the Wrong Thing[/URL]

Member Avatar for Narue
0
404
Member Avatar for dexter1984

[QUOTE=dexter1984;536962]Hi guys, I need some help with arrays. [ICODE] #include <iostream> #include <ctime> using namespace std; void constructArray (int [], int); void printArray (int [], int); const int MAX = 30; int sizeArray = rand() % MAX; int main() { srand(time(NULL)); int makeArray [sizeArray]; constructArray [makeArray, sizeArray]; printArray [makeArray, sizeArray]; …

Member Avatar for SpS
0
165
Member Avatar for rathmal

[QUOTE=rathmal;536877]please help me to write a program in c++ to find sum of first and last digits of any number[/QUOTE] / and % can come handy.

Member Avatar for SpS
0
130
Member Avatar for Squeeker

[QUOTE=Ancient Dragon;535021]why don't you do this the easy way by using the ifstream >> operator to remove all white space between words with output the word just read with one space [code] string word; while( infile >> word) outfile << word << " "; [/code][/QUOTE] Like Larry Wall said: "Make …

Member Avatar for Squeeker
1
1K
Member Avatar for JJ___

List Is Very Long But My Favorites 1.Age Of Empires-2 Conquerors 2.Quake-II 3.Need For Speed-2 4.Unreal Tournament 5.Poker

Member Avatar for maravich12
0
993
Member Avatar for Narue

Use a descriptive name for the [I]type[/I]. If you are having difficulty in finding a name for the type, you should do some more research about the [I]type[/I]. You still don't know enough about what you want to implement.

Member Avatar for bector
2
8K
Member Avatar for prasath

[QUOTE=prasath]will someone point me the reasons why a call to [B]malloc [/B]fails even if we have enough memory ?[/QUOTE] show your code which is failing and make sure you are not passing -1 in malloc.

Member Avatar for dubeyprateek
0
3K
Member Avatar for The Dude

[QUOTE=server_crash]Just a bunch of garbage. Half of them look like rain or something was on the camera lenses, and the rest look awfully close to photoshop edits.[/QUOTE] Totally Agree

Member Avatar for sneekula
0
271
Member Avatar for LoneWolf2100

The End.