199,114 Archived Topics
Remove Filter ![]() | |
![]() | So, I was given this specification for a quicksort algorithm and I have no idea where to start. Create a template version of the QuickSort algorithm that will work with any data type. Demonstrate the template with a drive function. If it was to do a quicksort, I could easily … ![]() |
Okay so I have a class `Student`, which takes a number and a vector as a parameter for the constructor. Everything works well, until I output the values of the vector for every instance. The problem is that the same vector is being shared with EVERY instance I create, but … | |
![]() | Hi, all. Before I begin I am new to C++. Ok. I'm trying to create a simple 2D game in C++ using SDL, however I have hit upon a small problem. When I try to close the game window nothing happens. I think it's because when I create a new … ![]() |
I have a problem with creating UML diagrams. This is the first time. Here is the question below:  And here is my answer:  Please check if there is anything wrong. | |
function check_alert (pcheck) { window.alert("You make $"+pcheck); } var paycheck = 1200; check_alert(paycheck); How can the function make an alert with the variable pcheck when the global variable is named paycheck, I'm confused ? | |
![]() | K, so I'm using crypt() to hash my passwords as that seems to be the latest and greatest advice circulating on the net. OK, no problem this I'm doing as luckily my production server supports 5.3 ... Well I have my own VPS so upgrading wouldn't be an issue except … ![]() |
Following is the app architecture: application |-config |-config.inc.php (contains definition of App ROOT) library |-autoload.class.php public |-css |-img index.php Problem: I am not understanding how to call config file so as to set and access App Root. In Config File - I have defined Constant -> MY_APP_ROOT Now, I wish … ![]() | |
Hi, i am looking for a full tutorial for MVC4!!! I need a complete tutorial where i can manage user registration and one list of articles with relative reviews!! Can anybody help me with this??? If you can tell me some links where i can find something like this (because … | |
I am trying to insert data into the mysql table using php... but whenever i fill the form and insert data, it updates it but no exact data is present in my table, there is only 1's present in the records rather than actual data which i have inserted. Kindly … | |
Hi, I have been able to get bitnami to work successfully at work but not at home. I have a linksys router I connect to. I was using port 80 and 3306 I can launch application but cannot connect to wordpress at all. I understand ports need certain admin rights … | |
getting errror related to pkg_resources while running PIP PIP install cython Traceback (most recent call last): File "/usr/local/bin/PIP", line 6, in <module> from pkg_resources import load_entry_point File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 2603, in <module> working_set.require(__requires__) File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 666, in require needed = self.resolve(parse_requirements(requirements)) File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 565, in resolve raise DistributionNotFound(req) … | |
I want to create a class in which I typed the text between **""** then the text color get changed. and also yes, I want to change the text color for some words. Yes it is somewhat similar like the Script Editor. Can anyone help me with this? | |
Just out of curiosity I was wondering how library developers created their own string classes. I am sort of a novice with programming but I tried creating my own string class to prove that I could do it. What I wasn't able to solve was how to create an array … | |
http://s11.postimg.org/kxl3cemw3/error.png this is the least error that I can get from multiple time of debugging. [TheCodeFile](http://www.fast-files.com/getfile.aspx?file=70535) StrBlob.h has needed to use something from StrBlobPtr.h and StrBlobPtr.h needed to use something from StrBlob.h I did tried to #include each file on each other respectively, but ofcourse that would be a data … | |
hi my name is vishal for past 10 days i have been going nuts on how to combine selected datas from 3 or more tables into single sql select query in vb6. i have 4 tables named table1 name: Inward column Name DataType mfr_ref_number text no_of_bundle integer supplier_id integer DC_date … | |
I have 2 spreadsheets - uat.xlsx and main.xlsx - both in the same directory. main.xlsx [[Click Here](null)](http://www.excelforum.com/attachments/excel-programming-vba-macros/297600d1392477870-merging-two-spreadsheets-using-vba-based-on-a-number-of-conditions-r1hrn.png) uat.xlsx [Click Here](http://www.excelforum.com/attachments/excel-programming-vba-macros/297601d1392477913-merging-two-spreadsheets-using-vba-based-on-a-number-of-conditions-evdad.png) I am trying to copy across information from uat.xlsx to main.xlsx, by accomplishing the following in VBA (the VBA code will be stored on main.xlsx and launched by button click): … | |
hello everyone. i have been attempting to make an if statement that calculates overtime hours for quite some time now and i cant seem to get it to work correctly. Is it possible to make this statement with 1 line? or am i missing somthing? this is what i thought … | |
I'm tryin to search an array of structures for name. I'm comparing a char[] to a struct member with is a char[] my struct struct NBA_Team { char* name; char conference[8]; char division[10]; unsigned short wins = 0; unsigned short losses = 0; float pct; }; My search code void … | |
I need code in java for creating b+ tree whose nodes contain file for implementing insertion,deletion and searching. please help me out | |
Hello, I am trying to the print the variables from the URL. I have tried some methods but it is working. There are variables in the URL. it is just I am not able to print them out. <?php if(isset($_SESSION['cart'])){ echo '<ol>'; foreach ($_GET as $name => $value) { echo … | |
I need help with my coding I need to be able to take in at most 300 integers(0 to 100) and then fin the count of zeros and evens. After this i need to add all of the integers up and get the average. Find the maximum and minimum values … ![]() | |
I want to make a pothole detection app for my final year degree project. Can i get the code from somewhere?? | |
I am trying to install haskell on xubuntu precise for my haskell class and I cant get it to work. I keep getting 'prelude' module is not available and I have spent hours back and forth installing and uninstalling ghc. Can someone please tell me how to get this thing … | |
i currently have PHP 5.2.7 on my laptop and i would like to upgrade my php version. how do i do that? ![]() | |
Hi, i would like to ask something, i have a table like this :  The user will enter a value in the column "out Quantity", then, i want it auto calculate in "Total Price" which is Total Price = Old balance quantity * out quantity and new Balance … | |
i want to creat link using selected text.codes aren't working.how can i fix this? <!doctype html> <html> <head> <meta charset="utf-8"> <title>Untitled Document</title> <style> #its{ border:1px solid black; } </style> </head> <body> <div id="its" contenteditable="true" > <p>It is a long established fact that a reader will be distracted by the readable … | |
i am trying to learn how to make a text editor.here i creat a paragraph using "para" button.and inside the paragraph there will be a quote.Every time I press 'enter' within this paragraph, a new paragraph is created, rather than a line break tag (<br>). How can I force a … | |
please help for query... i want sum (kns+kng) by name - [example](http://sqlfiddle.com/#!2/b5a7e6) the result should be: name|sum ----------- john - 36 bart - 16 steve - 53 jim - 10 tnx | |
Hey ! Someone can help me how i can close form using another form i try with this code private void button1_Click(object sender, EventArgs e) { Form1 frm = new Form1(); frm.Close(); } but its dont work !!! | |
![]() | Let's say I have a few input boxes with id's 1,2,3 respectively as a simple example. Now I am using these ids to update certain field in my db. But what is to stop the user from editing those ids to something else! By doing inspect element in chrome. What … ![]() |
I am trying to havea program give me the averages from the tests. If the number is over 100 it is to give me an excpetion code this is what i have thus far... having issues on line 36-38 and 40. any help would greatly appreciated. import java.lang.IllegalArgumentException; //declare and … | |
Well i know its an online file storage web service but i wanted to know specifically hwo do you use it? Let's say i have web application where people upload a lot of files and later on edit and store those file on the server. Ideally i would save files … | |
This is for a command button array but i have a problem in the quoted text, the error Expected End of Statement, i am learning from a book, i guess there is some problem in typing the code. Please somebody resolve my problem! Dim BookMark1 As Variant 'Mark your place … | |
Hello, I am creating a from with 13 rows and 11 columns. and I have a button "EDIT". The from should be disabled and if I clicked the edit button all the fields in the form should be enabled. As I am new to JavaScript It would be really great … | |
I have an old access 2.0 database, i converted it in access 2007 but the old code doesn't work.. i heard that it is about DAO and ADO anyone can help me to convert this DAO code to ADO coding.. thank you so much in advance.. Private Sub cmdSave_Click() Dim … | |
Not sure if this is really computer science but its language agnostic. Any suggestions for a relational diagram type tool for linux. I currently use dia for some flow diagrams but I frequently like to represent things with several boxes which representing components within a bigger box representing something else. … | |
How would I use [web.py](http://www.webpy.org) to execute ASP/PHP server files? Or can web.py not do that and can someone provide me a python script that can execute ASP/PHP server files? Should I try posting this in the PHP forum, Web Design, html, and css fourm, or the Web development forum … | |
Heya all, I'm working on a small 'file browser', where the list of files is printed in a console (for now), but where the user inserts the file's path in a GUI. My gui is rather simple: one frame and one panel containing a JTextField and a JButton. I want … | |
I'm interested in improving my programming skills so I can get a programming job. I majored in a STEM subject as an undergrad (not CS) and used C++ for a research project. I'll have to look thru my harddrive to see if I still have the code for that, as … | |
Ran across a blind spot in trying to figure this out. I want to pad a string with n characters to the left (at the beginning) of the String. This is the code I have come up with padRight and padLeft but when I go run the program it doesn't … | |
I have recently started programming in delphi, after programming in VB. Does anyone know if there is anything similar to vbtab in delphi? If not is there anyway that I can create a constant that works similar to vbtab? | |
This is baffling me and I am tired of trying different variations to accomplish what should be such a simple task. I have a folder in the main directory of the domainb called 'enroll_updates' that a file will be written to via CRON every night. But I am going to … | |
hello everyone, im pretty new in this language (vb.net) so i have difficulties understanding its function, right now i am able to populate my database to datagridview, i've been looking for some related answers. but found no luck. so i decided to post it in here. so i have this … | |
hi..i want my customers/users to upload as many jpg pic they want into their individual album..and can make i choice(like what kind of photos(stamp size,poster,collage etc)they want of a particular photo and also there should be the no. of quantities they want...n after submitting those data they total sum should … | |
Hi am kinda new in python programing. I have this game that involves a user inputs a value , say color it iterates over imported modules( in this case color) and prints data about it. The problem is that i cant get to code the best way to iterate over … | |
I'm attempint to write a python application that will open a .csv file and look at comun one for certain string. If the string match print the row to a new .csv file. import csv input_file = csv.DictReader(open("stats.csv")) for row in input_file: print row | |
I've noticed when watching videos, usually people import everything. Such as `import javax.swing.*;`. So my question is, is it better to Import everything? Or only the things you need indiviually? I've heard it slows down your program if you import alot of things, is this true? | |
Error that I get: ERROR [42000] [Microsoft][ODBC Text Driver] Undefined function 'REPLICATE' in expression. Code below: DataTable dt = new DataTable(); string tempPath = @"C:\swd\"; string strConn = @"Driver={Microsoft Text Driver (*.txt; *.csv)};Dbq=" + tempPath + @";Extensions=csv,txt"; string SqlString = "Select RIGHT(REPLICATE('0', 10) + RowNr, 10)," + "RIGHT(REPLICATE('0', 10) + … | |
Hye dude, Really need help. My problem is I want to insert data from treeview checkboxes into database. Currently im using an array, but when i insert the value it become double. for example, when i click two checkbox. the id insert in database will be two. Can someone help … | |
This is my codes in my localhost: contactus.php <html> <head> <link href= "css/contact.css" rel="stylesheet" type="text/css" media="screen"> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script> <script> $("#inputID").ready(function(){ $("#inputID input").focus(function(){ $(this).css("background-color","#fbecc5"); }); $("#inputID input").blur(function(){ $(this).css("background-color","#f5f5f5"); }); $("#inputID textarea").focus(function(){ $(this).css("background-color","#fbecc5"); }); $("#inputID textarea").blur(function(){ $(this).css("background-color","#f5f5f5"); }); }); </script> </head> <?php include('includes/navigation.php'); ?> <body> <div id="titlebar"><div id="title"><h2 class="title">Contact Us</h2></title></div> <div id="stitle"> … |
The End.