199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for crownedzero

I figured this would be easy but ultimately I can't seem to get past the " " in a char array. i.e. [CODE] const int ARRAY_SIZE = 80; char charArray[ARRAY_SIZE]; cout << "input a sentence"; cin >> charArray; [/CODE] "This is a test string" returns only "This" as the space …

Member Avatar for vidit_X
0
8K
Member Avatar for nomorelogic

hi there, im a beginner really and have just tried to finish a new computer based booking system for my work, im using sql and a database to store the customers and then store bookings too, but im having problems with the customer form, when i run it it kind …

Member Avatar for nomorelogic
0
141
Member Avatar for mameemonster

hello. i make a program for bus ticket reservation and i want to put a seat number in there. so if want to loop the program, and if i pick the same seat number, the program will tell me the seat is taken. is it possible to save information before …

Member Avatar for WaltP
0
110
Member Avatar for Cainer

Hi, I am using WinSock library for sending data over network, and I have a problem. I know how to send data in one struct and receive it on the other side, because there is constant size of structure. But what if I have more structures, each one with different …

Member Avatar for Cainer
0
563
Member Avatar for json101

Need help to [B]update 2 rows in the same table[/B], been searching & testing with no real luck. I need to update 2 rows based on the URL below... [ICODE]id=145&contactuname=json101&contactid=7&memberid=1&confirm=2[/ICODE] Updating these fields: [ICODE]ustatus, memberid, contactid, contactuname[/ICODE] Table structure: [CODE]CREATE TABLE `contacts` ( `id` INT(40) NOT NULL AUTO_INCREMENT, `ustatus` TINYINT(1) …

Member Avatar for json101
0
225
Member Avatar for gowans07

Main Form = Frm_Engineer_Search Sub Form = Frm_Engineers Frm_Engineers populated by Tbl_Engineers I've been trying to link together a textbox with a subform so when a surname is entered into TxtSearch and CmdSearch is click it will run a query/refresh the subform displaying the correct record which correspond to the …

Member Avatar for gowans07
0
139
Member Avatar for myrongainz

I'm trying to reverse a string in pairs Example: input - heaven output - ne va eh My code seems to be right until the last for loop... That's where I need help Here's my code: [CODE]#include <iostream> #include <string> using namespace std; string revString(string user); int main() { string …

Member Avatar for stereomatching
0
368
Member Avatar for a.muqeet khan

guy i was given a qeustion for my exam that What is the most commonly booked room type for each hotel in London? to this i replied [CODE]SELECT MAX(R.roomno)AS most room selected FROM ROOM.R,HOTEL.H,BOOKING.B GROUP BY roomtype WHERE H.hotelno=B.hotelno AND city='london' [/CODE] my problem is that i dont know if …

Member Avatar for adam_k
0
129
Member Avatar for lobebe

I am trying to input an option into exist code but i get this error: "Undefined variable: options in /home/dealsyno/xxxx/product/category.tpl on line 91" Kindly see below the code. [ICODE]<?php echo $header; ?><?php echo $column_left; ?><?php echo $column_right; ?> <div id="content"><?php echo $content_top; ?> <div class="breadcrumb"> <?php foreach ($breadcrumbs as $breadcrumb) …

Member Avatar for pritaeas
0
269
Member Avatar for StephNicolaou

Hey guys, I'm drawing a grid using the nested for loop with draw line method. Any tips on getting this in the center of my screen? I am currently using the getWidth and getHeight methods of my center panel but it is still drawing in the top left corner. It's …

Member Avatar for StephNicolaou
0
245
Member Avatar for 18engineer

i am learning php... i want to implement ajax with php.. can u tel me a good tutorial of implementing ajax with php? i have visited [url]www.w3schools.com[/url] but it provide a very basic intro about ajax and php... i need some implementation examples... Thanx

Member Avatar for Nick Evan
0
106
Member Avatar for lbgladson

I am developing a form that calculates a Business Travel Expense for a business trip. Everything is fine and dandy but I have to display the information in a listbox using zone ouput. There is nothing in my book about zone output...the teacher provided us with this Dim fmtStr As …

Member Avatar for Reverend Jim
0
127
Member Avatar for cskinittest

hai iam new to this domain. iam developing online quiz contest project in php (mysql,javascript,ajax) i need Automatic session timeout/logout and also i need time counter display using php and AJAX. pls refer any website. i searching for last 2 days.. advance thanks..

Member Avatar for Stefano Mtangoo
0
1K
Member Avatar for Helinxed

Hello everyone,I need a help to back values from php to javascript... Listen: [CODE] __hasInventory = true; _iMatrix = []; $.ajax({ url: 'index.php?acao=test', dataType: 'script', type: 'post', data: {mode: 0}, success: function () {[/CODE] If is all Ok with post method,I'd like it back with results passing PHP results to …

Member Avatar for Helinxed
0
162
Member Avatar for davy_yg

product_preview.php [CODE] <h2><center>Product Preview</center></h2> <p> <form method = "post" action = "product_edit.php" > <p> <input name="tambah_produk" type="button" value="Tambah Produk" /> </p> </form> <table border="1" cellpadding="2"> <tr> <td>No </td> <td>Nama Produk</td> <td>Harga</td> <td>Tgl Masuk</td> <td>Aksi </td> </tr> <?php include ("includes/koneksi.php"); $i = 1; $output = mysql_query("SELECT * FROM produk") or die(mysql_error()); …

Member Avatar for Stefano Mtangoo
0
285
Member Avatar for asif49

Here's a simple version of my problem: [CODE] <?php $words = "hEllO wOrLD"; //the input (is usually always different each time) $phrase = "I made a program which prints Hello World"; $result = str_ireplace("$words", "<b>$words</b>", "$phrase"); //str_ireplace(search_for, replace_with, apply_to) echo $result; ?> [/CODE] This would produce the output "I made …

Member Avatar for diafol
0
242
Member Avatar for TigerTeck

[CODE]public class Card { public Card(String cardValue) { input = cardValue; } public String getDescription() { if (input.length() == 2) { if(input.substring(0,1).equals("A")) first = "Ace of "; else if(input.substring(0,1).equals("2")) first = "Two of "; else if(input.substring(0,1).equals("3")) first = "Three of "; else if(input.substring(0,1).equals("4")) first = "Four of "; else if(input.substring(0,1).equals("5")) …

Member Avatar for TigerTeck
0
331
Member Avatar for Sorcher

Hello! I am fetching some names from MySQL and i want to remove duplicated strings. Currently got this code: [CODE]function get_PublicAlbums(){ $sql = "SELECT * FROM `ue-userfile` WHERE public=1"; $result = mysql_query($sql); $html = ""; while($row = mysql_fetch_array($result)) { $albumname = $row['albumname']; $html .= '<p><a href="index.php?page=public-albums&an='.$albumname.'">'.$albumname.'</a></p><br/>'; } /* It might …

Member Avatar for Sorcher
0
155
Member Avatar for stereomatching

Is it really hard to find someone who know how to make a good use of stl and combined the power of GP and OOP?Like the way modern c++ design did? There are so many people say these kind of techniques are unrealistic because there are only a few of …

Member Avatar for vijayan121
0
259
Member Avatar for dhani09

I'm so confused on how to calculate the running time of an algorithm. i've searched online but i can't seem to understand any of the explanations hence my question: how do you calculate the running time of any algorithm? Please i'd love an explanation with any example or you can …

Member Avatar for JeffGrigg
0
128
Member Avatar for extjac

Hi, i am trying to make this work but i guess i am missing something..... This is what i have: "db.php" [CODE] <?php DEFINE('DATABASE_USER', 'root'); DEFINE('DATABASE_PASSWORD', '123456'); DEFINE('DATABASE_HOST', 'localhost'); DEFINE('DATABASE_NAME', 'livesearch'); $mysqli = new mysqli(DATABASE_HOST, DATABASE_USER, DATABASE_PASSWORD, DATABASE_NAME); if (mysqli_connect_errno()) { printf("Connect failed: %s\n", mysqli_connect_error()); exit(); } else { //connected …

Member Avatar for extjac
0
377
Member Avatar for chiiqui

I just wanted to know what famous algorithms that you should have in hand? or be familiar with? or That is always used?

Member Avatar for JeffGrigg
0
235
Member Avatar for Sinnocence

I compiled with py2exe and added the setup.py script because a few people have been having trouble with email.MEME.Text working with py2exe. The .PNG's are attached below save them to your c:/python26/ there isn't much security (passwords are temp stored in a .dat file) ________________________________________________ to: [email]john@email.com[/email] sendcount = 100 …

0
100
Member Avatar for rotten69

[CODE]public static void main(String [] args){ ArrayList<String> list1 = new ArrayList<String>(); list1.add("ABC"); list1.add("123"); ArrayList<String> list2 = method(list1); list2.add("ABC"); list1.add("123"); System.out.println(list1); System.out.println(list2); } private static ArrayList<String> method(ArrayList<String> list) { ArrayList<String> result = list; result.remove("123"); return result; }[/CODE] Could anyone explain this code to me? why it gives me the same result …

Member Avatar for JamesCherrill
0
193
Member Avatar for vasim jada

Dear Friends, I am developing an application for multi user using vb.net with back end as ms-access. For the table name as employee_master, there is a column, name as student_profile having datatype as [B]Yes/No [/B]. If value of student_profile is "yes" then label1 will be shown and If value of …

Member Avatar for Reverend Jim
0
867
Member Avatar for vidhya33

Hi.. I need a java program to find out the bandwidth in LAN.. Please help me in solving out this problem soon... Thanks in advance..

Member Avatar for JamesCherrill
0
98
Member Avatar for tstory28

I am still a newbie at programming in VB.NET but I am wondering if it is possible to write a program that allows for remote support, like Teamviewer, LogMeIn, etc., using VB.Net and what is the easiest way to go about it? Only reason I ask is because I do …

Member Avatar for Reverend Jim
0
606
Member Avatar for c++_fem

Hi, Does anyone know how to animate object so it follows a previously drawn spline? I tried by translating all object vertices by Spline_point[i]-Spline_point[i-1] by frames but this doesn't work. Does anyone have a better idea?

Member Avatar for c++_fem
0
107
Member Avatar for Stjerne

Hello guys, Sorry for the title, it should be Renting bicycle program XD Can't edit XD I've got a task from my school. I've to create a new computer system for Oslo City bikes. The Oslo City Cycle bike racks at various locations around Oslo where people with valid bike …

Member Avatar for Stjerne
0
834
Member Avatar for StephNicolaou
Member Avatar for yurigagarin

I have a bunch of floats and I need to convert them to string to use Send command to send to a Receiver. However, I been trying to code like below where long1deg is a float. [ICODE] char long1degC = long1deg; [/ICODE] Or [ICODE] char* long1degC = new char[30]; float …

Member Avatar for yurigagarin
0
213
Member Avatar for davy_yg

contact_us.php [CODE] <h2>Contact Us</h2> <br /><br /> <form action="send_email.php" method="POST"> <table border="0" cellpadding="2"> <tr> <td>Nama Lengkap: </td> <td><input name="nama" type="text" value="" size="30" /></td> </tr> <tr> <td>E-mail: </td> <td><input name="email" type="text" value="" size="20" /></td> </tr> <tr> <td>Nomor Telepon: </td> <td><input name="telp" type="text" value="" size="15" /></td> </tr> <tr> <td>Pilih Subjek : </td> …

Member Avatar for davy_yg
0
357
Member Avatar for anerchy

hi. I'm trying to make a simple c# program using sqlserver. when i try to save something into database, it gives this error. here's the code. that 15(age value) is the default value on my numericupdown [CODE]using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; …

Member Avatar for anerchy
0
246
Member Avatar for whitech

i have to find proper divisors of a positive integer.for instance,the proper divisor of 15 are 1,3,5. input 15 output 1 3 5 like that. Thank you for your helps.

Member Avatar for cse.avinash
0
202
Member Avatar for hayden11

Please help. I ask the users to give me a char (either X or O), but when the users play the game, all they see are squares. Thanks!! [CODE]//game class import java.util.Scanner; public class Game { Player player1; Player player2; Board gameBoard; public Game() { player1 = new Player(); player2 …

Member Avatar for hayden11
0
437
Member Avatar for RenanLazarotto

Hey guys! I've been working on two projects, one needs to have multiple forms, but when I open one form, it needs to close the sender. But, when I try it, the program exits! I don't want it, I just want to close the form, not the app. I tried …

Member Avatar for codeorder
0
2K
Member Avatar for brainfo

I dont know wats wrong with my code but what am trying to do is for salary its an addition of DA and HRA. Here is my code.[CODE]#include <iostream.h> class teacher{ private: char name[20]; char subject[10]; float DA , HRA ; float salary; public: void getdata(); void display(); int payrol(); …

Member Avatar for brainfo
0
104
Member Avatar for mameemonster

hi. this is my program for bus ticket detail. at the bottom of my program, i want user to input yes or no for loop this program. but before i can input anything, it already told me that 'Please input the correct answer'. it is like i already input something. …

Member Avatar for D33wakar
0
142
Member Avatar for Violet_82

Hi there, I am doing some jquery exercises and I was redoing a small script I saw onto this video (very very good jquery resource by the way) [url]http://blog.themeforest.net/tutorials/jquery-for-absolute-beginners-day-8/[/url] and there is something I am not quite clear about. I copied that onto my test area so I can post …

Member Avatar for Violet_82
0
159
Member Avatar for lele07060

Hello everyone, I am new to this java programming and wanted to know if anyone could solve this problem for me. I would greatly appreciate it. Thank you! "Write a program that asks the user for 2 integers a and b, the program displays their sum, difference, product, quotient a/b, …

Member Avatar for JeffGrigg
0
3K
Member Avatar for lbgladson

I have an assignment to create a class Input and have method public static int readInt(Scanner in, String prompt, String error, int min, int max) I was provided the main method but have no idea what I'm supposed to be putting in the class Input. This is what I have: …

Member Avatar for stultuske
0
170
Member Avatar for looklikeasfine

Write a program that computes the average and standard deviation of the text floating point numbers in a file. Use the following formulas for the average and the standard deviation of N values. The formulas compute the sum, the sum of squares, the average, the average square, the variance, and …

Member Avatar for stultuske
0
115
Member Avatar for itai.dee
Member Avatar for Narue
0
68
Member Avatar for javaman2

The standard deviation of a list of numbers is a measure of how much the numbers deviate from the average. If the standard deviation is small, the numbers are clustered close to the average. If the standard deviation is large, the numbers are scattered far from the average. The standard …

Member Avatar for stultuske
0
2K
Member Avatar for FEC

I have this program to write that Generate 100 lowercase letters randomly and assign to an array of characters (Chars[ ] ). Count the occurrence of each letter in the array and save them in counts[ ]. Write a main function to test the different count. What i don't know …

Member Avatar for Narue
0
117
Member Avatar for drugoholic

Hello, I'm working on a small web app in C#, I have made the database and created a gridview to display and edit the data. I just want to know how can I turn a textbox field (in the update view) to textarea so I can see the whole text …

Member Avatar for drugoholic
0
108
Member Avatar for phfilly

Hi All! I've got a weird problem here...It doesn't want to add my int values to a char array even though I static_cast the value to char. If you could just look at my code please! [CODE]void AltBoolean::print(){ perma = new char[arraySize]; int temp; int counter = 1; for(int i …

Member Avatar for Ancient Dragon
0
363
Member Avatar for kyrool

Hi, I just want to know from everyone if they have problem on auditing?

Member Avatar for hfx642
0
84
Member Avatar for nchy13

i am working with g++ in linux ubuntu i am attaching input file for which error occurred. this file tries to insert 1000 numbers and then 250th smallest number. this code worked well when i inserted less numbers but it is not working for insertion of 1000 numbers. compiler shows …

Member Avatar for nchy13
0
175
Member Avatar for architact

Hello Coders, I am trying to generate the pdf file using php, I successfully generated the php file and then I tried to insert an image in the pdf file using php and got this error, I have the image and file in the same directory and don't know why …

Member Avatar for Bibhas Biswas
0
285

The End.