199,114 Archived Topics
Remove Filter ![]() | |
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 … | |
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 … | |
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 … | |
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 | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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... | |
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; } … | |
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 … | |
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. | |
hi, i doing a project to send MMS using PIC16F876.. how to define the pic16f876 in c++? thank in advance. | |
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 … | |
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 … | |
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 … | |
Can someone help me in implementing a JDate picker without using packages, whereby will click the calender icon and the calender will appear. | |
[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 … | |
[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). … | |
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 … | |
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(); … | |
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 … | |
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: … | |
[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 … | |
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 … | |
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 … | |
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 … | |
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 … ![]() | |
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. … ![]() | |
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 | |
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? | |
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 … | |
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 … | |
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 … ![]() | |
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 … | |
[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 … | |
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 … | |
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 | |
![]() | 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 … ![]() |
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", … | |
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 … | |
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 … | |
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 … | |
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 | |
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) … | |
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 … | |
![]() | 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 … ![]() |
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++. … |
The End.