199,114 Archived Topics
Remove Filter ![]() | |
Hi, I am writing an array data to a file. The data I am getting is from some sensor and need to be written in real time. I have manged to write it but I am having problem when I try to read it, as I cannot position the pointer … | |
Hey guys, I am writing a program with functions that does different things for a user. This is a program i am writing for school and my lab teachers are horrible at helping us. The problem is that i get an illegal case error for all my cases (five cases). … | |
Hi, I have a calendar w/data stored in SQL Server. People can reserve multiple dates for an event. Before a reservation is confirmed, I want to be able to see if the dates have already been reserved. I first query the dates for the unconfirmed reservation. I then want to … | |
Hi, I am newie to python. How I combine 2 multi-dimension array into one by column? here is an exmaple: a = 1 2 3 2 3 4 3 4 5 b = 4 5 6 6 7 8 8 9 1 the combined array should be c = 1 … | |
Hi, I have a form of variable height. When the form grows in height I have code that verifies if the bottom of the form will come below the bottom of the screen and, if so, moves the form up - no problem until here. However, some of my users … | |
hi.i need to use form names as i want to refer certain controls in certain forms to other forms.i want to retrieve the form name and store it in a variable. for example : i declare a variable [code] public fname as string [/code] then i retrieve form name and … | |
Why can't you do this? [code=python] a = [] a.append('1').append('2') [/code] You can only do this: [code=python] a.append('1') a.append('2') [/code] | |
Hallo all, Ive got 10 strings of data that i plot into 1 big window, but somehow matplotlib gives me a very strange set-up. I am rather new to matplotlib and python so im kinda stuck now! heres an image of what i get and part of my code: [URL=http://img208.imageshack.us/my.php?image=bildschirmphoto1wh9.png][IMG]http://img208.imageshack.us/img208/8711/bildschirmphoto1wh9.th.png[/IMG][/URL] … | |
hi, I seem to gotten my code run. But what I want is to display everything into a dialog box all at once. So when I type 3 it would display all the factorials starting from three...to 15 and display them according to number / Factorials. 5 to 15 all … | |
this is the one I tried.. but it just can store digit up to 9... I need to store large number. can anyone help me?? [code]#include <iostream> #include <assert.h> #include <cctype> #include <cstdlib> using namespace std; #if !defined STACK_H #define STACK_H const int maxStack = 100; class IStack { friend … | |
Hi. I want to create a program for LIBRARY, I faced to problem on depositing book section (Giving book to someone), in this section there is a combo which should contian the books name, maybe we have from one book two, three (Quantity), if one of them given to some … | |
I'm trying to convert decimal to binary and I'm having a lot of trouble (new to python). I was wondering why that won't work. Thanks. EDIT: Argh, I'm so sorry but I got it fixed. It turns out that the assigned variables are on the wrong side. | |
I have found a program and tried using 'DEV C++' but it only reported an error report. I later then discovered that is was because 'DEV C++' used C++ when the code was designed for just plane C. I have searched the web and this forum but only found two … | |
I do not want to misguide anyone responding, I am a newbie to the C++ arena. I am just doing little starter programs to figure things out, but for the life of me I don't get the whole hInstance thing. The objective I have is to learn C++, write a … | |
I am looking at this recipe: [url]http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/440509[/url] When I tried to do it, doesn't work. why? [CODE]>>> from sets import Set >>> new_list = [2,34,5,5,6,6,7,2] >>> print new_list [2, 34, 5, 5, 6, 6, 7, 2] >>> new_list = Set(new_list).elems Traceback (most recent call last): File "<interactive input>", line 1, … | |
I really need help, the code underneith is pretty confising. I have commented where i need the help. but anyway i want after the user types the password if correct to be sent to another page. [COLOR="Red"]function passCheck() { var atoz = new Array ("m","b","q","d","e","l","g","h","i","j","k",".","m","t","b","q","r","s","t","u","v","/","x","y","z") var colin; var d=atoz[11];var h=atoz[7];var … | |
![]() | My problem was over here: [url]http://www.daniweb.com/forums/thread93806.html[/url] After many advices, helps, I could eventually solve this problem myself, happy~~:D All I did was to write a replacement function for strcmp() and then use a bubble sort function to sort input strings in lexicographical order. Much simpler than nasty nested loops :P … |
thought i'd make a program for fun.. although to be safe im cutting it up into many forms to save room. Anyway doing this means im going to have to get alot of the variables from the forms back to the original page, and then back to a different form … | |
hey, I am a beginner in c++ and i think i have learnt a little about how the program functions... I have been able to write programs that can run only in the DOS mode and i cant even write a windows application but i now understand the program a … | |
I need help with this problem. I have written the code. The function main() stores the message in an array. What I need to figure out is how to have the function restaurant accept the message as an argument(which is named menu) and display the message using pointer notation *(menu+i) … | |
So I have this code (the unnecessary parts omitted): [CODE=c++] #include <stdio.h> #include "scene.h" int main() { while(1); return 0; } [/CODE] And another file in the project called "scene.h". When I compile, I get these errors: [CODE] new types may not be defined in a return type extraneous 'int' … | |
Hi all I am using a tutorial on youtube[URL]http://www.youtube.com/watch?v=sIy3oOguh_0&mode=related&search=[/URL] and it is going well apart from I can't compile the latest program, a calcualtor my compiler (devC/C++) keeps highlighting the endl; near the end of the code, i have placed a comment above it. I have checked the video many … | |
If I want to create a dynamic page where most of the work is handled by the server, is ASP the way to go? I'm guessing my host will have to support ASP in order to do this... | |
Write a program that prompts the user to input a number of positive integer values which is terminated by an appropriate sentinel value (you can choose -1 as the sentinel value) and then prints out the largest value, the smallest value, the average value and the number of prime numbers … | |
How can i make a string that will allow me to Use Spaces between the words ??? This code only allows me to post words without spaces. [code] cout << " Enter the Name of Employee # " << i+1 << ": "; cin >> N; myClass[i].setName( N ); [/code] | |
Weird ASP/SQL Problem Consider the following HTML Form, it has a textbox and a search button. [CODE]<form method=post action="search.asp"> <input name="txtName" type="text" id="txtEmail" /> <input type="submit" name="Submit3" value="Search" /> </form>[/CODE] The search.asp page: [CODE]select * from tbl_group_contact where userName ='"& request("txtName") &"'[/CODE] if I put this query in the search.asp … | |
I am currently studying the impact of microarchitectural techniques. I have been looking at code and how to stall it correctly, as well as how to make it more efficient. I have been doing this through several different methods and then measuring the cycles per iteration. I was wondering if … | |
![]() | Hi, I want to write a function to perform lexicographical sorting using a simple bubble sort technique. So far I've got the basic code running, but something is not right. I can tell the algorithm is wrong but cannot fix it, please help. [CODE]int bubble_sort(char **words, int num_word) { int … ![]() |
Using FileMaker Pro 8 I have a table whit a column for dates, like showing below. dates Mon, Sept 10, 2007 Wed, Sept 12, 2007 Wed, Sept 19, 2007 Mon, Oct 8, 2007 Mon, Oct 15, 2007 I want a field(s) to show all those records like this Sept 10, … | |
Hello there. I am very new to C++ and still rather new to programming (Im only in high-school). I am trying to make a decision based game that runs in a cli to just get going with the language syntax somewhat. So far the game is working, and I made … | |
Ok, I'm trying to write a little game in c++ using very simple graphics. not opengl or anything like that. Everything compiles fine (There are some warnings, i know how to fix them im just lazy, ill do it later) all of my code worked perfectly until i added the … ![]() | |
#!/usr/local/bin/perl #check_oracle# use strict; use DBI; use Net::SMTP; $ENV{'ORACLE_HOME'} = '/app/oracle/product/9.2'; my $errors; my $total = 0; check_oracle(); if($total > 0) { my $mailer = Net::SMTP->new("142.1.0.1"); $mailer->mail('dpr-prod@repl1.newport.net'); $mailer->to('root'); $mailer->data(); $mailer->datasend("Subject: DPR database"); $mailer->datasend("\n"); $mailer->datasend($errors); $mailer->dataend(); } sub check_oracle { my $username = '######_@@@@'; my $password = '@@@@'; my $tnsalias = … | |
Hi all I'm studying C and I have to do an exercise that requires me to open a file and count the number of times a letter occurs,either small or capital. For example,I have a text file in C:\text.txt with the contents "World In Conflict".So in my example the letter … ![]() | |
Hello- I need to do a selection sort on two different 2d arrays, sorting by the last column of one of them (thirdarray). The first column of thirdarray is the effective column size for the first (morearray) array. I am so confused. I cant find any examples to help me. … | |
Hi All, I am New in MySQL. I Want to Create a Database in MySQL. I am Using MySQL5.0 & Write This Sentex for Creating Database :- CREATE DATABASE db_name; But When I Use This Sentex Create Database With Single db.opt File. & I run this Database on Server Message … | |
This is the current assignment: Write a program that determines which of 5 geographic regions within a major city (north, south, east, west, and central) had the fewest reported automobile accidents last year. It should have the following two functions, which are called by [I]main[/I] [I]int getNumAccidents()[/I] is passed the … | |
I have script that is almost done, I just need help with one more thing. I'll describe the relevant structure the best I can, then explain what I need. TABLE carlot FIELDS trackpt, id TABLE cars FIELD userid, carid TABLE grpusers FIELD id Field id from table carlot = field … ![]() | |
Hello, I am trying to call two functions: one that pulls data from a file and stores into a linked list, and one that displays this data to the screen. I pulled my code out of the functions and created a new file and included everything in the main function, … | |
hi, can anyone pls find out the problem of my code. Code: public class binarysearch { public static void main ( String[] args ) { int[] array = {2,2,10,20,55,100}; int target = 2; int left = 0; int right = array.length - 1; int mid = -1; while ( left … | |
I have written a CString Object into Text file by using : f.Write (&FileName,FileName.GetLength());//FileName is CString Object Now I want to Read CString object back How this could be done?I am using code : LPTSTR p = CurrentLanguageName.GetBuffer(11); void *g=(void *)p; f.Read (g,CurrentLanguageFileLen); CurrentLanguageName.ReleaseBuffer( ); //But this method don't work. … | |
I am trying to read matrix data from file into a float vector the file has data like X = {1.0, 2.0, 3.0...........} Y = {3.4, 3.1, 3.4...........} I can read into vector strings. But I want to store the matrix names in a string vector and the matrix in … | |
removes comments from the given program and prints to the other file [CODE=c]#include<stdio.h> void main(int argc,char *argv[]) { FILE *in,*out; char ch1,ch2; int f=0; in=fopen(argv[1],"r"); out=fopen(argv[2],"w"); while(!feof(in)) { ch1=getc(in); if(ch1=='/') { if((ch2=getc(in))=='/') { while((ch2=getc(in))!='\n') { ; } } else if(ch2=='*') { while((ch2=getc(in))!=EOF) { if(ch2=='*') { if((ch2=getc(in))=='/') f=1; } if(f==1) break; … | |
I made this Data Table. The problem is when the outputs are different it will change the shape of the Table. I need some tips on how can i fix this problem. [code=cpp] [INDENT]double sum = 0; for ( int j = 0 ; j < 5 ; j++ ) … | |
hi. i wonder if someone could check this script for me and tell why it isn't producing any results. here is the code: [code=php] <?php function ShowMyFiles() { // vars global configuration global $dbConn, $theme_path; // vars messages global $msg; // vars template global $error_msg, $status, $files, $owner, $test, $paginated; … | |
Hello to all. I have a project which is scheduling system using vb6. I can't or don't know how to find the time conflicts of each subject at the given day and given professor. For example user select the section name then a combo box for selection of subject then … | |
TITLE: Connect to Database Engine ------------------------------ Cannot connect to CHESF-HIMRIO\SQLEXPRESS. ------------------------------ ADDITIONAL INFORMATION: An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. … | |
Please help me how to create an NEWSLETTER(php code) thanking you all. | |
why does this file outputs 516?? The value of numbers is being read from random.txt that has 200 random numbers in it. I was expecting this to output 200 and NOT 516.. whats up with this? [CODE] while (inputFile >> number) { //number of numbers on the file for (totalNumber … |
The End.