-
Replied To a Post in java loop help
What do you need help with? What have you done? This is clearly homework, so we need some proof of effort before helping (as per Daniweb rules). -
Replied To a Post in rounding off numbers
What do you have so far? -
Replied To a Post in Programmatically creating pictureboxes?
Creating controls at runtime is certainly possible. For example: using System; using System.Drawing; using System.Windows.Forms; namespace FormScratch { public class MainForm : Form { private Button buttonAddImage; private FlowLayoutPanel flowLayoutPanelThumbs; … -
Replied To a Post in What is the most powerful programming language?
> But I cannot accept to call a language or platform "powerful" when the closest you can reasonably get to the "best" solution is ridiculously far from it. No offense, … -
Replied To a Post in arrays
All I see is a homework assignment, which violates our rules. Please show us your honest attempt and ask an actual question. -
Edited q basic programming
write a program in Q basic programming language that will produce and calculate the average of five numbers. -
Replied To a Post in Time complexity of algorithm
Complexity theory isn't easy unless you're a math whiz. I always preferred a more practical approach, which I've described [here](http://eternallyconfuzzled.com/arts/jsw_art_bigo.aspx). But it looks like you already have those basics essentially … -
Replied To a Post in Best Monitor 2015
> the best monitor is what you like the best, at a price you can afford Much yes. I'm a fan of Acer LED monitors, personally. -
Replied To a Post in What is the most powerful programming language?
> sorry, but both of those languages are FAR from secure. > (I can decompile both of them with 1 finger) I think it would be good to define what … -
Edited Get difference in minutes
my firstvariable is and second variable is $one=07:54:PM; $two=07:55:AM; I am suffering from getting difference in munutes any body help me result in minutes. -
Edited C++ Program Segment output
What is the output of program segment: vecList: push_back(3); vecList: push_back(5); vecList: push_back(7); vceIt = vceList.begin( ); ++vecIt; vecList.erase(vecIt); vecList.push_back(9); copy(vecList.begin( ), vecList( ).end( ), screen); cout << end1; -
Replied To a Post in Double Compoarison for range is not working
Well, one thing that stands out immediately is C isn't so pretty that it allows commas in a large number. In fact, if you're exceptionally unlucky (which it seems you … -
Replied To a Post in void pointers
> but I use ++ for pointers and it worked my compiler is microsoft visual c It works for typed pointers, but not pointers to void even if you cast … -
Replied To a Post in C++ Question
Help yes, do work for you, no. -
Replied To a Post in void pointers
You've mostly got it: #include <stdio.h> int main(void) { int k = 80; void *p = &k; printf("%p\n", p); // Move forward one byte p = (char*)p + 1; printf("%p\n", … -
Replied To a Post in Time complexity of algorithm
> Just for my understanding, it means that the time complexity that we find using Big-Oh, Omega or Theta is not the actual execution time of the program? Correct. The … -
Gave Reputation to Tigr@ in Bitmap images are twice as big?
Awnsered, needed to set the resolution. -
Replied To a Post in Time complexity of algorithm
> Also if the time xomplexity of both the methods is O(n), then how is the second method runs faster than the linear search method? Big O only tells you … -
Replied To a Post in help to be passed on march 16th
Nesting functions is not supported in C++. -
Replied To a Post in Linked List Output help
The two primary problems are that head is never updated in `main`, and your output loop never sets `stdPtr` to `stdPtr->next`. Given your description of the problem, as well as … -
Replied To a Post in Scanf program
> On Windows it is '\r\n' on Linux it is '\n'. Which is largely irrelevant because text oriented streams will convert the platform's representation of a newline into '\n'. There … -
Replied To a Post in When to declare arrays???
Agreed with Moschops, but this is still a legitimate question. > When does it become necessary to allocate memory for an array? Typically when the size of the array is … -
Replied To a Post in What are activity points?
Your fabulous prize is being listed on the day's leaderboard. ;) -
Replied To a Post in What Languages Can You Guys Speak?
English, a bit of Japanese, and fluent profanity. -
Replied To a Post in password
This is your homework, not ours. We'll help if you have a specific question, as long as the specific question does not constitute "do it for me". -
Replied To a Post in assignment operator overlaoding in context of different objects
> and there is no relation between bitmap and widget Well, they're still coupled together in that `widget` knows about and contains a `Bitmap`. The problem from before is treating … -
Replied To a Post in Windows 10 New Icons
They changed the Recycle Bin icon? That's my favorite feature, and the only reason I use Windows! That's it, I'm officially and irreversably moving to Minix. This travesty cannot be … -
Replied To a Post in assignment operator overlaoding in context of different objects
> could you let me know why after assignment i am getting error like a* can't be assigned to b* or vice versa Because they're not compatible types. An `a` … -
Replied To a Post in Advice Please
Write code. Lots and lots of code. -
Replied To a Post in assignment operator overlaoding in context of different objects
> It is not incorrect way to delete the cobj operator. In your first snippet (you'll notice, that's what I referred to before), it very much is incorrect because the … -
Replied To a Post in assignment operator overlaoding in context of different objects
The code looks dicey, especially how you incorrectly delete `cobj` in the first code. What are you really trying to accomplish with this? The class and variable names aren't enlightening … -
Replied To a Post in why two char* point to same address?
> so this is not language dependent right? After a fashion. It's a language-dependent optimization, but it *is* very common. I would default to assuming that string literals are shared … -
Replied To a Post in C#application
Good luck and have fun! :) -
Replied To a Post in How do you get 15 reputation points in 15 minutes?
> Is it possible to obtain 15 reputation points in your first 15 minutes of registering? Yes. If you catch the eye of one of our heavy hitters in terms … -
Replied To a Post in 2d vector
> How later on reset all elements back to 0.0? There are a number of ways. One that comes to mind is: v2d.assign(2, vector<double>(3)); This will completely replace the contents … -
Replied To a Post in General C++ Questions
> I thought of searching the web And what did your web search tell you? Some of your questions are easily answered with a web search, so my answers may … -
Replied To a Post in why two char* point to same address?
It's a compiler optimization. Given that string literals are read-only, there's no reason to create two separate instances of the same string literal in memory. -
Replied To a Post in Passing variable from function to function
Functions support parameters, which are designed for this exact purpose: int add(int a, int b) { return a + b; } int main(void) { int a = 5; int b … -
Replied To a Post in C Hates Me... and I hate it back!
If you show us your code, we can offer advice on improving it. For now, I can only answer your questions. > Does fscanf not work with negatives? It works … -
Replied To a Post in help
Please read our [rules](https://www.daniweb.com/community/rules) concerning homework. I'll give you time to ask a more specific question and show your work thus far. Otherwise this thread will be closed as a … -
Replied To a Post in Write a code in C# to implement an enumeration of 12 months named YEAR. Als
> I humbly apologize and throw myself upon the mercy of the court... I find you guilty and sentence you to ten lashes with a wet noodle. After that, you … -
Replied To a Post in Please sugget how can i make these source code more effecient. Thanks alot.
> However, students may also appreciate knowing that the author of C++, Bjarne Stroustrup himself, recommended cin.sync() to flush the cin stream, as used in the above code. Yes, I'm … -
Replied To a Post in search algortihm
> i need the name of simple search algorithms And you have a list of most of them. Put in some effort, dude. We're not going to do your homework … -
Replied To a Post in search algortihm
http://en.wikipedia.org/wiki/Category:Search_algorithms -
Replied To a Post in Please sugget how can i make these source code more effecient. Thanks alot.
> cin.sync(); // 'flush' cin stream ... Sadly, [it's not that easy](https://www.daniweb.com/software-development/cpp/threads/90228/flushing-the-input-stream). `istream::sync` is in no way guaranteed to read and discard remaining characters in the stream. The best approach, … -
Replied To a Post in An image is worth thousand words
> Please help me with reasons or ideas to support the above statement To qualify Davey's hilarious response, your "question" reeks of homework. As such, we'll require that you put … -
Replied To a Post in Scanf program
`stdout` and `stdin` are not tied, so the output from `printf` is only guaranteed to be flushed if you print a newline or call `fflush`. In this case, you probably … -
Replied To a Post in puts() return value
If there's a write error to the destination stream, you'll get a return value of `EOF`. Typically this means something along the lines of the target device no longer being … -
Replied To a Post in Going back to the same form and updating info (C#)
That design sounds dicey to me. My preference would be for the main form to manage itself completely, where temporary dialog forms are opened as needed and pass back information … -
Replied To a Post in malloc and free implementation
What does `allocate` look like?
The End.