- Upvotes Received
- 3
- Posts with Upvotes
- 3
- Upvoting Members
- 3
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
big,crazy,sweet..
- Interests
- video games ,iOS dev ,mobile app dev
- PC Specs
- mac osx , 8GB , intel i5
37 Posted Topics
Re: type name ( parameter1, parameter2, ...) { statements } Where: - type is the type of the value returned by the function. - name is the identifier by which the function can be called. - parameters (as many as needed): parametes. [[Click Here](http://www.cplusplus.com/doc/tutorial/functions/)](null) | |
Re: char *p = "Hello" ; // The pointer is mutable . "Hello" is a string literal and as per c++ standard ,you //are not supposed to modify it . Doing so may result in unexpected behavior. *p = 'M' ; // Do not use the pointer to change . p … | |
Re: HI Harry, I think it depends on the product that you are marketing. If you don't have a strong customer/ user base then you should go with website . Mobile apps are more convenient for purchasing online these days . You can re-direct the user from website to app. Regards, … | |
**Bold Text Here**I am trying to make a generic linked list . below is the code for linkedlist . #ifndef GenericLinkedList_h #define GenericLinkedList_h #include <iostream> #include "GenericLinkNode.h" //class GenericLinkedList; template <typename T> class GenericLinkedList { private : GenericLinkNode<T> *head; public: GenericLinkedList(); void traverse(); bool isEmpty() { return head == NULL … | |
Hi All, I am trying to implement generic link list in c++ . But getting below error . Please assist me to correct it. LinkedList.hpp LinkNode<E>* head; errr: unknown tpe name ''LinkNode // LinkNode.hpp // cplus // // Created by Ravi Rathore on 10/12/15. #ifndef LinkNode_hpp #define LinkNode_hpp #include <stdio.h> … | |
Re: Hi Manish, You have to copy 20141001 from the "data" in a variable. Regards, ravi | |
let session = NSURLSession.sharedSession() //1 let downloadTask = session.downloadTaskWithURL( url, completionHandler: { [weak self] url, response, error in // 2 // return } ) Please explain the meaning of [weak self] inside closure . what if we dont declare it as [weak self] ? Thanks / | |
Re: I hope this will help.Only three steps i have explained .  | |
Re: I think you want someone to complete your assingnment. :) // Example program Hint: Use cmath and std::pow(float,float) method. // formula is a=p(1+j/n)n*t /* S = value after t periods P = principal amount (initial investment) j = annual nominal interest rate (not reflecting the compounding) n = number of … | |
Re: Yes. They have planned to replace objective c with swift . Swift is fast and easy to learn but i find objective c more interesting . :p | |
#import "Person.h" @class Asset; //i have used import "Asset.h" which contains definition for asset @interface Employee : Person { int employeeID; NSMutableArray *assets; } @property int employeeID; - (void)addAssetsObject:(Asset *)a; - (unsigned int)valueOfAssets; @end I got this snippet from objective c book. In the second line , author has used … | |
assume latgeInt=2147483647 Debug.Log(largeInt); //2147483647 float largeFloat = largeInt; Debug.Log(largeFloat); ///2.147484E+09 int backAgain = (int)largeFloat; Debug.Log(backAgain); //-2147483648 *This part i did not get. I assume there was some data loss when float was explicitly casted into int . But the loss should be in right most digits. How come sign got … | |
the relation betwwen student and course entity is many to many.but it is not recommended .how can we convert it to two one to many relationships? | |
**The special rules for inline functions require that they be defined in each file in which they are used.The easiest way to make sure that inline definitions are available to all files in a multifile program is to include the inline definition in the same header file in which the … | |
**The special rules for inline functions require that they be defined in each file in which they are used.The easiest way to make sure that inline definitions are available to all files in a multifile program is to include the inline definition in the same header file in which the … | |
My header file header.h #ifndef HEADER_TEST #define HEADER_TEST static test_variable; #endif now i am including this in two source files IN THE SAME PROJECT. multiple definition error. i have used static specifier in header file . please help me understand this.i think static makes internal linkage. regards, ravi | |
please help me to understand the output void main() { printf("%x",-1<<4); return ; } -1 is represented as **1111 1111** so in hexadecimal form it should be FFh but compiler displays ffff ffff | |
i read the following line from programming wiht c by byron s gottfried. **"only external and static array can be initialized"** however when i tried initialising automatic array ,the program works . please explain. | |
Re: Waits for a pressed key. C++: int waitKey(int delay=0) | |
IplImage *in; CvMemStorage *storage = cvCreateMemStorage (20506); CvSeq *contours=NULL; CvPoint *PointArray=NULL; for() { //image processing and feature extraction code here cvClearMemStorage (storage); //clear memory area free (PointArray); cvReleaseImage (&in); } At the end of each iteration i ma releasing memory but still i get memory shortage error after # processing … | |
i am not able to connect to the sql server on my system. SqlConnection^ connection=gcnew SqlConnection(); connection->ConnectionString ="Data Source=blueboy\sqlexpress;Initial Catalog=DCV_DB;Integrated Security=SSPI;Pooling=False"; i got the string from database properties.(i have attached the same in this post) sql service is running. tcp ports are enables too. | |
i am developing a project in c++ and i need database to save details.i googled but so far have bot come across a good tutorial for c++ database . most of the articles i have found are obsolete. please suggest what are APIs for database in c++? | |
i found following code to create a two dimensional array at run time if one of the dimension is known.. char (*c)[5]; c=new char[n][5]; first line is pointer to an array of 5 integers but i couldnt undesratnd the second step. | |
Re: use temporary variable for moving the items and for binary conversion ,you can easily write code .. | |
 i am reading "pointers in c by naveen toppo" .According to him program crashes when it encounter int y=*ptr; i dont understand why it should crash?i think its correct. *ptr gives int value. please refer attachement. | |
Re: c doesnot support fucntion overloading.. use .cpp extension. | |
Re: please refer to following books:- 1. Operating Systems 5th Edition. Author, William Stallings 2. Operating System Concepts 8th Edition Author: Silberschatz Galvin i read last semester and the topics have been explained in very precise manner. | |
i made a project using visual studio and opencv ,it worked fine. however later i thought of adding GUI. i googled and found abput QT.some how i managed to include libraries and build paths,when i use **C fucntions of opencv** the program works fine but when i use ***c++ features … | |
Re: i would sugesst you to start from the scratch.do not copy code from the internet. project is a perfect way to build th foundation. | |
when i try to use undefined object ,i get compiler error but there is no option regarding compiler error. | |
Re: if you are newbie ike me in c++.i would suggest **data structures and algorithms in c++ by adam drozdek** trees are explained with proper methods. http://www.amazon.com/Data-Structures-Algorithms-Adam-Drozdek/dp/0534491820 | |
i was reading a book and came across this line "C++ matches a pointer of any other type with type void * and prints a numeric representation of the address. If you want the address of the string, you have to type cast it to another type," please any one … | |
vector <int> a; //first vector vector <int> b; //second vector vector <int>::iterator i; //iterator for first vector vector <int>::iterator i1; //iterator for second vector //reading of first vector int temp; while(cin>>temp) { a.push_back(temp); } i=a.begin(); while(i!=a.end()) { cout<<*i<<" "; i++; } //end of reading first vector //reading of second vector … | |
for(i=a.begin();i!=a.end();i++) { cin>>*i; } for(i=a.begin();i!=a.end();i++) { cout<<*i; } above code works fine but when i use while loop to display vector , program crash. while(i!=a.end();) { cout<<*i; i++; } | |
According to Herbert schildt C++ complete reference "A non-static member variable cannot have an initializer." however when i run following code,it runs.. class ABC { public: int a=3; ABC(); }; ABC::ABC() {cout<<a; } int main() { ABC obj; } regards, | |
Re: Go for opencv. You can see documentation on internet. I would suggest "Learning OpenCV Computer Vision with the OpenCV Library" book if you are a beginner. regards, ravi | |
cout is defined in std namespace and we also include iostream to use cout...i am confused ,please clarify this.where 1)cout is defined 2)where it is declared. and if we are including iostream ,then what is the need of STD::COUT regards, |
The End.