Hello daniweb community. I'm hoping to start a Computer Science Bsc next year, and I'm in an odd situation. For reasons I'd rather not explain (it's not a conflict or anything, just some weird circumstances), I'm living at home, with my two sisters and their respective boyfriends. I don't pay rent right now, but I'll start (it won't be much, just upkeep) as soon as I get a part time job. One of my sisters and her boyfriend may move out soon, too. I've heard a lot about the 'experience' of uni acommadation., but it costs a lot, and most …

Member Avatar
Member Avatar
+0 forum 1

I completely understand the government getting rid of food stamps & WIC for the adults but there is no reason the government should shut down WIC for the newborn babies that need formula Formula comes in at $15 per can and only lasts every 2-3 days thats not cheap at all. So starving the newborn babies for families that can barely feed themselves is outrageous. Some one please explain this to me, me and my girlfriend are very curious please let me know what you know about this issue!?

Member Avatar
Member Avatar
+0 forum 48

SO guys I am supposed to be making a program that will check for a palindrome but, I can not get my code to work. It seems to be stuck on the cmp part. I am not sure if this is even right I dont have much experience with masm. Any help would much be appreciated segment .data s DB 'malayalam' s_size DW 9 pal db "is a plaindrome",0x0a,0 segment .text global main extern printf main: lea rdi, [s] ;move string into rsi mov rsi, rdi ;set rsi to rdi add rsi, s_size ;add the 9 to rsi dec rsi …

Member Avatar
Member Avatar
+0 forum 2

If my goal is to consider f1 and f2 to hold the numerator and denominator of two fractions and multiply f1(9,8) by f2(2,3). i don't understand how to write the MultipliedBy function if I only have two member variables in the class it's self. I feel like i'm just missing something. Does MulitplyedBy get passes f1 and f2? does it need 4 arguments ? int main() { fraction f1(9,8); fraction f2(2,3); fraction result; cout << "The result starts off at "; result.print(); cout << endl; cout << "The product of "; f1.print(); cout << " and "; f2.print(); cout << …

Member Avatar
Member Avatar
+0 forum 11

i have to create a calculator (i'm a 12 year old) for the science fair. on textwrangler when i try to compile it :Expected end of line, etc. but found identifier. here is my code: import java.awt.*; import java.awt.event.*; import javax.swing.*; import java.util.*; public class JavaCalculator extends JFrame { private JButton jbtNum1; private JButton jbtNum2; private JButton jbtNum3; private JButton jbtNum4; private JButton jbtNum5; private JButton jbtNum6; private JButton jbtNum7; private JButton jbtNum8; private JButton jbtNum9; private JButton jbtNum0; private JButton jbtEqual; private JButton jbtAdd; private JButton jbtSubtract; private JButton jbtMultiply; private JButton jbtDivide; private JButton jbtSolve; private JButton jbtClear; …

Member Avatar
Member Avatar
+0 forum 2

Hi, After two weeks of not touching my web codings. PHP just gave me tons of surprises. I'm confused. I don't know what happened but I have this page entering a new category: <form name="new_category" action="savenewcategory.php" method="post"> <input type="text" name="category" size="30"><input type="submit" value="Add"> </form> savenewcategory.php <?php $con=mysql_connect("localhost","root"); mysql_select_db("cart0902",$con); $category=$_POST['category']; $sql="insert into tblcategory(category) values('".$category."')"; mysql_query($sql); echo "<script>"; echo " self.location='page_category.php';"; echo "</script>"; ?> and got this when i hit add(on the form) `"; echo " self.location='page_category.php';"; echo ""; ?> ` --- I don't know what happened, a week ago, my shopping cart is perfectly working..and now.. I got this error on …

Member Avatar
Member Avatar
+0 forum 17

Picture: http://i1144.photobucket.com/albums/o493/NoCodeMonkey/SAM_0069.jpg Ok so Im confused, In the pic I have 2 vlans (VLAN2, and VLAN3) and the network address of this network is 192.168.0.0. Router has an ip address of 192.168.0.1 for fa0/0, and is connected to VLAN1 (the default) to f0/5 with an ip address of 192.168.0.2 for VLAN1. When i have VLAN2 and VLAN3 do i have to give them a different address for a different network [EX. VLAN2 = 192.168.1.0] and give the hosts on that network that network rage of addresses?

Member Avatar
Member Avatar
+0 forum 5

hi im using the chart to make a graph the graph is generated through user input i was wondering about a couple of things 1. how to change the line thickness for an individual generated line or all of the lines 2. how to change the colour of an individual generated line 3. im using the add xy function to draw each point. a while loop didnt work so i had to write the code for each one i wanted..is there any way of avoiding that thankyou in advance

Member Avatar
Member Avatar
+0 forum 2

hey im using vc++ clr to build my application...im using the datagridview, but im having some problems with it because its quite poorly documented in C++..i want to know a couple of things. 1... how to change the color and text of a single row header cell as well as the text in the row header cell. 2... how to change the standard column width.. thanks in advance :)

Member Avatar
Member Avatar
+0 forum 1

I recently started reading Beginning DirectX 10 Game Programming written by Wendy Jones, and I'm about 60 pages in on the chapter about sprites, and I feel like I haven't learned anything, half the code they throw at me I can hardly decipher, and even if I do that, how am I supposed to remember it all? I feel like all I'm doing is copy-pasting without learning anything. P.S. I only have some basic C++ knowledge.

Member Avatar
Member Avatar
+0 forum 2

This function executes the first time correctly, but the next time the function returns an error. [CODE]function edit_div(id) { if(edit_status == 0) { document.getElementById("addnew").innerHTML = '<form><h5>Move</h5>Top Margin: <input type="text" id="topmargin"></br>Left Margin: <input type="text" id="leftmargin"></br><h5>Backgorund</h5>Background Color: <input type="text" id="backgroundcolor"></br><h5>Border</h5>Border Width: <input type="text" id="borderwidth"></br>Border Type: <input type="text" id="bordertype"></br>Border Color: <input type="text" id="bordercolor"></br><input type="button" value="Edit Div" onclick="edit_div('+id+');"></form>'; edit_status = 1; } else { var Top = document.getElementById("topmargin").value; var Left = document.getElementById("leftmargin").value; var Background_Color = document.getElementById("backgroundcolor").value; var Border_Width = document.getElementById("borderwidth").value; var Border_Type = document.getElementById("bordertype").value; var Border_Color = document.getElementById("bordercolor").value; var num = id; var new_id = "a"+num; var b_id = "b"+num; document.getElementById(new_id).style.top = Top; document.getElementById(new_id).style.left …

Member Avatar
Member Avatar
+0 forum 4

This is homework. I have the code written, though. The thing works. Mostly. The assignment is to write a program that reads a list of integers from a file, prints the maximum value in the list to the console, removes the maximum value from the list, and stores the (smaller) list back to the file. I have a file that I just typed in [CODE] 0 1 2 3 4 5 6 7 8 9 [/CODE] as a test and I saved it as a text file. I reference this with the file path inside of the code. Everything works …

Member Avatar
Member Avatar
+0 forum 16

The End.