199,114 Archived Topics
Remove Filter ![]() | |
Hello. I am trying to use the strtok function to separate individual words and store them in a 2D char array. However, only the first word is stored in the 2D array. [CODE]cout << "Enter a string: "; cin.getline (str, MAX); //count number to words char *p = strtok (str, … | |
[CODE]#ifndef PARTICLE_H #define PARTICLE_H #include<vector> #include<iostream> using namespace std; class Particle { protected: public: Particle(); Particle(const int aDim); int dimension; vector<double> velocity; vector<double> position; vector<double> pBest; double pBestFitness; double fitness; bool valid; bool operator<(const Particle& aP2) const; ~Particle(void); }; #endif[/CODE] [CODE]#define SWARM_H #include"Particle.h" #include<vector> #include <Algorithm> #include<iostream> #include<stdexcept> using namespace … | |
Hello guys! I created a website. I tested it on my computer it works when I transfer it to the host it won't work now :( here's the code [code] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 5.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <title>NeverlastingRO</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <link rel="stylesheet" type="text/css" href="ceres.css"> <script … | |
i am calculating some expressions and the result of these expressions is a DOUBLE type value , i am storing this result into a double type variable called Sum . now i want to write this value of Sum into the Edit Control of a Dialog Based MFC application . … | |
Hi.. Is there any option of downloading free controls (eg button) for windows application as we do in asp page . links would be helpful to work on it.. Thanks... | |
[CODE] Dim connection As New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=""d:\sprrg\\scm\scm\sprrg.mdb"";") Dim adapter As New OleDbDataAdapter("SELECT * FROM mr_head", connection) Dim dbInsert As New OleDb.OleDbCommand Dim table As New DataTable adapter.Fill(table) 'job_code,mr_no,mr_date,item_code,qty,mr_status,mr_approved_date 'Dim row As DataRow = table.Rows(0) connection.Open() dbInsert.Parameters.Add(dbInsert.CreateParameter).ParameterName = "job_code" dbInsert.Parameters.Item("job_code").Value = jobcode dbInsert.Parameters.Add(dbInsert.CreateParameter).ParameterName = "mr_no" dbInsert.Parameters.Item("mr_no").Value = mr_no dbInsert.Parameters.Add(dbInsert.CreateParameter).ParameterName = "mr_date" … | |
My PHP contact form doesn't send an email to my email address when a form is submitted. This is where the form is located;- [url]http://www.mattwhitehead.co.uk/contact2.htm[/url] Any help would be great, also I'm very new to PHP. Thanks, Matt | |
hello EveryOne! i am very new in JS and JSON , or you can say this is my first day to learn something about JS and JSON, i have few questions 1- what is difference between JS and JSON. 2-My Task is to connect MSSQL server 2008 and show records … | |
Hello everyone - new member here! I have a javascript function for creating an 'add bookmark' link on my pages. For firefox it uses window.sidebar.addPanel to add the bookmark [code] function addBookmark(title, url) { if (window.sidebar) { // firefox window.sidebar.addPanel(title, url,""); } else if( document.all ) { //MSIE window.external.AddFavorite( url, … ![]() | |
hi, I am using SQL client as the database and VS 2008 standard to bild my project. i need to browse for a file and upload it to the SQL database. how can I do this ?? I have the code to browse for the file and insert to the … | |
Why is netbeans doing this?! I added an image to my login screen, but now when i want to add a new one (i just chose a crytec logo to show) then it doestn display it!? It still displays the old one!? Whyy?? (image Attached) | |
The goal of the project is to calc based on age and gender there rental rates for cars. but something is going terribly wrong T-T. I am receiving the following errors in homework for java class. ----jGRASP exec: javac -g RentalRate.java RentalRate.java:112: error: illegal start of expression public static String … | |
![]() | I have a div with 2 divs inside it. The container div is positioned relative, and the 2 inside it are positioned absolute, one on top of the other (on the z axis). I made it so that when the mouse enters the container div, the top div slides up … |
hello everyone i am currently working on my website. I wanted to make a php script for registering users. So that they may log in, log out, register, and access member only functions. I found a good tutorial online but since im fairly new to php and have never worked … | |
HI I would Like to Know how can Display the error Message When Executing the SP .. and the Stored Procedure doesn't having any value to Fire the Event .. [CODE] set ANSI_NULLS ON set QUOTED_IDENTIFIER ON go -- ============================================= -- Author: <sabari,,Name> -- Create date: <Create Date,,> -- Description: … | |
Hi all, I have to design a form where User can fill some details. After he submits the form it should be viewed for final confirmation. If everything is fine, then there should be two options. Save as PDF and Send mail. if save as pdf -> the submitted page … | |
My project scope is on android forensic. 1. After extracting all the information from an android phone, the information is saved to an excel file. Currently, I'm trying to transfer all the data saved in the excel file to MySQL database in Java. 2. After which, implement a feature that … | |
i want to send the mail , when product got expire from before and ondate and after day, in php i was used datediff mysql function with php, but if product expire date comes like 31-1-2012 , the differ value is not suit for my coding , plz help how … | |
Hello, I have written a code in which back button was working fine but it is not working for some reason also the validation of 2nd form isnt working as well.....plz help here is the code [CODE]/* * To change this template, choose Tools | Templates * and open the … | |
Hi, first am a noob at PHP and IMAP.. So please bear with me... I am trying to create a PHP page that will check an IMAP server for any unseen messages and download an attachment (the attachment will always be the same audio file format), then attach the file … | |
Hi, i want to change fileToolStripMenuItem from enabled==true to enabled==false after click on it in my formApplication. It does not work: private void fileToolStripMenuItem_Click_1(object sender, EventArgs e) { fileToolStripMenuItem.Enabled == false; } what is wrong? | |
first off... a litte explanation as to what I'm doing... this is basically a way for me to create an update system for my program... the webhost I'm using allows hot-file linkage, so there's nothing that's improper... (except for my compy not having net) anyways... the structure I have for … | |
Hello everyone ! I need a code that displays my URL friendly, Normally, URL : [url]www.domain.com/externalpage.php?page=12[/url] Now i need my URL Like this [url]www.domain.com/externalpage/pageid/[/url] Is there any way for this ??:) | |
Hi, actually i've tried the simple checkbox code but it doesn't work. My point is want to insert the selected checkbox value into the same database row. Example : one,three --> if there are selected. This is my code. Anybody can help me? [CODE] <?php include 'connection/db_connect.php'; if(isset($one)) $val1=$one.";"; else … | |
The compiler keeps complaining it cannot understand one operator<< manipulator if it is in one order, but accepts it if it is in a different order or statement. But the error code is cryptic, it finds the correct function signature among candidates but gets lost in a string of parenthesized … | |
Hello, I am asking about true syntax of the following:: I have a class name P and in header file (of this class) ------> [CODE] class P { public: P(); ~P(); void addItem(const int newItem); void deleteItem(const int Item); void showAll(); /** need to proper getter funct. of tail */ … | |
Dear all, Context: JSP I'm trying to get the value of a java variable and assign it to a javascript variable in order to later on use it in an iframe: [CODE] ... rs.next(); entry1 = rs.getString(3);%> <SCRIPT> [COLOR="Red"] var tt="<%=entry1%>";[/COLOR] [COLOR="red"] var content = "<html><body>" + tt+ "</body></html>";[/COLOR] var … | |
I'm working on a homework my OOP class and I just can't figure out this last part. The assignment calls for us to write five different classes with parent class StaffMember. I'm pretty sure I've that at the subclassess (Volunteer, HourlyEmployee and FullTimeEmployee) correct so I'm not going to post … | |
Hi, I just have this program that needs to create a downloadable template for the excel file that will be used later in my program, now I have this templates in my server and I think that i'll just import this file first and then put it in the data … | |
Hi, I am trying (Push)add data into my stack (length of five) and (Pop)delete from the end of my stack. I need to know how can: - Add the elements to the stack with keeping track of adding and deleting from it (adding an element will increment until 5 and … | |
Hi co-programmers, We're currently doing a simple conversion of a jsp to java format. I think we we're able to somehow force our way for a java program to hold our jsp program, but unfortunately we are having a slight problem. We're getting this exception: Exception in thread "main" javax.script.ScriptException: … | |
Good Day! I've created a rudimentary program that takes multiple .csv files and creates one merged .csv file. What I'm looking to do is after merging the file into one, I want to convert it to an .xls file, however, when I do this the converting is not correct. Here … | |
I've been going through a couple of tutorials on SDL and having moderate success. But this one has me stumped. The tutorial from LazyFoo.com has me creating a dot that emits sparks. I followed along and wrote my code which returns my .bmp as NULL. Hmmm, I must have done … | |
So I was asked to write a code which would take in 2 dates of the format mm/dd/yyyy, validate that they were good dates (including leap years), then output the dates in chronological order. It works as intended for every date I throw at it but it seems way to … | |
Alright I have a MYSQL database with data for Clients. I am displaying this Client info on a HTML Table. I want the last 2 Table Cells to have EDIT and DELETE Functions. I am almost there I just need a final solution to linking them together and getting them … | |
hi. uhm. im having a problem with coding such conditional statement that would check if a certain input contains a certain subs tring. for example. i have a text box that is used for the user to input a string. (0,1) then i have a command button to determine if … | |
![]() | I have problem with selecting text, In this code it only selects one and finds one, hot to make it to find more? [CODE]public void actionPerformed(ActionEvent e) { if(e.getActionCommand().equals("ResetAll")) { area.setText(""); search.setText(""); found.setText("0"); } else if(e.getActionCommand().equals("Exit")) { JOptionPane.showMessageDialog(frame, "Good-Bye","218 HW #5", JOptionPane.INFORMATION_MESSAGE); System.exit(0); } else if(e.getActionCommand().equals("Clear")) { area.setText(""); } else … ![]() |
hi , I am pradeep. i wrote a code to get all information with in brackets of each sin() ,which i would like to give as my input to text box. but i am not able to get it exactly, for example i write "sin(90*2)+sin(60)+sin(60+(75*2))+sin(50)+sin(20)" in textbox i need "90*2,60,60+(75*2),50,20" … | |
please help me to this one | |
Is this possible? Download a webpage source without using a browser and place in to a textbox ready to edit and post(stop page/image load times) | |
My program performs a search on a specific directory and returns a list of files with specific criteria. I want the user to be able to select an item in the list and click a button and have that file open...is this possible? The first column of my list gives … | |
I'm planning on developing a call center/call tracking software for an IT helpdesk for my Final year project. The system should: 1. Auto-generate ticket numbers 2. have a database of users (agent just puts in ID number and the rest of the fields populate) 3. Be able to search for … ![]() | |
![]() | I have problem with do while loop I need something like this [CODE] What do you want to do? 1 Create a new account 2 Deposite funds 3 Withdraw funds 4 Show Balance 5 Show Interest 6 Show Summary 7 Quit Enter Option: 2 Which account <1 to 2> do … ![]() |
I have got this bit of code for a simple game and i need annotate and can someone explain to me the processes which are occuring. import random # set up our maximum and minimum number of blocksMAXBLOCKS=100MINBLOCKS=0 # set up the initial number of blocks in the toweruserBlocks=50 # … | |
Hello hope that you can help. Basically, I'm making a site that uses a header file and then for each page, include the header and set the title.. It's easy using procedural PHP but I want to do it using OO. Here is the problem: Page.php (class) <?php class Page … | |
I keep getting these errors: Validation.obj : error LNK2005: "bool __cdecl dotDashRules(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?dotDashRules@@YA_NABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) already defined in main.obj Validation.obj : error LNK2005: "bool __cdecl IsValid(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?IsValid@@YA_NABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) already defined in main.obj I can't get rid of them. This program is … | |
I'm working on a program for an intro to java class and am supposed to use the following interface: [CODE]public Interface Animal{ //The animal is first supposed to "speak" and then it gets to eat //As long as the food supply lasts public void feed(); //The animal eats public void … | |
Hi, we were asked to build a 2d complex maze using c++ and sfml. the game includes: a king that needs to reach his castle a warrior that kills orcs and they drop money a thief that collects the money to open gates and more characters. so far no problem. … | |
I have written a small query. I want to create link on my php site which on click will run this script automatically and export results to an excel file. I dont want to create a page to view the results. Any help to this new bie will be very … | |
Hi all! Can anyone help me on finding out if it is possible to fill an iframe in a jsp loading text from MySQL? or a different way to do it? Thanks in advance [CODE] Example: <% Connection conn = null; Statement stmt = null; ResultSet rs = null; String … |
The End.