Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
0% Quality Score
Upvotes Received
0
Posts with Upvotes
0
Upvoting Members
0
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1

35 Posted Topics

Member Avatar for theguitarist

Hey, I hope it is okay to post this here. I'll be interviewed by a few companies in some time and I heard mock interviews are a great way to be prepare for it (the mental aspect :)). So I was wondering if anyone else is the situation and would …

Member Avatar for theguitarist
0
258
Member Avatar for nitin1

From my experience, it isn't really easy to contribute to a not-so active project. I don't know if you will easily get into the flow, by forking any github project. Perhaps, you want to try a slightly large organization? Linux, Ubuntu, Fedora, Mozilla... they have these "where do I start" …

Member Avatar for theguitarist
0
254
Member Avatar for theguitarist

Hello, I have a graph that is represented in the form of a grid. For example: V--V --VV V---V VVVVV Each V is a node. If there is another V above/below/to the side of a V then there is an edge between them. I'm to form one single connected component …

Member Avatar for gusano79
0
152
Member Avatar for theguitarist

Hey, I had complained about this sometime ago and most of it got fixed and the site in general is a lot better. But there is one thing annoying about that "Insert with the Quote editor button" popup : 1. Select some text 2. even while the popup is being …

Member Avatar for theguitarist
0
247
Member Avatar for theguitarist

Look at this: http://www.codinghorror.com/blog/2007/01/how-to-become-a-better-programmer-by-not-programming.html Did someone who simply couldn't write efficient code (complexity-wise) before, felt intimidated by people who did, decide to work really hard, try to solve an insane number of problems, actually get better? I've been in touch with programming since some 4-5 years. Some of my friends …

Member Avatar for Reverend Jim
0
386
Member Avatar for theguitarist

I select something on a post and this shows up: `Select additonal text or insert with the Quote editor toolbar button` I understand that it is trying to teach us something but what about people who have learnt that? Also it has been very buggy in my experience: doesn't stop …

Member Avatar for theguitarist
0
125
Member Avatar for Himanshu Chawla

You're supposed to put some effort when you want help. People here are asked not to help when there is no effort shown in the question. Read [this](http://www.daniweb.com/software-development/cpp/threads/78223/read-this-before-posting-a-question) also.

Member Avatar for felceyboy
-2
201
Member Avatar for theguitarist

What are some common uses of HTML forms that contain just one text input and a submit button? The only one use I find is to submit search queries. Is there some other reason why this is commonly used?

Member Avatar for imBaCodes
0
195
Member Avatar for theguitarist

hi. I'm working on a project where I must observe form submissions in websites and detect a search engine if a form is used consistently. I don't really want any help with coding this. I just want some ideas for an algorithm. Like, **for example** if I were to come …

Member Avatar for theguitarist
0
439
Member Avatar for vishalonne

Your code worked when compiled with g++ compiler. Why is `showAges()` a member function? It doesn't really need a current instance (`this`) to work. It works on an array of objects passed as a arguments, like you said. You might as well make it a non-member function. (**Oh, my bad, …

Member Avatar for vishalonne
0
755
Member Avatar for iamthesgt

That error is shown when you don't create an instance of a class and right away invoke a non-static member function of it. Are you doing that somewhere?

Member Avatar for theguitarist
0
528
Member Avatar for xxwikkixx
Re: DICE

As for a better way of doing it, you could store how the numbers are represented in 2D arrays perhaps? Like : 0 0 0 0 1 0 0 0 0 (for 1) And you could use a single display function that prints a '`-`' if there is a 0 …

Member Avatar for theguitarist
0
169
Member Avatar for theguitarist

