nirmal_1288
Members-
Content Count
20 -
Joined
-
Last visited
About nirmal_1288
-
Rank
Newbie [Level 1]
-
the one language that totally changed the way people look at web is AJAX. i simply love that language. for me Web 2.0 means AJAX. i believe web 2.0 will not have been born without AJAX. The very popular mail service GMAIL is built on AJAX. recently google is recruiting many engineers who are through in AJAX.
-
Review My Site And I Also Need Some Staff For My Site
nirmal_1288 replied to Evil Guy's topic in Websites and Web Designing
i didnt like the skin of your site.... consider changing it.there are many forums... try to reduce the number of forums,eg. you can combine all the PSx forums and put it under one forum and with many subforums under it.the topic are good.... best of luck. -
Bright Site donnot forget your sunglasses
nirmal_1288 replied to puck's topic in Websites and Web Designing
the site is okay.... but the text is not very visible in the box on the left side. put someother background color or image. the roses falling is a very good idea. overall the site is okay. best of luck. -
Simple C++ Programs. simple programs for beginners.
nirmal_1288 replied to khosro_php's topic in Programming
Friends those who are good in c++ please help me in this problem if u have suggestions let me know it...I have two classes, call them class1 and class2. In my main(), I declare a new class object: class2 stepping_action = new class2;stepping_action has a variable called "contained" that is a boolean. What I need to do is change the value of this variable from within class1. When I try, it tells me that stepping_action is not in the right scope. I have tried declaring stepping_action outside of the main but I still get the same error.How can I change this variable from class1? -
Simple C++ Programs. simple programs for beginners.
nirmal_1288 replied to khosro_php's topic in Programming
Hi all,I am working on a C++ program that converts a decimal to a fraction, finds the lowest common multiple, multiplies the numerator by the denominator, then reduces the fraction again so the fraction will be 'numerator/1'.I am using this code in a larger program to change a floating point slope value to a whole value for slope-intercept equations and standard form equations.The program will run but I tested almost 500 numbers and 20 numbers made the program crash (it stalled and did not finish the equation, I had to close the terminal and open it up again... )These 20 numbers I had problems with:2.36, 7.36, 1.11, 1.001, 1.66, 1.88, 2.22, 2.13, 3.24, 3,26, 3.32, 3.43, 3.49, 3.51, 3.57, 3.68, 3.74, 3.76, 3.82(I am sure there are more...)I have tried c-style casting and dynamic and static casting to try to resolve this issue. Can someone help me out and point out why these certain numbers make the program crash and offer a possible sloution?I tried debugging this program on gdb and keep on getting this frustrating message..(gdb) break 16No line 16 in file "init.c".(gdb)Here is the program's code: //example.cc#include <iostream>#include "reduce.h"#include "decimal-to-fraction.h"using namespace std;int main(){ double deci; double n, d; while(1) { cout << "Enter a decimal to convert to a fraction ('0' to quit): "; cin >> deci; cin.ignore(INT_MAX, '\n'); if(!deci) exit(0); dec_to_frac(deci, n, d); if (n * d != n){ cout << '\n' << deci << " = " << n << '/' << d << "\n\n"; cout<<'\n' << d << " x " << n; n = d * n; cout<< " = " << n << "\n\n"; cout<<'\n' << n << '/' << d; reduce(n, d); cout << " = " << n << '/' << d << "\n\n"; cout<<'\n' << n << "\n\n"; } else cout<<'\n' << deci<< "\n\n"; } return 0;}#ifndef _REDUCE_H_#error You must include "reduce.h" before this file#endif /* def _REDUCE_H_ */#ifndef _DECIMAL_TO_FRACTION_H_#define _DECIMAL_TO_FRACTION_H_void dec_to_frac(double decimal, double &numerator, double &denominator){ //numerator = static_cast<int >(decimal); //numerator = (int )decimal; numerator = decimal; denominator = 1; while(numerator != (int)numerator) { numerator *= 10; denominator *= 10; } reduce(numerator, denominator);}#endif /* def _DECIMAL_TO_FRACTION_H_ */#ifndef _REDUCE_H_#define _REDUCE_H_void reduce(double &numer, double &denom){ int i; for(i=2; i<=numer; ++i) { if( ((numer/i) == ((int )(numer/i))) && ((denom/i) == ((int)(denom/i))) ) { numer /= i; denom /= i; --i; } }}#endif /* def _REDUCE_H_ */ -
Simple C++ Programs. simple programs for beginners.
nirmal_1288 replied to khosro_php's topic in Programming
Friends do remember this at the begginnig stage of learning C++ . this is regarding the virtual methods.When you have a virtual method, calling it will always call the most derived version of the method. You could however write a method for JSWidget like this:JSWidget::BaseUpdate(){ Widget::Update();}and then call jswidget->BaseUpdate(). -
nirmal_1288 started following velma
-
How Do You Make A Javascript Calculator? in a form
nirmal_1288 replied to DjLuki's topic in Programming
hi friendTHis is an excallent calculator written in javascript..... <FORM NAME="Calc"><TABLE BORDER=4><TR><TD><INPUT TYPE="text" NAME="Input" Size="16"><br></TD></TR><TR><TD><INPUT TYPE="button" NAME="one" VALUE=" 1 " OnClick="Calc.Input.value += '1'"><INPUT TYPE="button" NAME="two" VALUE=" 2 " OnCLick="Calc.Input.value += '2'"><INPUT TYPE="button" NAME="three" VALUE=" 3 " OnClick="Calc.Input.value += '3'"><INPUT TYPE="button" NAME="plus" VALUE=" + " OnClick="Calc.Input.value += ' + '"><br><INPUT TYPE="button" NAME="four" VALUE=" 4 " OnClick="Calc.Input.value += '4'"><INPUT TYPE="button" NAME="five" VALUE=" 5 " OnCLick="Calc.Input.value += '5'"><INPUT TYPE="button" NAME="six" VALUE=" 6 " OnClick="Calc.Input.value += '6'"><INPUT TYPE="button" NAME="minus" VALUE=" - " OnClick="Calc.Input.value += ' - '"><br><INPUT TYPE="button" NAME="seven" VALUE=" 7 " OnClick="Calc.Input.value += '7'"><INPUT TYPE="button" NAME="eight" VALUE=" 8 " OnCLick="Calc.Input.value += '8'"><INPUT TYPE="button" NAME="nine" VALUE=" 9 " OnClick="Calc.Input.value += '9'"><INPUT TYPE="button" NAME="times" VALUE=" x " OnClick="Calc.Input.value += ' * '"><br><INPUT TYPE="button" NAME="clear" VALUE=" c " OnClick="Calc.Input.value = ''"><INPUT TYPE="button" NAME="zero" VALUE=" 0 " OnClick="Calc.Input.value += '0'"><INPUT TYPE="button" NAME="DoIt" VALUE=" = " OnClick="Calc.Input.value = eval(Calc.Input.value)"><INPUT TYPE="button" NAME="div" VALUE=" / " OnClick="Calc.Input.value += ' / '"><br></TD></TR></TABLE></FORM><p align="center"><font face="arial" size="-2">This free script provided by</font><br><font face="arial, helvetica" size="-2"> <a href="https://www.javascriptkit.com/Kit/">Kit</a></font></p> -
Hi all - I bet this is a quick one, but it's new to meI tried to validate a page I just built in xhtml transitional and got errors on the use of on my page. I've researched this afternoon and found other recommended code to use - and/or 00A0 for a non breaking space instead but I'm still not able to validate.I am using the code as a space between several pictures I have on a page all in a row. Is there other code I should be using that will validate instead of ? Maybe I'm just not using the code correctly - should I have it in quotes? " " or "00A0"?Thanks -
-
Recently i installed joomla on my server, aswell as a bridge between SMF and Joomla. I previously had phpbb installed in the directory "http://techno-source.co.uk/phpbb/; most user's use this link to access the forums, and some use just techno-source.co.uk . What i am looking for is a solution so that when user's type in techno-source.co.uk/phpbb and techno-source.co.uk it will load " [url="http://forums.xisto.com/no_longer_exists/ by default. I would prefer if it did not use mea redirection as its not very professional , is there any other way. Contacted my hoster, who told me they cannot do anything but look at .htaccess, however i do not know how this works. Thanks in advance.
-
Okay so I have been getting a little better at HTML thanks to this site but, I ran into a problem. I have a marquee that goes the normal direction <-- that way. So I was wondering how can I make it so when the mouse hovers over the marquee it stops and people can view it.
-
Simple C++ Programs. simple programs for beginners.
nirmal_1288 replied to khosro_php's topic in Programming
Know C or C++ -> you know Java (but never use it wink.gif )Know java -> C++ and especially C is difficult for you because it is more low level than javaSo it all depends upon which one you start with, and starting with C is much more advantageous.C is the standard for programming today, maybe someday it'll be java, but hopefully not! Anyways, you can't really compare C with Java since Java works in a completely different way. -
Simple C++ Programs. simple programs for beginners.
nirmal_1288 replied to khosro_php's topic in Programming
you want to learn C/C++ by yourself?! I took a introductory class on it in hs and thought it was hella hard. I'm sure I'm not the only one...let's say there was a bit of copying going on the programming assignments :lol -
Simple C++ Programs. simple programs for beginners.
nirmal_1288 replied to khosro_php's topic in Programming
no Real shortcut for programming...you can start from Turbo C++ or with VC++ from Microsoft...U need to understand bare minimum just to write simple code---------------------------------------------Datatypes.Procedural programming/Object Oriented programmingFunctions-------------------------------------next comesArraysPointersstructures -
Simple C++ Programs. simple programs for beginners.
nirmal_1288 replied to khosro_php's topic in Programming
Hi ... i have told u the Simple programing logic...but the facit is that:lol: hehehefor real there is no easy way into codingyou have to know the code and you need a assembler thats alla use MS vistual studio -
Simple C++ Programs. simple programs for beginners.
nirmal_1288 replied to khosro_php's topic in Programming
next let us study abt the output stat in C++...tis is so simple...One of the most basic things that you can do in a program is to write some output to the screen. In C++ this is usually done with cout as in the following example:cout << "This is the message that would appear on screen." << endl;Note that a message string is enclosed in double quotes. The << symbols point in the direction of data flow: from the message string to the cout output stream. The endl moves the cursor to the beginning of the next line on the screen. Finally, note that the command, like all C++ statements, ends with a semicolon.