-
Replied To a Post in Binery Tree
Structure definitions need to be terminated by a semicolon: struct node { int data; node *right; node *left; }; Without it, the compiler is treating the class definition as part … -
Replied To a Post in const with pointer, What is the constant?
For the most part, whitespace in C is ignored. All three of your examples are functionally identical. You could also say `const char*buf` and it'll work fine because the tokens … -
Replied To a Post in error ace oledb 12.0 not installed on local machine
Put simply, those providers aren't installed by default. Typically, installing [this](http://www.microsoft.com/en-us/download/details.aspx?id=13255) as a prerequisite solves the problem. -
Replied To a Post in what difficulties most of the beginners in c++ programming student face i g
> i try to things the as simple as i can so every beginner can understand the logic of program. If by simple you mean very little extraneous fluff in … -
Edited what difficulties most of the beginners in c++ programming student face i g
what difficulties most of the beginners in c++ programming student face i guess logic building ** i have a blog about c++ programming for beginners on which i try to … -
Replied To a Post in For ADMIN of daniweb
We already have a chat feature. On the footer bar you'll find one quick way to get to it (the Chat button). -
Replied To a Post in const with pointer, What is the constant?
The character(s) pointed to by `buf` are treated as read-only. To make the pointer itself `const`, place the keyword after the asterisk: char * const buf; // const pointer to … -
Replied To a Post in Decipher Broken English
Having studied a second language I understand how difficult it can be. Understanding English and linguistics in general I can certainly understand difficulties learning English (it's far from simple even … -
Replied To a Post in A word document's contents as the body of an email meassage
Are we talking about working with OpenXML directly or through an SDK? -
Gave Reputation to rjdoll77 in Are forums dying?
forum is the best source of getting the back links so how it can be died -
Replied To a Post in Need Help with Dev c++
> but remember that without the flush or endl output manipulator, your output could be intermixed with output from other (background) processes Thus why one should understand when and why … -
Replied To a Post in Need Help with Dev c++
> The newline tokens will not flush the output stream. And they likely don't need to do so. This particular statement strikes me as one of the following: 1. Part … -
Replied To a Post in Need Help with Dev c++
It's syntactically incorrect since the string literal wasn't properly started, but otherwise the code is legit C++: cout << "Concert4 Program Answers.\n\n"; What concerns in particular do you have about … -
Replied To a Post in make code run both under visual studio and linux g++?
> I know this post is over 2 years old but I really hate it wen people post answers who don't know what they are talking about. Me too. Especially … -
Replied To a Post in What is the safest browser for Windows XP?
It seems like you're asking for a browser that stops people from doing stupid things without any effort on their part. Sadly, that's not a reasonable expectation out of *any* … -
Replied To a Post in What is the safest browser for Windows XP?
Pretty much all you've got left in the big hitters is Safari. -
Replied To a Post in "*" Pattern
Yes. -
Replied To a Post in Syntax Error in C code
> I figured it makes all the slots empty is that correct? Presumably, yes. I take it you didn't write all of that code yourself? -
Replied To a Post in Syntax Error in C code
The only obvious potential issue at a glance is this: while (cWhoWon == ' '){ Your character literal is two spaces rather than one. -
Replied To a Post in array code addition
Do you really want to terminate the program or just terminate the input process? The latter strikes me as more intuitive: int main() { int arr[0], i, sum = 0; … -
Replied To a Post in Adding drag&drop
> I'am curious if it is possible and how to add drad & drop functionality to a window of an external application. Only of the external application supports drag and … -
Replied To a Post in lap sheet
> so plz send me source code No, do your own homework. If you have specific questions or problems, feel free to ask those, but Daniweb is not your personal … -
Replied To a Post in Pointers
> There is no distinction between an array and a pointer this (1st) case. Yes, that's close enough. > It looks like as if p is hidden array of pointers. … -
Replied To a Post in how to Dynamically allocate the size of an array in c during Runtime
> C99 concept of variable array is not accepted in Recent Compilers .They give errors like" Constant Expressions required in Function main on line 9" Then you're not compiling as … -
Replied To a Post in Pointers
Your code is still broken. A correct variation would be: int a[2][3] = {{8, 9, 10}, {11, 12, 13}; int *p = a; printf("%p\n", p[1]); // Prints the address of … -
Replied To a Post in Tables in Text Editor
Possible, yes. We technically could extend Markdown to support this feature, but I suspect Dani doesn't want to lock us into a specific version of the libraries because that would … -
Replied To a Post in Arrays in C++
> does that equivalent to `int *pa=new int[10];`? No. `int*` and `int(*)[10]` are two completely different and incompatible types. -
Replied To a Post in Pointers
> What I meant to say is 'p' is declared as Pointer Variable and not Array of Pointers, so as to point to multiple variables. A pointer is just a … -
Replied To a Post in Swap 2 number without using third variable
> void Change_Address( int *&p, int *&pt) That's C++, not C. -
Replied To a Post in Pointers
> Is there any place I can read more about this type mismatch. [Click Me](http://publib.boulder.ibm.com/infocenter/comphelp/v7v91/index.jsp?topic=%2Fcom.ibm.vacpp7a.doc%2Flanguage%2Fref%2Fclrc03compatible_types.htm). > It looks like as if p is hidden array of pointers and it is … -
Replied To a Post in Pointers
> `*p=&a` or `*p=a` will assign base address to p, which is equivalent to `*p=&a[0]`. Type matters, even if the addresses are all the same. `*p = &a` assigns a … -
Replied To a Post in Pointers
`*p=&a` is a type mismatch if you want to flatten the array. Try `*p = &a[0]` instead. Also note that this trick isn't strictly portable due to how C restricts … -
Replied To a Post in String Declaration
`malloc`, `realloc`, and `free`. You have control over how much memory is used at any given point, but that control comes at the cost of managing allocations. The starting point … -
Replied To a Post in String Declaration
The last two would be recommended for not wasting memory. However, there are two questions that determine which you use, or if you want to go with dynamic memory allocation … -
Replied To a Post in static variable in local class
> She is referring to a local class, not a nested class. Ah, my mistake. I read the question too quickly. -
Replied To a Post in Post Increment Problem.
> Any solution to this problem other than separately evaluating expressions ? Nope. > What does it mean by "all side effects of previous evaluations will have been performed, and … -
Replied To a Post in Post Increment Problem.
> But, dosen't post increment supposed to hold its concept for every kind of compiler ? Yes. The problem is that the compiler can reorder and change expressions between sequence … -
Replied To a Post in Post Increment Problem.
> Someone please point out where is loophole in my knowledge. The missing link is sequence points and undefined behavior. In `c=(--a)+(--a);`, `a` is being modified multiple times between sequence … -
Replied To a Post in static variable in local class
You can, but static data member definition isn't exactly intuitive without a fairly good understanding of the object model: class outside { public: class inside { public: static int x; … -
Replied To a Post in Increase the quality of content
Continuing milil's tangent, there *are* experts in the Java forum, for example. However, the questions on average are gradually becoming dumber, lazier, and a waste of time. So encouraging experts … -
Replied To a Post in Pointers and arrays
Because `10, 20, 30` does nothing more than evaluate to `30` due to how the comma operator works. `30` is an integer literal, which isn't compatible with a pointer to … -
Edited NEW C++ PROGRAMMER
Hi Daniweb programmers.I am a kenyan guy in University of Nairobi Doing an undergraduate degree in CIVIL ENGINEERING but I am a teaching myself C++ because I feel an inborn … -
Replied To a Post in Cloud Computing
> I don't really means what cloud computing really means. It's nothing more than a marketing term for distributed computing. The internet is the quintessential cloud. -
Edited Simple doubt regarding deletion of record from a binary file.
If i uncomment the lines in between, all the records get deleted. Why?? void Hatao() { int no; system("cls"); cout<<"\n\n\n\tDelete Record"; top:cout<<"\n\nPlease Enter The roll number of student You Want … -
Replied To a Post in OOPS is just a method, Not having advantages
> But what if unknown coder is smart enough to change hidden data of class? Then unknown coder will be breaking the contract and if the hidden data of the … -
-
Replied To a Post in fprinft fscanf code execution doubt!!
Please elaborate on what these "errors" are. -
Replied To a Post in How to compare a vector to a map
> can you explain to me how the find_if works? It works exactly like `find`, except instead of comparing against a value, it calls a predicate (in the form of … -
Replied To a Post in Going to new line (sqlcommand class)_
Two options. One is a verbatim string: var query = @"select beggining_school, end_school FROM Student,student_weekend,Weekend WHERE Student.ID=student_weekend.studentID AND student_weekend.WeekendID=Weekend.ID" Note that indentation is significant in the string, as are newlines. … -
Replied To a Post in data file that can only be accessed by program
[Isolated Storage](http://msdn.microsoft.com/en-us/library/3ak841sy(v=vs.110).aspx). It's not completely protected from user access, but not as open as arbitrary files.
The End.