199,114 Archived Topics
Remove Filter ![]() | |
Hi I am trying to run the post fix and pre fix operation in C++. The code which I tried is given below. #include <iostream> using namespace std; int main() { int a =0; cout << ++a + ++a + ++a << endl; // 7 a =0; cout << ++a … | |
I need to add an image (saved path in mysql - image from file on server returned from $image_id) to my page according to 4 rows returned. There will always be 4 rows returned from db. My problem is that it shows the same image (main with 3 thumbnails) in … | |
I got a few labels which show a entire week. It's displaying the long date like this LblCurrentDay.Text = Date.Now().ToString("D") LblCurrentDay1.Text = Date.Now().AddDays(1).ToString("D") LblCurrentDay2.Text = Date.Now().AddDays(2).ToString("D") LblCurrentDay3.Text = Date.Now().AddDays(3).ToString("D") LblCurrentDay4.Text = Date.Now().AddDays(4).ToString("D") LblCurrentDay5.Text = Date.Now().AddDays(5).ToString("D") LblCurrentDay6.Text = Date.Now().AddDays(6).ToString("D") The labels are all inside each of their own small panel. But … | |
Dear Everyone, I have a functional instant search (in draft at [Click Here](http://www.woofwoofwoof.org/is08/search.htm)). I want the search to function very similarly to Google. This will help sighted people figure it out, and bring me much more in compliance with accessibility standards. Unfortunately, I'm missing two "Google-oid" features: . 1) **How … | |
Using Ajax after an year...please tell me what I'm missing: JSP/Ajax File: [CODE]<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>Insert title here</title> <script type="text/javascript"> function login() { var xmlhttp; var username = document.getElementById('username').value; var queryString = "username="+username; … | |
Hi I am working on a project where i am using open source files. I am getting error ' Starting a second message loop on a single thread is not valid operation'. First I changed Application.Run to Form.ShowDialog but still I am having same issue. Other thread (Application.Run) is in … | |
hi daniens i want to send the attachments through authenticated mail in php. so can anyone help me ?? thanks in advance :) | |
**Can you help me with this** TEXT will not accept the number zero and negative numbers. | |
hi all; i have a reg.php where the user can register if user registration is success then he/or she is redirected to the login in 3 secs with a message saying **"you have successfully registered you will be redirected to the login page shortly"** but if the registration fails i … | |
Hi, I have a custom combobox(say comboboxEX) derived from System.Windows.Forms.ComboBox. OnPaint() event I have some background color and styles for the combobox. Every thing works fine. My problem is, I can't set background color when DropDownStyle is "**DropDown**" and **Enabled = false**. But it workes when DropDownStyle is "DropDownList" and … | |
Hello all, This is my first time posting in this forum. I searched and found a similar post from years ago, but was unable to find an answer. I'm hoping some of you may be able to help me. I've been assigned a problem in which 20 integers must be … | |
hii i finished these topics 1.linked list 2.stack and queues.how much time will it take me to finish trees 1.binary tee 2.avl tree 3.b-tree 4.binary search 5.threaded binary tree??? actualy ill try through linked list will it be easy??? | |
hello im trying to delete a middle node in binary tree .but i have tried it in a linked list but here how to do that does any one them has links or video tutorials??????????? | |
Hi all, I am looking at neat ways of re writing this code below, especially the for loops as I would have over 50 of these statements if I did this the manual way shown below. n = 50 files = [open("files%i.txt" % i, "w") for i in range (n)] … | |
![]() | I am having problem with my python homework. My homework is asking to create a Python program to calculate a student test averages regardless of how many tests will be averaged. Also, it is asking to allow the teacher to continue averaging grades for any number of students. This is … ![]() |
**Dudearoo** *Useing Code::Blocks* How do i Parse??? Can you guys Teach me how to parse a Config File? i Do have the Boost Librarys Installed so if any of you have a way to do Parsing with it then thats ok, I will be able to Follow :) Here is … | |
Hi everyone, When I'm typing url for e.g. www.mydomain.com then, it is not redirecting to www.mydomain.com/index.php. It is displaying error message on browser as **Server Error. 403 - Forbidden: Access is denied. You do not have permission to view this directory or page using the credentials that you supplied.** If … | |
I have created a website with two webpages. One webpage has an html form that allows a potential employee to submit their name, phone number, preferred job, college major, and preferred hours (part time or full time). The information is appended and saved into a text file called applications.txt. The … | |
Has anybody ever installed libjpeg for windows. I have a MingW compiler, MSYS if needed and the instructions are leading me nowhere. It seems to require an understanding of one thousand obsolete systems to get anywhere. Must I have MSYS installed? Can I install using the windows CMD Prompt? Is … | |
hi all, In the book "Programming Languages-Pragmatics" second edition by Michael l. Scott and Morgan Kaufmann, there is a sentence while explaining about copy constructor: "In recognition of this intent, a single-argument constructor in C++ is called a copy constructor." This is about the constructor of the form foo::foo(const foo& … | |
Thank you for looking at my issue. I am a beginner in school and we have an excercise that asks us to write a program that uses nestes loos to draw this patter: ******* ****** ***** **** *** ** * and ** * * * * * * * * … | |
I have a table attendance which contains id(int), attendance(char), and date(date datatype) columns. Values get stored in this table through a php file. In the below code I have given two textbox for the user to select date range. eg. from 2012-10-15 to 2012-10-17.. when the user selects date range … | |
Please help, so I have this combobox in html/php, So I want to load the records from mysql to a combobox, I had done that, so when the user selects a record in combobox, how can i get the selected value in the combobox?? Please guide me. I'm new in … | |
I have a class proxy, Process Track Manger. To the constructor of the Proxy I sent an instance of Process class. Process class has a list As public List<TrackManager> l = new List<TrackManager>(); I add 2 instance of track manager to the list. From another class call UpdateClient, how do … | |
I have found a LOT of info on searching the screen for a pixel color, but none of it even remotely definitive (as far as i can tell, because i'm rather noobish) I understand programming on a fundemental level, but I'm new to C++ I'm hoping to figure out how … | |
Here is my Code...Im just confused on how to make a Driver class for this. Any help would be great! I know there shouldnt be a Main but it was the only way i could test my drawing on eclipse since i dont really get how to use a driver. … | |
Hey everyone need some help again with finding the min and max from a text file. its my college lab assignment. here is my code till now. #include <iostream> #include <fstream> using namespace std; int main() { ofstream fout; fout.open("Text.txt"); ifstream fin; fin.open("Lab6.txt"); float c; int count = 0; float … | |
Hi all, I am setting up a registration form for a website im building. When the user enters his/her information i would like to validate that the Username/Email aren't already in use. At this point in time ive got my mind set on a function that runs 2 seconds after … | |
Not mine but has been usefull so thought i would share. <script type="text/javascript"> function toggleMe(a){ var e=document.getElementById(a); if(!e)return true; if(e.style.display=="none"){ e.style.display="block" } else{ e.style.display="none" } return true; } </script> <input type="button" onclick="return toggleMe('para1')" value="Toggle"> <div id="para1" style="display:none"> blah blah blah blah blah blah blah blah blah blah blah blah blah … | |
Hi, I had an assignment where we had to fox a program and get it working correctly. I fixed 99% of the problems and the program runs correct. The only thing that is wrong is my insertionSort() method. It runs correctly, but in the wrong order. Currently its listing names … | |
I have to insert State objects into the link list, but the linklist is sorted I placed my notes in my code. Any help would be appreciated. public void insertAddStack() { int probe=0, index=0; States key=null; for (; index < addStackItems; index++) //loops through keys { for (; probe < … | |
***using select query result in insert query*** ***i have this code in .cs Page .cs page*** String query = "select userid from tblUser where email='" + EmplyrSession + "'"; SqlCommand com = new SqlCommand(query, con); try { con.Open(); int noRows= com.ExecuteNonQuery(); Response.Write(noRows); } catch (Exception ex) { Response.Write("Sql Error:" + … | |
hi i have an string array in which i have combinations of 0's and 1's like on index 0 i have "01", on index 1 i have "11", on index 2 i have "00", on index 3 i have"10" etc is their any possibilty that i can take these values … | |
This code is a java code. Can you please help me convert this to c#? private static URL URLObj; private static URLConnection connect; static String source = ""; public static void main(String[] args) { try { URLObj = new URL("http://students.usls.edu.ph"); connect = URLObj.openConnection(); connect.setDoOutput(true); } catch (MalformedURLException ex) { System.out.println("The … | |
I WANT THIS BUT I CAN NOT UNDER STAND PLZ HELP WHAT CHANGES I SHOUL DO HERE I WANT TO MAKE quick estimation by taking the temperature in Celsius, double it and add 32 AND WANT TO Write a program that takes temperature in Celsius; convert it to Fahrenheit both … | |
Hi people, I am making a little experiment to see something. I wished to inherit "string" class and add a function to child class. Function should take a char as parameter and return bool depending on is there such a character in our string or not. I have started off … | |
A coffee shop offers a range of drinks * Tea - $1.00 * Coffee - $1.50 * Hot Chocolate - $2.00 * Chai Latte - $1.75 * Flat White - $2.20 You will need to create a program that keeps track of the total spent after each order. * At … | |
Ask an user to type in a password, a qualified password should follow the constraints, such as: Length of password >= 8 Include at least one uppercase character Include at least one lowercase character Include at least one integer Include at least special character Write a program to check if … | |
public class QS { public static <T extends Comparable<? super T>> T[] quickSort(T[]array) { return doSort(array, 0, array.length - 1); } //some other methods................. public static void main(String [] args){ QS qs = new QS(); int [] nums = {4,7,23,1,2,45,23,11}; qs.quickSort(nums);//gives error } } I am getting an error in … | |
Im trying to get the output to read on one line such as this: Reference String 1 2 3 where 1,2,3 is the number the user enters. Instead the output is as such: 1 2 3 Reference String. How can I improve this to read correctly? import java.util.Scanner; public class … | |
Hey everyone I am New here.... need some help with my coding for my college HW assignment.... I need to make a rock paper scissor game. I can think of the game in my brain on how I am gona code it but when I try to program it doesnt … | |
In vb6 I installed in my computer it has microsoft windows common controls 5.0(sp2).I want to know how to have full row select option in listview component.how can i select full row at listview.in listview properties there is no fullrowselection check box.it has only 5 chechboxes. | |
how do I set visual studio to read my C code by default instead of C# or whatever its doing? | |
The code below works: public class concat { public static void main(String[] args){ String[] filters = {"A","B","C","A","K","C"}; String[] values = {"1","2","3","4","5","6"}; String a = ""; for(int i=0;i<filters.length;i++){ String temp = filters[i]; for(int j=0;j<filters.length;j++){ if(filters[j].equalsIgnoreCase(temp)){ a += values[j] + " "; values[j]=""; } } if(a.trim().length()!=0){ System.out.println(temp + " [" + a … | |
Hi! I have a contact form that won't...do anything!! I'm kinda new at this, although I've been succseful on MS SQL for YEARS...Can some one shed light on this? Thanx in advance!: The HTML: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> … | |
I have in Android/Java/Eclipse a Flag Guess Game: appear a name of country and below 3 or 6 or 9 flags (depend on settings) in 1 or 2 or 3 rows respecively to, choose the flag for the country name...well something wrong exist and flags appear some very big and … | |
Hi there i am wondering if there is easy way of writing the following problem in C:- For everytime constant A increases, constant B should decrease by 10 until A is equals to 120 !! Thanks in advance guys I dont really want to clutter my project with tons of … | |
I'm new to MSSQL though I have some grounding in MySQL. At the moment, I'm trying to use a variable. Reduced to simpler form, my query to search people with 'and' in their name is: DECLARE @MyVar nchar; SET @MyVar = '%and%'; SELECT name,email FROM db.dbo.users WHERE name LIKE @MyVar; … | |
Anyone who know what is the code that i have to write in to get the answer ????? with the formula : 1+2!/((x-2))-3!/((x-3))+4!/((x-4)) - ... n!/((x-n)) ------------------------------------------------------------------------------------------------- #include<iostream> using namespace std; int fact (int no) { int total; for (int i=0; i<=no; i++) { if(i ==0) total = 1; else … |
The End.