199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for jitsux

So I tried to write a program that creates 15 random strings then allows the user whether he wants these strings sorted in descending or ascending order. the original strings and the sorted one to be displayed accordingly as well. Here is my attempt: [CODE]class Sorted strings{ final static int …

Member Avatar for masijade
0
127
Member Avatar for lyrico

Hi everyone, I need some help now. Can anyone show me a script on how can shared folder (not folder on the server) open using php? I mean my server's IP is 10.10.10.1 and then some shared folder are on the IP 10.10.10.2. Now I want to access the shared …

0
74
Member Avatar for nickliutw

I'm working on a manage friend list program which allow you to add friends, remove friend from list, and display friend list. I have not finish this program yet. But I keep getting compile error at line 42 which I'm trying to create a method allow user to enter name …

Member Avatar for nickliutw
0
228
Member Avatar for gulbano

Hey all I have to make a audio player in C# can any one tell me how to play an audio in c# form application ? Thanks in advance

Member Avatar for gulbano
0
91
Member Avatar for Joeflims

Hello. I have been trying to run a simple script in Windows 7 DOS using the python command, but it returns this error message: 'python' is not recognized as an internal or external command, operable program, or batch file. I've looked up how to fix on Google, but I can't …

Member Avatar for TrustyTony
0
773
Member Avatar for wrathyimp

Hi all, I have a table with 6 rows and 5 columns. First row is the header, I want to change color for the values in the 5th column, i.e. if the value is >0 then the font color is red, if value is <0 then its green. I have …

Member Avatar for nilesh.umaretiy
0
2K
Member Avatar for CrazyProgrammer

Hi, could someone help me work out how to write this format expressions it goes something like [CODE] displayBox.AppendText(string.Format("{0,-20}{1,0}\n", add11, add21)); displayBox.AppendText(string.Format("{0,-20}{1,0}\n", add12, add22)); displayBox.AppendText(string.Format("{0,-20}{1,0}\n", add13, add23)); displayBox.AppendText(string.Format("{0,-20}{1,0}\n", add14, add24)); [/CODE] the problem im having is that when add14 is empty add24 doesn't align properly with add22, add21, and add23 …

Member Avatar for Momerath
0
96
Member Avatar for kratosaurion

So here is my problem, my friend and I are writing a simple project for a electrical eng. teacher, who really doesn't know too much about programming c++. We were assigned to make a successive approximation ADC [URL="http://en.wikipedia.org/wiki/Successive_approximation_ADC"]Look here[/URL] in any coding language possible. I would have liked to make …

Member Avatar for kratosaurion
0
457
Member Avatar for dyingatmidnight

Hello, I'm having a totally brain freeze on how to do something that I believe is relatively simple but I'm having such a stupid moment that I don't even know what to google at the moment. What I'm creating is a book catalogue for a school project. It opens to …

Member Avatar for tomato.pgn
0
147
Member Avatar for deucalion0

Hey guys, I have a lot of javascript for my google map api and I have all the information stored away in an xml file which the javascrupt reads. I have many map markers but I cannot get a line break between th esets of markers, only each and every …

Member Avatar for deucalion0
0
247
Member Avatar for eileenc87

Hi, I cannot add data source in my window applciation;...There is no menu for me to add a new datasource. What is shown there is [B]none[/B] What should I do? Kindly assist Need your immeadiate attention...

Member Avatar for eileenc87
0
635
Member Avatar for bensewards

Hey everyone, I have to manipulate two functions RECURSIVELY, strlen and strcpy. I was able to code the strlen: [CODE]int length(char* str){ if(str == NULL){ return 0; }else{ return length(str, 0); } } int length(char* str, int l){ int len=0; if(str[l]){ len = length(str,l+1); } else { return l; } …

Member Avatar for bensewards
0
758
Member Avatar for MrHardRock

Hey everyone, I have my code written I just have one error I am stuck on, any help is greatly appreciated, thanks in advance. My one error is on line 80 saying "illegal start of expression" pointing at the 'p' of public [CODE] import javax.swing.*; import BreezySwing.*; public class binary …

Member Avatar for cretaros
0
155
Member Avatar for phpDave

Hi. I am trying to allow users to upload images to site. It works on testing server but having trouble on remote server. GoDaddy. Here is the upload dir for testing server: [CODE]define('UPLOAD_DIR','C:/xampp/htdocs/MyStuff/images/');[/CODE] Not sure for remote server.

Member Avatar for phpDave
0
229
Member Avatar for sabah88

hi, i doing a project to send MMS using PIC16F876.. how to define the pic16f876 in c++? thank in advance.

Member Avatar for awie10007
0
216
Member Avatar for aaronmk2

For this program I am trying to figure out how to sort/print the words out based on frequency of appearance in ascending order. As of now I can only get the words to sort/print based on alaphabetical order [CODE] from collections import Counter import string while True: filename=raw_input('Enter a file …

Member Avatar for TrustyTony
0
3K
Member Avatar for HashIncludeDotH

Hello, I am trying to compute the log transformation of an image(very easy... I know). But I am not getting the right result and I really don't know what I am doing wrong. I know the image provided is in the range of 0 and 1.5x10^6. But when I save …

Member Avatar for daviddoria
0
215
Member Avatar for ctyokley

So I have read almost all post over the internet, and I cannot figure out how to load profiles in a webpage. I have created a registration page and added some user steps into the registration page. When i sace the data, it will save all the profile stuff into …

Member Avatar for ctyokley
0
235
Member Avatar for cretaros

Can someone help me in implementing a JDate picker without using packages, whereby will click the calender icon and the calender will appear.

Member Avatar for cretaros
0
2K
Member Avatar for jimmymack

[CODE]// erase.cpp - Script 4.1 // We need the iostream file in order // to use cout and cin. #include <iostream> // Start the main function. int main() { // Declare a variable for the user input. // Single character to store yes (Y) or (N) char answer; // Prompt …

Member Avatar for jimmymack
0
108
Member Avatar for anish99virgo

[CODE]I am having two tables in MS SQL SERVER 2005 in master database. 1st table is Country & 2nd is City. [COLOR="Red"][B][U]I want to know the command for Copying a Column(with values) for eg say Name from City Table to Country Table. Column is not empty, its having values(data entries). …

Member Avatar for kplcjl
0
188
Member Avatar for Joshua Kidd

Hey guys, I need some help with selecting 2 Tables from a MySQL database. Can anyone help. Currently I am using this, and I want it to be able to select from another table called Admin and Display the Admins under admins in my table. [CODE]<?php $host=""; // Host name …

Member Avatar for chrishea
0
113
Member Avatar for eman 22

I have an error in my project and I can't fix the problem [CODE] #pragma once class Node { int code; int count; Node* parent; Node* rightChild; Node* leftChild; public: Node(int c1,int c2); void setCode(int c); void setCounter(int c); void setRightChild(Node n); void setleftChild(Node n); void setParent(Node n); int getCode(); …

Member Avatar for MattyRobot
0
120
Member Avatar for rhythm1576

hey guys I am new to the programming language and have an assignment due today and I am stuck on this. Its a scrable programming in C. I tried but cannot figure out how the main function should work out. Here is my code with the assignment instruction. If anyone …

Member Avatar for WaltP
0
283
Member Avatar for Dexxta27

Here is the class definition that I have so far: [CODE]#ifndef SAVINGACCOUNT_H #define SAVINGACCOUNT_H #include<iostream> #include<string> class SavingAccount { public: /** Default constructor */ SavingAccount(); /** Default destructor */ ~SavingAccount(); string getfirstName() const; string getlastName() const; static double modifyInterestRate();//static method declaration static double calculateMonthlyInterst(double,double); void setannualInterestRate(double); double getannualInterestRate() const; private: …

Member Avatar for ravenous
0
176
Member Avatar for esraa waqfi

[CODE]#include <iostream> #include <cassert> using namespace std; struct node { int number; bool high_priority; node *link; }; class linkedPriorityQueue { private: node *high_priority_front, *high_priority_rear, *queue_front, *queue_rear; public: linkedPriorityQueue(); void addQueue( int number, bool high_priority ); void deleteQueue(); int front(); int back(); bool empty(); bool full(); void print(); int size( bool …

Member Avatar for esraa waqfi
0
159
Member Avatar for Nfurman

Hello again, I have a problem with dropdownlist. DropDownList: [CODE] <asp:DropDownList id="ddlStudents" runat="server" CssClass="textbox" OnSelectedIndexChanged="ddlStudents_SelectedIndexChanged" AutoPostBack="True" EnableViewState="False"> <asp:ListItem Value="0">Choose</asp:ListItem> </asp:DropDownList> [/CODE] Method which fills the ddl with data from DB [CODE] protected void GetStudents() { SqlConnection conn = new SqlConnection(connection); SqlCommand cmd = new SqlCommand("GetFullStudentProfile", conn); cmd.CommandType = CommandType.StoredProcedure; cmd.CommandText …

Member Avatar for Nfurman
0
187
Member Avatar for Suzie999

I've been working on a project for a while, which for my convenience is a console app. The time is nearing where I will be needing to add forms to it, so what I'm after here is any advice on things to consider and look out for, before I do …

Member Avatar for gusano79
0
2K
Member Avatar for ThePythonNoob

Hi guys, thanks for all the help lately, but I require some more :o I need it that the user is able to choose what is on the controller, when I type in a valid option I test for it that it gets to that point but it does not …

Member Avatar for Narue
0
83
Member Avatar for kazekagerandy

how can i set the transparency of a bitmap that is displayed on the picturebox, i am making a digital makeup software and i want my makeup's tints or colors be reduced or increased. this is the code of that Public Class foundationfrm Private SelectedFoundation As Foundation Private MouseIsDown As …

Member Avatar for Unhnd_Exception
0
244
Member Avatar for webdi

I'm working on a task for a client that I thought would be simple. A remote computer uploads a file upon some event. My site needs to display a flag/statement if that file exists. So, upon page load it checks if the file exists. That all works fine and dandy. …

Member Avatar for diafol
0
2K
Member Avatar for MARKAND911

I have added a .xml file to application resources. Now I want to access that xml file and fill dataset using that xml file in c#.net Can anyone help that how can i do this in C#.net

Member Avatar for MARKAND911
0
401
Member Avatar for Sorcher

Hello! I would like to fetch the numbers at the end of this URL; [url]http://example.com/profile.php?user=15[/url] Do anyone know how i can get that by PHP?

Member Avatar for Sorcher
0
67
Member Avatar for Valmian

Hello, I have a very strange error. I recently installed a test environment on my laptop with IIS7/PHP5/MySQL on Vista Home Premium. When I tried to install phpMyAdmin I found that it somehow failed silently, in particular, config file could not get written even though no error was shown. To …

0
194
Member Avatar for D_rOiD

I need to know how to copy some folders not all from a source tmp/folder. I'm new to python and I want to better understand python. I can't use copytree because I don't wish to copy all folders. I want to be able to pick the folders I want to …

Member Avatar for jice
0
4K
Member Avatar for jatpatel1

Hi there, Please can someone help me! I have recently been learning oop PHP. I have created a class for my database, which basically makes my life easier when doing queries. I have created a "where" method which basically when used will append to the select statement. For example: //class …

Member Avatar for diafol
0
219
Member Avatar for niketakapoor

i have combobox in which membership_desc=gold,silver,platinum is displayed and have textbox in which i want that fees displayed automatically in it as gold=100 silver=200 platinum=300 [CODE]form_load(); combobox1.datasource=ds.tables["membership_details"]; combobox1.displaymember="membership_type"; combobox1.valuemember="membership_id"; combobox1_selected_index_chanded(); da.selectcommand=neew sqlcommand("select membership fees from membership_details where membership_desc='"+combobox1.selectedvalue+"'",cs); textbox7.text=??????????????????????????????????????????[/CODE] as i do binding of text box it show ERROR that …

Member Avatar for abelLazm
0
63
Member Avatar for lochnessmonster

[CODE] std::string function(std::string buffer) { int Variable1 = 23; if( !buffer.compare("Variable1")) <--- i want the user to input the variable name..and have my program match the input with the variable name of the program and return the value it contains return Variable1; [U]<--- How do i convert this number into …

Member Avatar for Caligulaminus
0
105
Member Avatar for daviddoria

I was under the impression that you could completely gaurd anything you wanted with an [icode]#if 0 [/icode]. Apparently this is not the case? I found some code that has opening /* comments but no matching closing */, and the /* seems to comment out the [icode]#endif[/icode], resulting in everything …

Member Avatar for daviddoria
0
135
Member Avatar for mi2010

i don't know how can i start or what classes i need in this project (wav player) with functions (play,stop,pause,record,mute) thanks in advanced

Member Avatar for triumphost
0
132
Member Avatar for geekman92

Hi i need to make a [B]BASIC[/B] HTTP server for a project using [B]JUST[/B] TCP/IP Sockets so please don't suggest anything that would use some of C#'s higher level networking components, Thanks =). [B]Anyway my problem:[/B] i have created the server and it all works so far but i haven't …

Member Avatar for geekman92
0
263
Member Avatar for DeannaF829

Hi everyone, I am new to this board. I am trying to figure out how to set up an SQL statement to grab a record from a database when I'm not sure what column/field the string I am looking for will be in. for instance: I am looking for "ABCDEFG", …

Member Avatar for debasisdas
0
95
Member Avatar for 650U

Hi guys, I am working on a web application project where I use MySQL database. Now I need to export my database/table as a CSV file and I'm using SSH client to access my MySQL. I have no clue how to export it. I would really appreciate if someone could …

Member Avatar for debasisdas
0
139
Member Avatar for carebear23

Hi I am having a problem with code i have created to delete a customer from my database, would be grateful if someone could tel me where i have gone wrong [CODE]<?php include ('db.php'); $cid=$_POST["cid"]; $cname=$_POST["cname"]; $cusadd1=$_POST["caddress"]; $cusadd2=$_POST["caddress1"]; $cusadd3=$_POST["caddress2"]; $ccounty=$_POST["county"]; $custpc=$_POST["cpostcode"]; $custele=$_POST["ctelephone"]; $cusemail=$_POST["cemail"]; print $cid; $str="delete from customer CustomerName='$cname',CustomerAddress='$cusadd1',CustomerAddress1='$cusadd2',CustomerAddress2='$cusadd3',County='$ccounty',CustomerPostCode='$custpc',CustomerTelNo='$custele',CustomerEmail='$cusemail' where …

Member Avatar for carebear23
0
184
Member Avatar for klemme

I have a question regarding how i can make my my navigation display the "correct pages". I am trying to build a CMS, with php and Mysql. So far I only had a table, from the DB, called "pages". I made the following code, to make this work - And …

Member Avatar for klemme
0
98
Member Avatar for Thropian

I'm looking for a simple way to rotate a shape in python, tkinter. The shape I'm rotating is a triangle (polygon) if it matters. Thanks in advance for all the help

Member Avatar for vegaseat
0
22K
Member Avatar for TechnoDarrel

Hi! i'm doing a final project for a university introduction course in web programmation. I'v Coded this: [CODE]class MainHandler(BaseHandler): def get(self): #product_comments = Comments().get_all() user = users.get_current_user() if user: member = Members().get_by_id(user.user_id()) baskets=Baskets().get_by_member(member) template_args = {'baskets': baskets} products = Products().get_all() product_comments = [] for product in products: comments = Comments().get_by_product(product) …

Member Avatar for woooee
0
227
Member Avatar for neemo6

Wondering how one goes about testing which button was clicked in an actionperformed method. For example if I have 2 buttons named button1 and button2, and create an if statement what is the proper syntax, ive tried this but get errors. Where am i going wrong? [CODE] //declaring buttons Panel …

Member Avatar for neemo6
0
189
Member Avatar for chudapati09

I can't get the following code to work correctly: [CODE] <html> <head> <title>test</title> </head> <body> <?php $ip = $_SERVER['REMOTE_ADDR']; echo "<h1>" . $ip . "</h1>"; ?> </body> </html> [/CODE] It outputs this: [QUOTE]" . $ip . ""; ?>[/QUOTE] But when I create a php file and throw the php into …

Member Avatar for diafol
0
92
Member Avatar for 02marks

Hi, I am trying to write a program for my mum who is a teacher, the program needs to be able to store students information like their name address SAT scores etc. I have a basic background in c, but i decided to try and implement this program using c++. …

Member Avatar for thelamb
0
203

The End.