Posts
 
Reputation
Joined
Last Seen
Ranked #1K
Strength to Increase Rep
+3
Strength to Decrease Rep
-0
100% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
1 Commented Post
0 Endorsements
~2K People Reached
Favorite Tags
c++ x 21
Member Avatar for smithss

[code=c++]int** a = new int*[col]; // works int** b = new int[][col]; //error cannot convert from 'int (*)[1]' to 'int ** int* c[] = new int[][col]; /error cannot convert from 'int (*)[1]' to 'int *[]' [/code] The first one works, but i get these errors when i use the other …

Member Avatar for VernonDozier
1
137
Member Avatar for smithss

Hi Guys, i wrote a program that starts another thread. In one case i thought that i have introduced a memory leak and i should get a segmentation fault but i didn't !! That's kind of puzzled me so i decided to post it here. [code=c++] #include <iostream> #include <windows.h> …

Member Avatar for Salem
0
137
Member Avatar for smithss

Hi, Is it possible to find out what all object files were put into an exe? Does it sound like a weird question? Well i have a c++ executable which was a simple program created by linking 2 .obj files. Can i now get this information from the exe which …

Member Avatar for clandestine_j
0
79
Member Avatar for iansane

Hi, I have read about using sprintf and tried it but can't make sense of how it works. I have a double with the value 16.525 . I want to cout only 16.53 I also tried setprecision() and it just cuts off the 5 on the end which won't display …

Member Avatar for vmanes
0
714
Member Avatar for smithss

Hi guys, I wrote a program which used an external library. i was asked to include a .h file for compiling and link with the '.lib' while linking. I don't understand the reasons behind all this? Can someone explain? 1>What happens when i include the .h and link with the …

Member Avatar for Nick Evan
0
171
Member Avatar for smithss

Hi Guys... I have some basic doubts with references and pointers and need some understanding on the behavior of this code [code=c++] #include <iostream> using namespace std; class a { public: int getAmount(a&); private: int amount; }; int a::getAmount(a& p) { cout << this << endl; cout << p << …

Member Avatar for smithss
0
84
Member Avatar for smithss

Hi, so i wrote a few of the programs on my own after all the help previosuly but i've got stuck in this one here. The point is the make the string alteast 'n' characters long by padding spaces to its right. [code=c++] #include <iostream> using namespace std; void padRight(char …

Member Avatar for smithss
0
129
Member Avatar for smithss

Hi i have written a standard library function 'strcat' on my own, even though the output seems ok, can someone please verify if what i'm doing is right? i get confused using pointers. [code] void mystrcat(char *a,char *b) { while (*a++ != '\0'); *a--; while (*a++ = *b++); } [/code] …

Member Avatar for smithss
0
111