- Strength to Increase Rep
- +3
- Strength to Decrease Rep
- -0
- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
[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 … | |
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> … | |
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 … | |
Re: Hey, I was trying to write something to help you and got confused myself by this output. May be someone can take a look at this too. Its all related so I'm not starting a new thread [code=c++] #include <iostream> #include <iomanip> int main() { std::cout << std::setprecision(2) << std::fixed … | |
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 … | |
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 << … | |
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 … | |
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] … |