Please see [here](http://jsfiddle.net/jmDsB/). The intention was to have 3 `<div>'s` in decreasing order of height(`1`,`2`,`3`) and to put those 2 buttons under the `<div>` marked `2`. Something like 1 2 3 - - - - - - btn1 - btn2 I floated `1` to the left because I wanted whatever …

Member Avatar for AleMonteiro
0
160
Member Avatar for theguitarist

My B+ tree looks like : rest of tree / 9 10 / \ \ 5 9 10 If I need to delete 5, I can't simply remove it because the page wouldn't contain any elements after that. So, I decide to merge with the right sibling. I don't understand …

Member Avatar for mike_2000_17
0
430
Member Avatar for theguitarist

I read [here](http://www.google.co.in/url?sa=t&rct=j&q=can%20have%20any%20(odd)%20b%20tree&source=web&cd=1&ved=0CDAQFjAA&url=http%3A%2F%2Fwww.cs.uga.edu%2F~eileen%2F2720%2FNotes%2FBtrees.ppt&ei=PcK3UPy4IcbYrQe7-oC4Cw&usg=AFQjCNFC0kjGfN16J-I0S5o3HEjBUxmpKg&cad=rja) that an m-way B-Tree can have m only odd. Is that really true? I've used 2,4 trees that allow a maximum of 4 child linkages for each node (and a minimum of 2). Isn't this a 4-way B-Tree?

Member Avatar for theguitarist
0
770
Member Avatar for theguitarist

I have a computer with good specs and I use Ubuntu 12.04. Firefox 15.0.1 When I switch from another tab to a Daniweb tab, and I move my mouse down, there is this big ad at the top of the page (it is supposed to make the rest of the …

Member Avatar for c-tech
0
276
Member Avatar for theguitarist

I'm new to javascript. Lets say I need to create a new `<p>` everytime the user clicks on a button. So I create a button in the html body and assign a function as the event handler of `onclick`. This function is in a separate file called "file.js" which I …

Member Avatar for Taywin
0
221
Member Avatar for tspga

You must put a semicolon ( ; ) right after the closing parenthesis of your class definition.

Member Avatar for tspga
0
167
Member Avatar for theguitarist

Hi. I have some trouble understanding the linking process and hence this related question. Lets say I need a global variable that is needed by every single source file in my project. I would create a `constants.h` header and put `extern const int var;` in it. In corresponding source, `constants.cpp`, …

Member Avatar for mike_2000_17
0
6K
Member Avatar for theguitarist

I use a couple of usenet groups on google groups and post there as well. There are a lot of real people there who keep posting nonsensical stuff for fun. But they aren't bots or anything and they don't copy paste,they just say things to other posters. What happened was …

Member Avatar for theguitarist
0
205
Member Avatar for northrox

How is that supposed to give you the factorial of a number? Why is m being displayed when it is not initialized?

Member Avatar for Schol-R-LEA
0
98
Member Avatar for new_in_c

[QUOTE] [CODE] bd = withdraw / 1000; bd = bd % 1000; [/CODE] [/QUOTE] What is the use of the first statement if you change bd right after that? Store it into something else.

Member Avatar for theguitarist
0
80
Member Avatar for Lucretius
Member Avatar for theguitarist
0
99
Member Avatar for theguitarist

[CODE] int i=5,j=10; printf("%d\n",(i=15)||(j=26)); printf("%d %d\n",i,j); [/CODE] THe output I expected was : 1 15 26 The actual output was: 1 15 10 In (i=15)||(j=26), shouldn't the brackets be done first?Isn't that the precedence order? So,first i must take 15 then j must take 26 then the || must be …

Member Avatar for theguitarist
0
143
Member Avatar for theguitarist

Hello I am very confused with how negative numbers are represented in binary form. They say it is done in 2s complement form. Now won't this 2s complement of a negative number clash with an actual +ve number having the same binary representation? And negation of a +ve number..... We …

Member Avatar for Narue
0
162
Member Avatar for theguitarist

I'm not sure on which forum this thread should have gone,so I'm asking here. I presently don't have a personal computer to work on,and won't have one for another few months.I want to be able to continue practising C++. I have access to a computer centre facility.I don't think it …

Member Avatar for Narue
0
168
Member Avatar for IndianaRonaldo

So you want to produce all possible subsets from a parent set. Each subset (when all are obtained),will either contain a particular element of the parent set or not contain it. Can it be recursively solved it with the idea? Something like,consider the 1st element of the set as that …

Member Avatar for IndianaRonaldo
0
293
Member Avatar for gujinni

@Narue, I think this is how that 2nd piece of code you posted works,with "abc" and "bcd": First time,it would go into lines 6 and 7,leaving i=1 and and j=0. 2nd time,it would do the else block(lines 12 and 13), leaving i=2 and j=1. 3rd time,it would again do the …

Member Avatar for theguitarist
0
266
Member Avatar for theguitarist

I have to accept three numbers from the user using cin into 3 variables. If the user enters non integers,I must reject it and ask for a new one instead of that. So,here is my attempt: [CODE]int a,b,c; do{ cin.clear(); while(cin.get()!='\n');//remove failure bits,clear stream if wrong input cin>>a; } while(!cin);//while …

Member Avatar for m4ster_r0shi
0
188
Member Avatar for theguitarist

I use Vista.There are these problems with my computer: 1.The "Computer" icon on my desktop,the text under it is like: [CODE]Comp uter[/CODE] and not [CODE]Computer[/CODE],in one line. The icon is large enough.The thing is it wasn't like that before,but now it is. 2.When I press,@ I get ".I restarted the …

Member Avatar for theguitarist
0
180
Member Avatar for theguitarist

[CODE] int x; while(cin>>x) { cout<<"Yes"<<endl; } int y; while(cin>>y) { cout<<"Yes again"<<endl; } [/CODE] What I expected to happen is,that as long as I entered a number for x(in line 2)that block should be run and "Yes" must be printed. To get out of the 1st while loop I …

Member Avatar for theguitarist
0
2K
Member Avatar for Portgas D. Ace
Member Avatar for theguitarist

[CODE] int x,y; while(cin>>x>>y) { if(x>y)cout<<x<<"\n"; else if(y>x)cout<<y<<"\n"; } [/CODE] This seems clear,but when I entered this: [CODE]2 4 6[/CODE] and hit enter, I get this: [CODE]4[/CODE] after which I am being asked to enter something again. I put 8, and it prints 8. But what is exactly happening here? …

Member Avatar for WaltP
0
493
Member Avatar for theguitarist

[CODE] cout<<(char)290<<endl; [/CODE] I get " as the answer. [CODE] cout<<(char)20000<<endl; [/CODE] Here I don't get anything. When char can take integer values from -128 to 127 and both 290 and 20000 are welll out of this range, then why is there an output in the first case?

Member Avatar for pseudorandom21
0
128
Member Avatar for theguitarist

Hey daniweb!:icon_cheesygrin: I have not done real hardcore programming still,but have created a couple of games(in flash), some applications(with MFC). I have now finished all the education I need to ,before joining an engineering course. I don't like any course(which they offer)except for computer science which is because I have …

Member Avatar for theguitarist
0
146

The End.