199,114 Archived Topics
Remove Filter ![]() | |
could someone please explain to me the differences of these languages (C, C++, C#) and when i would use them. (i know a little C++) | |
I'm currently trying to create a small program that gets the user to enter 5 values, which are then saved in an array, and then the program calculates the average and displays it. Here is what I have so far, it works as far as getting the user to enter … | |
Hi ppl yestday i posted a thread and that issue was solved, but a similar issue is raised again. this time, 1)i am populating the options(eg: base material, film, glass pane) in dropdown from database. 2)user selects a option, enters other details and click submit. 3)on clicking submit, all the … | |
hi, i have a function that returns a string. For eg: 11111 or 11011. 1 is Pass and 0 is Fail. i want my code to scan the string from right to left side and also look for 0 and indicate its location. Below is my code. But i'm having … | |
Hello Everyone, I have some code which i use for BB codes in my forums. It works fine but I want to be able to not show the links if the user is not logged in. So below is the code I'm using for all BB codes used and the … | |
Hey everyone. So for example sake I have this: [CODE] <title>index.php</title> <form name="form1"> <select name="useraccounts" id="" value="" onChange=""> <option id="" value="">cant login</option> <option id="" value="">forgot password/option> </select> </form> <form name="form2"> <select name="computers" id="" value="" onChange=""> <option id="" value="">physically broken</option> <option id="" value="">needs repair</option> </select> </form> ////////////////////////////////////////// <title>popup.php</title> <form name="form"> <select … | |
I have read many different threads about how it is not possible to delete values from an array, but I need to find some way to do this. I am making a program that involves a bottom up approach algorithm where it pairs off data segments, finds the best segments … | |
Hello, i have a question about mod_rewrite. I have the following url: [url]www.example.com/listen.php?title=U2_with_or_without_you&youtube_video_id=hTgnDLWeeaM[/url] Now, i want to rewrite it like this: www.example.com/U2_with_or_without_you->hTgnDLWeeaM Now, my question is, since i can't use the caracters - or _ as separators between the get parameters, it is "safe" to use -> ? Is it … | |
I understand the concept of bubble sort and have no trouble implementing it, but I can't grasp the concept of doing it for 2D array. I've googled for some resources but I was unable to understand those codes. So let's say I have a 2D char array with words (maximum … | |
I'm trying to write a program which will generate templates in html.. I try to make a menu in visual c++, rest of code was written in c++ (console). so I have 2 problems... [B]1st PROBLEM[/B] I designed nice clean menu with drop-down menu containing 3 options AVAILABILITY DEGRADATION UNAVAILABILITY … | |
Hey there. Its Ruan I have a little problem. I have a column Student number, and i can access all the individual student number values in the database ACCEPT one... the very last one in the column. this is my code [CODE] String StudentNumber = myDS.Tables[0].Rows[myDs.rows.count]["Student_Nr"].ToString();[/CODE] but when i do … | |
can someone please explain why that is the answer to the question. for question 3, i thought it would be a) and c) thanks, 1 Circle which of the following (it could be any number of them) are flags that will be set (to 1) when 0x80 and 0x40 are … | |
Here is my newest version of the pretty printer I posted earlier. Not doing all that fancy stuff of printing looped recursive structures, but if you put one deeper structure inside flat one, works better for me than pprint module. I do not use often object oriented structures though. Dedicated … | |
Hello I am working on php website. Now here im working on sending orders. So once it is ordered the confirmation e-mail goes to one who ordered(he enters his e-mail id manually) and the head of the department(e-mail ids written in code). But now I have put a checkbox that … | |
Im aware of the different data types in java but say if one wanted to have two different types of data in a single array; integer and string, would this be possible? Im aware that java can have an array of each type but I stumbled upon using this and … | |
Hi The only programming I know is some basic scientific programming using Python. Now I want to develop some software. I want to learn how to develop: 1. An operating system 2. Changing an existing (open-source) software written in C and/or C++ so that it loads when I boot my … | |
Hi all, I have to declare an array of LibraryBook objects and sort them either by title, author or page count, as the user requests. I've got the basics down but I'm missing something. [CODE]public class LibraryBookSort { public static void main(String[] args) { LibraryBook[] myBook = new LibraryBook[5]; myBook[0] … | |
My homework says: Write an assembly language program that, when given an integer n, will calculate the value of the expression (2n^2-1)2 + n^3. Your program is to get the value for n from ECX and is to leave the value of the expression in EAX. (Note: The name of … | |
Hey guys , i need some help in understanding this coding. This is a client server code which i got off the internet . The problem i am facing is that when you run the server , the server will continously wait for incoming connections . I would like to … | |
Good afternoon I have recently had to switch from using VB.Net to using C#. The software I am trying to write needs to hold a DataSet in memory (consisting of about 5-10 tables). Then depending on user interaction, data will be added to or read out from the DataSet and … | |
what is the difference Between JSP and Servlet? | |
implement a class Employee. an employee has a name (a string) and a salary (a double). provide a constructor with two parameters. public Employee (String employeeName, double currentSalary) methods: public String getName() public double getSalary() public void raiseSalary(double byPercent) this is what i have so far: [ICODE]public class Employee { … | |
[CODE]std::vector<std::vector<unsigned long> > matrix(15); // 15 rows typedef std::vector<std::vector<unsigned long> >::iterator it_type; it_type row = matrix.begin(); for (int w=0;w<10;w++) { //some lines of code unsigned long num = x.to_ulong(); cout <<"Decimal form is: " << num<< end; // if we've hit 15 items in the current row (i.e. 15 columns), … | |
Hey Daniweb, I am looking to FTP into a server, take a list of filenames, and store them into an array, so I can eventually write them into a text file. I am currently having an issue with the storing of the ls into a local array: [CODE] use Net::FTP; … | |
Here is what I am trying to accomplish: I have a form, reschedule requests. I have gotten it to autofill the logged in user and email using the site's global variables. In other database tables, I have info on who they're scheduled with, and their scheduled time. I need to … | |
Here's a defined enumeration: enum shipCost {FIGHTER_COST = 25, BOMBER_COST, CRUISER_COST = 50}; Then they do this which I don't understand: shipCost myShipCost = BOMBER_COST; My question is why don't you just do the following instead? int myShipCost = BOMBER_COST; | |
Ok what I am trying to do is submit changes. I have all the information being collected. I'm just having trouble with the proper query to run. I currently have: [CODE] $sql = "UPDATE anime_list SET anime_name = '$animename' rating = '$rating' episodes = '$episodes' WHERE id='$id'"; $result = mysqli_query($dbc, … | |
hi, i want to integrate VB.NET with command window. in fact, i want the interface(built on VB.NET) to open the command window and it should automatically change the path to C:\Perl\eg and then it has to execute automatically the file what i specified. for this i already used the code … | |
Hey i am beginner and i read a book about c++,and i like to do all the exercises alone until i find alone the solution. but one of the topics that give me a hard time is recursions. i am on an exercise with the following code. [CODE]#include <iostream> using … | |
Hi everyone, I have asked something similar to this before. I understand how to use objects and what they do etc... What I am struggling to get my head around is WHAT an object actually is. I keep reading and reading but do not seem to be able to get … | |
Hello All! This is my first post, as I just joined this forum after finding lots of information about my problem, but no actual solutions... Same basic issue as most, but I've tried everything, and nothing is working! 1. User Logs in - upon authentication, user is taken to "member's … | |
Guys: Please help. I need to create an on-screen shape (circle) that has a fill color, which will blink every X seconds (go from fill color, to white, back to fill color). This is trivial to do...BUT... i want to do it in my own class, so that I can … | |
Im getting this error while im working on my pig latin code and have no idea what it is referring too. so here is the error and my code. ill specify the piece of code that is erroring. [code] #include <iostream> #include <fstream> #include <string> using namespace std; bool isVowel(char … | |
Dear Friends, I am a web designer hence i only know very little of PHP programming. I need help on the PHP script for me to post data from other server to my server. Due to my lack of knowledge in PHP so i'm using JetForm.com as a third party … | |
Thank you for your help so far.I try now to move on with my vector but now comes the hardest part. All the values that the float vector receives must combine somehow that the value of their addition do not overcome 12. So in other words even if I have … | |
I promise I read the Read This First post and also searched for relevant threads, but I didn't have any luck. I'm taking my first C++ class, and the instructor hasn't been much help when it comes to fundamental things like what compiler we should use, where to get it, … | |
Hai Guys, I need an urgent HELP and i'm willing to pay for this simple problem :) Please take a look at the problem by clicking [URL="http://www.facebook.com/pages/EZ-Commerce-by-BlackMarket/185356521505034?v=app_4949752878&ref=sgm"]HERE[/URL] Once you in, click on the button with the sign 'Click To Start Shopping' [B][COLOR="Green"]The problem is, the Flash doesn't load[/COLOR][/B] I bought … | |
Hi, guys I'm new to this forum, and also kind of new to C#. I actually develop programs in C# for 2 years, but in a very amateur level. Here is my question; I'm trying to make a game like [URL="http://www.techgadgets.in/images/block-d-puzzle-game.jpg"]Block'd[/URL] I found the way to create an array of … | |
Hey friends, I have a page that I've been working on for HOURS and finally almost have it perfect except for TWO things: 1. Every time I load the page it automatically inserts a blank row of data into my MySQL database. (Submitting it after filling out the for works … ![]() | |
I Created a Look_up table class but when I test it with sin() and cos() it is actually slower than stdlib math's sin. This surprises me by a lot. [CODE] inline double MATH_TABLES::GetSind(double& value) { return mp_Sind[(static_cast<int>(value/m_SinPrecisiond)]; } [/CODE] mp_Sind is simply an array of doubles. This is the non-Lerp'd … | |
[CODE] Dim mark_value() As Integer = {30, 40, 45, 50, 55, 60, 66, 70, 75, 80, 85, 90, 95, 100} Dim Grade_value() As String = {"W", "F", "-D", "D", "+D", "-C", "C", "+C", "-B", "B", "+B", "-A", "A", "+A"} temp = rdr(c2) For c3 = 0 To 14 If temp … | |
Hello Friends, i am new bee of Perl developemnt., can you pls give regular expression for this number., input: (232,45,3434,535.56) like wise (\()([0-9.,]+)(\)) output: -232,45,3434,535.56 Thanks Advance.., Senthil. V | |
I'm a college student, about to have an associates degree and start working on my Bachelor's for CS. I have a project that I've been working on for a while now, and I'm thinking about making it open source, and hosting it on sourceforge. The reason I would do so, … | |
hello guys, i have the following question/problem: -what i need to do is to get some data from sqlserver and send it to a dataset(no problem there) after i get the dataset filled i need to send the columns and rows to a textfile but i have to separate the … | |
Hi, I am having a problem with my file upload. I have a folder with my fileform.html and upload_file.php and a folder "upload" where my uploaded file stored. This is the body of my fileform.php: [CODE]<form action="upload_file.php" method="post" enctype="multipart/form-data"> <label for="file">Filename:</label> <input type="file" name="file" id="file" /> <br /> <input type="submit" … ![]() | |
hi i want to learn php but am confused at the first step itself. i donno hw to start. i hav installed wamp server on my pc, is it the right beginning? i dont know where to type the <?php </? codes and all please help me should i install … | |
Hello I installed MYSQL and Apache via XAMPP. And I am trying some codes from a textbook while Apace and MYSQL are running. I am trying to connect MYSQL with this code :[CODE]<?php //connect to MySQL; note we’ve used our own parameters- you should use //your own for hostname, user, … ![]() | |
Hi, I've just installed netbeans, cause I found out I need to work with C and windows doesn't allow the use of pid_t and fork(). Awesome Job, Gates. Anyway I've found this pretty compiler which is NetBeans. In pair with cygwin it should work out all the C stuff I … | |
I am on a godaddy server now and trying this mod-rewrite stuff and it is still not working. I have been searching google now for hours looking for the answer and cannot find it. Here is my entire .htaccess file: #Rewrite Rules Options -MultiViews Options +FollowSymLinks +Indexes RewriteEngine on RewriteBase … | |
Hi All, I am a newbie at java and need some help. I have a JFrame setup where basically I want to show two pictures. I have everything setup however at sleep, timers ect dont currently work and I dont know why. The snipplet of code below should show imagePanel1 … |
The End.