Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
82% Quality Score
Upvotes Received
15
Posts with Upvotes
12
Upvoting Members
12
Downvotes Received
3
Posts with Downvotes
3
Downvoting Members
3
3 Commented Posts
0 Endorsements
Ranked #2K
~30.4K People Reached
Favorite Tags
Member Avatar for Ancient Dragon

A cat has 9 lives -- what has more than 9 lives? Answer: Frogs because they croak every night. (Duck Dynasty)

Member Avatar for jkon
4
4K
Member Avatar for Tycellent

Hey everyone, In addition to... Lazy Foo's Tutorial http://lazyfoo.net/tutorials/SDL/index.php "SDL Game Development" - Shaun Mitchell book are there any other recommended resources (does not have to be SDL) people could suggest? I've already created a console-based text adventure game and am really interested in expanding it into a text-adventure game …

Member Avatar for wafa_1
0
291
Member Avatar for Sarkurd

Hello. I have a few Qs about Hash tables. how does `std::hash` return a `std::size_t`? for example how does it convert a `std::string("Hello")` to `std::size_t`? How do these functions work? i have no idea what's `hash_combine` and `seed` do in `hashval.hpp` This is from STL 2nd edition. hashval.hpp #include <functional> …

0
131
Member Avatar for Sarkurd

Hi It's been a while i'm learing C++ but still i have some issue with `Move semantics` and some other stuff. I wrote this class but i don't know why the `Copy constructor` is getting called and the output is a little strange to me, shouldn't the `Move Constructor` gets …

Member Avatar for Sarkurd
0
275
Member Avatar for chilly_peppers

In this game you need to give wierd reasons to ban who's on top. i will start: **I Ban you for looking at me!**

Member Avatar for XP78USER
2
1K
Member Avatar for Sarkurd

I have some confusion about Copy Constructor. Why this program crashes if we remove Copy Constructor `MyString`? #include <iostream> #include <cstring> using namespace std; class MyString { private: char* Buffer; public: // constructor MyString(const char* InitialInput) { cout << "Default constructor: creating new MyString" << endl; if(InitialInput != NULL) { …

Member Avatar for Sarkurd
0
288
Member Avatar for nitin1

I am using namespaces from a long time now. But, I don't know why we need them at the end? Why do I need to write using namespace std; OR std::string Why do we have to do this? Why have they made it this way? Can you elabroate this thing? …

Member Avatar for Itecg
0
266
Member Avatar for moaz.amin.37

i write a code that coun t the number of upper case letter in a string there is a problem my code count space as capital letter code is below #include<iostream> #include<conio.h> #include<cstring> #include<string.h> using namespace std; class Letters{ private: char str[20]; int num; public: Letters(){ str[0]='\0'; num=0; } void …

Member Avatar for Sarkurd
0
642
Member Avatar for shahab saeed

hi! i have written a code of linked list using character array to add and display data, it can add data but not display. can anyone help?? thanks. #include<iostream> using namespace std; class node private: char data[30]; node* next; public: char showdata() { return data[30]; } void setdata(char c[40]) { …

Member Avatar for tinstaafl
0
142
Member Avatar for Sarkurd

Hi I have tried to implement Linked-List data structure and i was folowing a guide but i have an `error` in line 12 in `contactlist.h` I have included `contact.h` properly but still not working :-/ contact.h #ifndef CONTACT_H #define CONTACT_H #include <iostream> #include <string> #include "contactlist.h" class Contact { private: …

0
93
Member Avatar for yeyo_1

can someone give me a detailed explaination why this won't compile, thanks` #include <iostream> using namespace std; int main () { int num1 = 5, num2 = 10; if (num1 < num2) { cout<<”num1 is less than num2”; else cout<<”num1 is not less than num2”; } return 0; }

Member Avatar for yeyo_1
0
179
Member Avatar for Nana_29

Solutions to quadratic equation Ax^2 +Bx+C=0 All solutions must be calculated in visual studio including the imaginary parts and using if statement

Member Avatar for NathanOliver
-1
178
Member Avatar for Tycellent

So i've decided to use SFML and i'm just trying to figure out its advantages and disadvantages...I've looked around and this is what i've got so far. Advantages: * Cross Platform * OO Design * Simple and fast (subjective) Disadvantages: * Quite new Any additional thoughts will again appreciated

