199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for umesh314

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 …

Member Avatar for Lucaci Andrew
0
252
Member Avatar for AndreRet

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 …

Member Avatar for AndreRet
0
233
Member Avatar for Sevyt

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 …

Member Avatar for Sevyt
0
211
Member Avatar for DrChocolate

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 …

Member Avatar for Airshow
0
351
Member Avatar for raul8

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; …

Member Avatar for i_M_patil
0
251
Member Avatar for diptid

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 …

Member Avatar for caKus
0
696
Member Avatar for ratanji

hi daniens i want to send the attachments through authenticated mail in php. so can anyone help me ?? thanks in advance :)

Member Avatar for pritaeas
0
188
Member Avatar for Blank808
Member Avatar for Jx_Man
0
162
Member Avatar for pranay1995

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 …

Member Avatar for pritaeas
0
151
Member Avatar for kaizen202

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 …

Member Avatar for kaizen202
0
265
Member Avatar for lucasbernst

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 …

Member Avatar for Lucaci Andrew
0
2K
Member Avatar for rithish

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???

Member Avatar for Gonbe
0
114
Member Avatar for rithish

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???????????

Member Avatar for Gonbe
0
143
Member Avatar for padton

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)] …

Member Avatar for Gribouillis
0
232
Member Avatar for robert.montgomery.75054

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 …

Member Avatar for robert.montgomery.75054
0
226
Member Avatar for Dudearoo

**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 …

Member Avatar for ravenous
0
189
Member Avatar for javedsai

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 …

Member Avatar for pranay1995
0
299
Member Avatar for Anonymous123

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 …

Member Avatar for leviathan185
0
164
Member Avatar for daino

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 …

Member Avatar for vijayan121
0
3K
Member Avatar for challarao

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& …

Member Avatar for mike_2000_17
0
1K
Member Avatar for nUmbdA

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 ** * * * * * * * * …

Member Avatar for snippsat
0
119
Member Avatar for havish999

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 …

Member Avatar for havish999
0
257
Member Avatar for bLuEmEzzy

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 …

Member Avatar for bLuEmEzzy
0
4K
Member Avatar for anisha.silva

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 …

Member Avatar for anisha.silva
0
84
Member Avatar for Archaismic

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 …

Member Avatar for Archaismic
0
1K
Member Avatar for Seswing142

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. …

Member Avatar for Seswing142
0
98
Member Avatar for xxwikkixx

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 …

Member Avatar for xxwikkixx
0
1K
Member Avatar for Gobble45

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 …

Member Avatar for Gobble45
0
498
Member Avatar for Tko_1

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 …

Member Avatar for Troy III
0
210
Member Avatar for Yoink

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 …

Member Avatar for Yoink
0
3K
Member Avatar for taylor.mitchell.353

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 < …

Member Avatar for taylor.mitchell.353
0
333
Member Avatar for HunainHafeez

***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:" + …

Member Avatar for JorgeM
0
335
Member Avatar for de Source

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 …

Member Avatar for ddanbe
0
218
Member Avatar for aunog.arafat
Member Avatar for pmark019

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 …

Member Avatar for cale.macdonald
0
466
Member Avatar for gazzy1

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 …

Member Avatar for deben.salemme
0
155
Member Avatar for MrEARTHSHAcKER

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 …

Member Avatar for deceptikon
0
119
Member Avatar for dooboosjsdjs

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 …

Member Avatar for Delnith
0
158
Member Avatar for oneoderja

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 …

Member Avatar for Taywin
0
152
Member Avatar for plasticfood

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 …

Member Avatar for plasticfood
0
137
Member Avatar for anonb

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 …

Member Avatar for deben.salemme
0
137
Member Avatar for xxwikkixx

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 …

Member Avatar for xxwikkixx
0
404
Member Avatar for mahela

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.

Member Avatar for mahela
0
2K
Member Avatar for Delnith

how do I set visual studio to read my C code by default instead of C# or whatever its doing?

Member Avatar for Delnith
0
101
Member Avatar for solomon_13000

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 …

Member Avatar for Taywin
0
115
Member Avatar for Mikesmusings

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" /> …

Member Avatar for Mikesmusings
0
382
Member Avatar for lse123

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 …

Member Avatar for lse123
0
125
Member Avatar for mathews123

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 …

Member Avatar for deceptikon
0
191
Member Avatar for scaiferw

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; …

Member Avatar for scaiferw
0
102
Member Avatar for on93

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 …

Member Avatar for Schol-R-LEA
0
126

The End.