199,114 Archived Topics
Remove Filter ![]() | |
I'm trying to sum command-line integers. My total is constantly 473. I dont know how to get the right total. [CODE]#include <stdio.h> 4 #include <stdlib.h> 5 #include <ctype.h> 6 7 #define MAX 100 8 9 void sum(char *a, int n); 10 11 main (int argc, char *argv[]) 12 { 13 … | |
Ok, here's what I've got. In the screenshot, you'll see three things- a start time, end time and total time. So the goal is this- A user puts in a current start time by hitting F1 at the start of shift. They tab across the end time to the "time … | |
Hi everyone. Im trying to upload a file to an ftp server. I found this code in the internet but its not working for me. Can anyone please tell me where the error is?? This is my code [code]import java.io.*; import org.apache.commons.io.FileUtils; import org.apache.commons.net.ftp.FTP; import org.apache.commons.net.ftp.FTPClient; import org.apache.commons.net.ftp.FTPFile; public class … | |
I'm trying to make a siple list to display sqlite rows in a grid using wxList. I can't come up with something decent. I can't place correctly the items in the list. [code] #!/usr/bin/env python # -*- coding: utf-8 -*- # generated by wxGlade HG on Wed Sep 22 12:34:17 … | |
PHP: If go to upload an image exist already and sometimes want replacement what code? if this is the default, please tell me for: if[B] not [/B]want replacement what code? | |
Hi, I usually use C++, but I am working with some very old code and need to do it in C. So i understand malloc is used char *p; p = malloc(200); where 200 is the amount of bytes I need. and yes i know I need to use free. … | |
Hello all, I need to develop a simple web application in java that will take MS excel files as input and generate output in excel format as well. Since I am not very experienced in java I am not sure what framework should I be using. Do I need to … | |
Let's create a continuing thread to program Crazy 8's from scratch for learning purposes! [B]DECK/CARD IDEA'S[/B] My simple starting suggestion: [CODE]deck = ['2C','3C','4C','5C','6C','7C','8C','9C','10C','JC','QC','KC','AC', '2D','3D','4D','5D','6D','7D','8D','9D','10D','JD','QD','KD','AD', '2H','3H','4H','5H','6H','7H','8H','9H','10H','JH','QH','KH','AH', '2S','3S','4S','5S','6S','7S','8S','9S','10S','JS','QS','KS','AS',][/CODE] | |
So i guess its easy enough to encrypt text, but what if you wanted to encrypt a video file or some other file that wasn't text? By writing my own program I mean. How does that work, any links? Thanks | |
hi, I am designing Online Test Creation Using asp.net(C#). in that question display should be like this; .....................Question............................. O opt1 O opt2 O opt3 O opt3 prev next (buttons) my questions and Options had saved in two Sql tables. Question(idquestion,Qname,Answer,Qtype) idQuestion is primary key Answer_Detail(idAnswerDetail,idquestion,options) idAnswerDetail is primary key and … | |
Set up my database through the wizard and copied the connection string it presented to me. But am having problems connecting to the actual DB. Error quoted below. Am I missing out on something? [CODE] Private Sub btnDB_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnDB.Click Dim strConnect As … | |
Hello Everyone, In my sql database I am having a country field and a State field with some values and also some null values and I am populating the country values into a dropdown list box in the frontend using database connection e.g. [B]Country[/B] India Indonesia null Iran My requirement … | |
When to use pointers and when to use references in c++. plz clear my doubt.. thnks in advance | |
I have a project that can potentially use a SQL server as a host for it's data. When a user starts the application for the first time, a wizard walks them through selecting how to store their data. If a user selects the SQL option and indicates that the database … | |
Hi, My mysql_error is No Database Selected. errno 1046 I am connected to the database and it has worked fine before so I was wondering what I am doing wrong. The code is from a tutorial I am using. [CODE]<?php require_once('Connections/connAdmin.php'); ?> <?php //file properties $file = $_FILES['content']['tmp_name']; if (!isset($file)) … | |
This is what I have done so far. using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace game.casestudy { public partial class Form2 : Form { public Form2() { InitializeComponent(); } private void objectiveToolStripMenuItem_Click(object sender, EventArgs e) { Form Ronald = new … | |
So I'm trying to make a parser for a game replay. I just need help getting started, I have docs for it explaining. Atm I'm just trying to get the header parsed. [code] replay = open(r'C:\Users\CookieMonster\Desktop\mix.w3g', 'rb') #offset | size | description print(replay.read(0x1c)) #0x0000 | 28 chars | zero terminated … | |
My problem is that when this executes the results come up as a query in the text box and not the result. Is there a way that this can be converted? The idea is to select a name within the combobox and this should update the 3 textboxes with the … | |
I am in an artificial intelligence class. We got our semester long project. We have to build a game of dragon checkers. The game has been created by our professor. It is very similar to animal checkers only a little bit more complex. I have played both animal checkers and … | |
I've been trying to modify a function and every attempt seem to screw up the plist. [CODE]def removeItem(pl, item_name): for dock_item in pl['persistent-apps']: if dock_item['tile-data']['file-label'] == item_name: verboseOutput('found', item_name) pl['persistent-apps'].remove(dock_item) return True for dock_item in pl['persistent-others']: if dock_item['tile-data']['file-label'] == item_name: verboseOutput('found', item_name) pl['persistent-others'].remove(dock_item) return True return False [/CODE] This scans … | |
[B][COLOR="Green"]i am making a .net website and willing that the menu items should appear in the bottom of a button when mouse is placed on the button. what to do? [/B][/COLOR]:'( | |
I have a database that needs to have unique values wherein it will provide an error saying "Username already exist" and will not add to database. How to do this? | |
I just learned class and object today, couldn't even get the code compiled. could anyone help please? Thank you I have three files: Product.h Product.cpp TestProduct.cpp We haven't learned to put everything in a project yet. so for now, just just these three source files. [CODE] class Product { private: … | |
[B]Hello and Asslam o alekom![/B] This thread is for who wants to learn VB6, post your suggation and advises to us. | |
Hello I used 2 linked list. First : Students. Second: Doctor. Every Doctor takes a set of his students. The problem : How do I add students to the doctor? [CODE]#include <iostream> using namespace std; #include <string> struct student { string name; // current name student *next; // pointer to … | |
How to automatically setfocus on text input in a and go back to same page after data has been entered.. Just like after you enter a data in input box, the form will refresh and the focus will go in the textbox again.. thanks in advance.. | |
In my case, i want to make some tool with event, example : make a new textbox with event button click. Can Visual Studio 2005 vb.net do that? How to do that? thanks before :) | |
Basically this is suppose to read zipcodes from a file and sorts them in ascending order then calculates the total amount processed. I am getting output, but I think my problem is somewhere in my sort function. The program pretty much runs down to the last zipcode in the file … | |
Hey guys, I'm having a little trouble with my Java homework. So far I'm stuck on problem 3.5, C). My code so far is: [CODE]package multadd; /** * * @author Josh */ public class Main { public static void multadd (double a, double b, double c) { System.out.println ( a … | |
Hi, 1) below is an assembly question with the answers in red. I am trying to find out where the numbers 3, 4, 16/4, and 16 came from. I understand they are from intel for the IA32 chipset. But I can't find any table that shows where to get these … | |
Hello. I am trying to get the correct code in order to get specific content shown according to the current site the visitor is on. I have done two tests: [CODE=php] <!--START TEST 1--> <?php class address { function curPageURL() { $pageURL = 'http'; if ($_SERVER["HTTPS"] == "on") {$pageURL .= … ![]() | |
Hi, I am working on my assignment: The assignment is: The process of finding the largest value (i.e., the maximum of a group of values) is used frequently computer applications. Write a Javascript program that input a series of 10 single digit numbers as characters, determines the largest of the … ![]() | |
hi all, anyone knows whats wrong with this ipn lister? its exact same paypal ipn with only few changes in sql query, i get 500 internal server error however when i use the original paypal ipn script i don't get any error, any help please [QUOTE] <?php include ('config.php'); ///////////////////////////////////////////////// … ![]() | |
I found a code on several websites for a UDP client and server ... when I run the code of both the client and the server on one computer, it works normally ... but one I work on two computers (one server and the other client), the sever becomes 'Not … | |
Hi everyone, Does anyone know how to remove a particular attribute in XML by using Python? [CODE] <country> <city capital="Paris">Paris</city> ............ ............ </country> <country> <city capital="Helsinki">Helsinki</city> ............ ............ </country> <country> <city capital="Bogota">Bogota</city> ............ ............ </country> [/CODE] I just wanna delete or remove Paris and Helsinki here by using SAX or … | |
those are the maps: [CODE] multimap<SortKey,T> firstMap; multimap<SearchKey,pair<SortKey,T>*> secondMap; template <class T,class SortKey, class SearchKey> bool GarageDataBase<T,SortKey,SearchKey>::Add(T data,SortKey key1, SearchKey key2) { multimap<SortKey,T>::iterator it; it=(firstMap.insert(pair<SortKey,T>(key1,data))); pair<SortKey,T> *mizi=&*it; secondMap.insert(pair<SearchKey,pair<SortKey,T>*>(key2,mizi)); return true; } [/CODE] I am trying to insert a pair into the firstMap and get a pointer to this pair and … | |
[CODE] weather(sunday,fair). weather(monday,overcast). weather(tuesday,fair). weather(wednesday,fair). weather(thursday,overcast). weather(friday,rainy). weather(saturday,overcast). sky(blue):- weather(Day,fair). sky(grey):- weather(Day,overcast). [/CODE] If the weather is fair, the color of the sky is blue. If the weather is overcast, the color of the sky is grey. Birds are active on Sunday, Tuesday, and Thursday. Birders are happy on a … | |
///////////////////////////////////////////// make .jar runnable ////////////////////////////////////////// Hello; I can make a .jar from my program and move it to a folder in my progject but I would like to make it runnable. So I have shown the Command to make the -cmf (non runnable) .jar that works fine. I will show … | |
j ///////////////////////////////////////// Hello; I Have a JDesktopPane that opens with a x frame (JInternalFrame)wit a JMenuBar and 11 JTabbedPanels .produced by x.class.I click the menuItem to produce z.frame using x.class a new JInternalFrame with 4 tabbedPanels on it again produced by x.class. Now I click on x.frame and try to … | |
Here is the problem I am supposed to be answering: Suppose an expression is represented in a string (i.e., 35*4+5/(4+5)). Write a function that splits the expression into numbers, operators, and parentheses. The function takes an expression as the argument and returns a vector of strings. Each string represents a … | |
Hi, I am developing a Winform app in 2010 Express. I want to be able to srip out superscript and subscript characters out of the strings that I am cutting and pasting from web pages. For example: [CODE] 1 I, Nephi, having been aborn of bgoodly cparents, therefore I was … | |
Hello all, I am working on a couple of programs and having similar problems with both, not sure what am doing wrong and would appreciate help as usual. The first program should have a class which can store up to 10integers. Only one copy of any integer(no duplicate value. Program … | |
I am having a weird problem setting a session variable. I use a session array ($_SESSION['message']) to display messages. $_SESSION['message']['type'] = error/success; $_SESSION['message']['message'] = $message; Here is the function for displaying the message: [code=php] function displayMessage(){ if(isset($_SESSION['message'])){ echo" <div class=\"notification " . $_SESSION['message']['type'] . " png_bg\"> <div> " . $_SESSION['message']['message'] … | |
Hi, I have created a MYSQL database and connected to it using Dreamweaver CS3. There is a Master and Detail page and the initial creation works correctly. (not bad for my first attempt!!):cool: The site is for a dog rescue charity and it would be best to be able to … | |
Hi, Can anyone provide some examples or materials explaining ANSI and Non ANSI C Standards? Need some examples for non Ansi C Stanadard. Thanks in advance, regards, senche | |
Hi all, If anyone uses OpenSSL, I'd appreciate it if they can take a look at this code, where I'm trying to encrypt and decrypt a short test string. At first I used to get a run time error in the RSA_public_encrypt(...); and I thought that it was caused by … | |
Hello, Please tell me how can i generate an array in mfc, how can push element and how can initialize array? I want to make dynamic array of hexadecimal values. Thanks. | |
I'm trying to create a program to add two IEEE 754 floating point numbers, I'm pretty far into the program but I've come to a halt in the bit shift section of the algorithm. I have created a tmp variable to copy the mantissa(0's and 1's inside the char array … | |
Hello! I have a frame with some sizers in it (see code at th end for a running example). I would like to know how to repeat the sizers 2, 3 and 4 when pressing the add button. The sizers should be added before the submit button, and the control … | |
I have a programming assignment which I must complete and I need help starting it. We can't talk about code with the professor or the TA so I thought I'd come here to try and ask. Pretty much were going to be given a text file. This text file will … |
The End.