Member Avatar for Sarkurd
0
655
Member Avatar for Gusani_1

Hello Friends, I want to know - "What is Polymorphism in C++?" Books can not help me...please make me clear about it..in simple terms..please...!!

Member Avatar for DonnSchwartz
0
210
Member Avatar for tentrabyte

Can anyone help me? my problem is that when i enter my full name it forcefully close. i don't know why. please help me with my problem #include <iostream> #include <string> using namespace std; string name, zodiac, horoscope; int age, month, day; cout<<"Enter your Full name: "; cin>>name; cout<<"Enter Age: …

Member Avatar for Sarkurd
0
2K
Member Avatar for Sarkurd

Hi I wrote a Singleton class but i got an error while controlling instantiation captain.h #ifndef CAPTAIN_H #define CAPTAIN_H #include <iostream> #include <string> class Captain { private: Captain(); Captain(const Captain&); Captain &operator=(const Captain&); std::string name; public: //Controll Instantiation static Captain &GetInstance(); //Set Name of the Captain std::string GetName(); //Get his/her …

Member Avatar for Sarkurd
0
187
Member Avatar for muhammad.husnain.5099
Member Avatar for andrew mendonca

Define a function void order(int & a, int & b, int & c, bool ascending) that places the values in ascending or descending order, depending on whether the last parameter is true or false . For example, if x, y and z contain the values 3,1, and 2, respectively, then …

Member Avatar for ryantroop
0
223
Member Avatar for Sarkurd

Hello I use MinGW 4.8.2 and Qt IDE i tried to use `gprof`, I added the following flags QMAKE_CXXFLAGS_DEBUG += -pg QMAKE_LFLAGS_DEBUG += -pg to `.pro` file and extarcted the `gmon.out` file but i don't know how to convert it to a `.txt` file. the document say gprof options [executable-file …

Member Avatar for Sarkurd
0
353
Member Avatar for AZERIOMON

1. Create a class called Record that financial institute might use to represent their customer's record. This class should include one data member of type int to represent the account balance. Provide a constructor that receives an initial balance and uses it to initialize the data member. The constructor should …

Member Avatar for Sarkurd
0
292
Member Avatar for Ivzirnalsradeys

For this question, select and name a high-level language you will be discussing. Diagrams might help in your answers. a) Explain how the computer passes control to a subroutine (or procedure) and returns it to the main routine once the task has been completed. b) Explain, giving a relevant example, …

Member Avatar for Taywin
0
229
Member Avatar for iqra aslam
Member Avatar for Sam_6
-1
227
Member Avatar for tan.revilleza

while loop or doo loop the output should be like this 1 12 123 1234 123 12 1 and 1234 123 12 1 12 123 1234 tnx

Member Avatar for Sam_6
-1
255
Member Avatar for andrew mendonca

Without using arrays, write a complete program that reads three integers from the console and outputs the same three numbers in ascending order on separate lines. For example if the input is 5 4 3 then the output will be 3 4 5. Do not prompt the user or produce …

Member Avatar for Taywin
0
3K
Member Avatar for iqra aslam

how can i download the c++ software, like turbo c can any one give me the link?

Member Avatar for mike_2000_17
-1
226
Member Avatar for joel_3

Hello everyone!i'm new here and in c++ programming.I've wrote about 30 small programs and when i close the program and want it to run after, it compile well but when i'm waiting the answer, it comes and goes fast.i've tried to put cin >> a; as told me someone to …

Member Avatar for Sarkurd
0
87
Member Avatar for david muchuku
Member Avatar for Moaid

im using windows 7 64bit along with codeblocks and mingw and im trying to use non standard c++ libaries such as SDL , allegro and sfml but when i link them and try to compile the examples some work and some dont i wonder what i did wrong ? I …

Member Avatar for DeanMSands3
0
246
Member Avatar for Sarkurd

Hi what are Macros used for in C++? i never heard this word in my entire life :D and what are `assert()` and `NDEBUG`?

Member Avatar for Sarkurd
0
173
Member Avatar for Sarkurd

Hi i tried to test some new features of C++ 11 but how come Visual Studio doesn't support `constexpr`? i tried this simple function but it won't compile constexpr int multiply(int x, int y) { return x * y; }

Member Avatar for Sarkurd
0
1K