132,726 Archived Topics
Remove Filter ![]() | |
Hi, A newbie to VB6, I have to plot a graph using the picturebox control. I have drawn the 3 line graphs using the "Line" method and using relevant data. I have to shade the triangular portion marked "X" ( resulting from the lines B & C crossing the line … Software Development visual-basic | |
Hi All, I want some interesting Advanced data structures problems. Could you please let me know the link or the actual problem statements? If possible, you can send some hints to solve that problem. This would be very helpful for me. Software Development c++ data-structure | |
Hey guys, I've done some google searches today but didn't find a clear cut answer to this. I've got a function that I would like to return an array of strings. Any ideas anyone? Software Development c++ | |
Thanks to Dani for adding Python to the scripting languages category! ...I haven't heard many people mention Python around here... Am I the only Python fan here? I know its usage isn't as widespread as Perl, but it is, IMHO, as powerful and useful as Perl, for general scripting, web … Software Development perl python shell-scripting | |
Basically, I am trying to solve a problem a textbook. The book requires me to use karel J robot to develop programming principles. So the problem is correctly the following code so that the robot will do this: attached This is the code I am suppose to fix. Currently the … Software Development java | |
I'm having a problem with my for loops. The program is supposed to get a number from the user and when button is pressed add 1 and skip a line until the tenth number is reached. I fell like I almost have it but I'm missing something. Please help. [code=VB] … Software Development vb.net | |
Hi, I have to create this program and I am having difficulty doing it. Develop a Visual C++ program that will determine whether a department-store customer has exceeded the credit limit on a charge account. For each customer, the following facts are entered via a keyboard: a. Account number (an … Software Development c++ | |
Hi everybody, I have been writing a windows console application in c#. I want it to read all keys pressed and write them all into a text file when a specific window is active in windows xp environment. Now, I can find the active window, but I failed to read … Software Development | |
My Code has a problem, either if my first void is static or not i get a error that i cant seem to fix. This is the error i get if the void is static [CODE]Java Compiler By Noj All underpreciated java will soon apear All errors within java files … Software Development java | |
Hey Everyone! I'm having trouble with a C++ program I'm trying to write. I need to input a text file into a 2D array and sort it into 13 rows, 5 columns using strtok. I need to use strtok because some of the words are separated by ws, others by … Software Development c++ | |
Hello Everyone, I am having some trouble with a VBA application I am writing for work. I am using ADODB to connect to an Oracle database and return and I want to return a 2-D array from my function. The problem I am having seems to be determining how big … Software Development oracle visual-basic | |
I compiled this at school and swear it ran like a week ago. That was on a PC using Textpad, now I am on a mac using TextMate and I keep getting this error: class Checkerboard is public, should be declared in a file named Checkerboard.java public class Checkerboard extends … Software Development java | |
I made a win32 application in Visual C++ 2008 using the Windows Forms Application. But for opening files, and saving eventually, havn't gotten to it yet, I was creating some basic classes in other files. The odd thing is the [i]stdio.h[/i] file seems to be working differently in VC. I … Software Development c++ visual-basic | |
hi i was wondering how much i should use classes in C++. Should i use it as much as possible? Software Development c++ | |
Hi All, Below is the code I use in an Unix environment to connect to my organization's mail server(This is to read mails in my Inbox). [code=Java] import javax.mail.*; import java.sql.*; import javax.mail.internet.*; import java.util.*; public class readm { public static void main(String args[]) throws MessagingException { //Properties props = … | |
Hi, i am using VB6 with Access databse after a long time and have forgotten some syntax. I am using ADODC connection (the dirty method) wherein one makes a connection using ADODC component and setting its properties (ODBC and selecting table/ query). I need to display the fields of a … Software Development visual-basic | |
Hi all, I'm stuck - it might be easy but I don't work with VB6 much. I have a form that is open and has a button on it which opens a second form overtop of it. when the second form opens it locks the first form. Upon exit from … Software Development visual-basic | |
Hello everybody I am from Commerce Background doing some IT stuff got some problem by professors.. Can someone solve this problem thanks.. Program Specification: “The body mass index (BMI), or Quetelet index, is a statistical measure of the weight of a person scaled according to height. The body mass index … | |
Ok I have Visual C++ 2008 and I made a new project and made an app. It's a basic window with a menu, icon, etc. Now I have the following program for instance: [code] #include <iostream> #include <math.h> using namespace std; int main() { char answer; float c, e, x, … Software Development c++ visual-basic | |
Below i write the coding which is not working properly yo me.I want to open excel file and use select statement with where clause.But one I run the coding it give me exception it says "No Value give for one or more parameters" Pls help me. [ICODE] Excel.Workbook theWorkbook = … | |
Scenario: I have 2 scripts. One is an ftp program that takes a list of files and downloads them. The other is a simple program that takes one file and copies it to another directory. What I want to do: When the ftp program finishes with one file, I want … Software Development python | |
Ok... I'm working on a program that takes ISBN numbers, grabs data on them from ISBNdb.com and sticks said data into a database. At this point, I've successfully managed to get the ISBN XML file from isbndb.com, but whenever I try to feed it into SAX, it seems to try … Software Development api open-source python xml | |
How would one seperate a decimal into 2 numbers, the left and right sides of the decimal? float example = 131.14567 into... int left = 131 float right = .14567 thanks. Software Development c++ | |
i want to change first letter of both First name and Last Name to uppercase here is my code however, i am getting error..as Index and length must refer to a location within the string. Parameter name: length MY CODE IS AS BELOW : [QUOTE]Function uppercasefirstletter(ByVal oldString As String) As … Software Development vb.net | |
I am very confused how to write a function which can accept 3 input parameter to calculate sum and average.the sum and average should be returned through output parameter ... pls help ..thx Software Development c | |
I want to insert and order 3 objects (from different classes) in a priority queue. I create an array to access to the element inside the priority and then I push in the priority queue. The code: [code] #include <iostream> #include <queue> #include <vector> using namespace std; class Alumnos{ public: … | |
Hey I'd like to be able to play an mp3 file in a an application in one of my Load procedures. I just need the syntax for playing the file. thanks, Lee | |
Has anyone been able to compile the lib files using Microsoft Visual C++ 2008 Express compiler? I downloaded and installed MySQL 5.0 Server yesterday, then downloaded MySQL++ source. Attempted to compile and got a bunch of link errors. I used dumpbin.exe to get a list of all the symbols in … | |
I wans wondering if I could get some information on using win32 interrupts and making win32 system calls. I found the interrupt list for windows nt ([url]http://www.ctyme.com/intr/rb-4249.htm)[/url], and Linux ([url]http://www.ctyme.com/intr/rb-8144.htm)[/url], but I'm still unsure about the correct windows interrupt. I'm working on windows XP, but will also be working on … Software Development assembly windows-vista | |
Hi! I am a student taking my first computer science course. The course uses Karel J the robot to teach object oriented programming. However, after acquiring the library I was not able to find the "methods" or "behaviours" for the robot. According to the lecture notes they are suppose to … Software Development java | |
well, i started generating my code through Textpad, and when i run it, it runs smoothly, but if i am to create the jar file through Netbeans, it becomes a disaster and returns a null error. i cant even figure out where the error is... here is the part of … Software Development java java-netbeans java-swing | |
i have a method that saves an object to file : [CODE=java]public void Save() { if (canSave) { JFileChooser fileChooser = new JFileChooser(); if (fileChooser.showSaveDialog (this) == JFileChooser.APPROVE_OPTION) { ObjectOutputStream out; try { out = new ObjectOutputStream (new FileOutputStream (fileChooser.getSelectedFile ())); out.writeObject(this.game); out.close (); } catch (IOException ex) { } … Software Development java | |
I just knew about getch() and found it better than cin (a lot) but there's one problem bugging me, can you makea n if statement for getch()? For example they have: [CODE] int a; cin >> a; if (a == 1) //blah else if (a ==2) //blah else //blah [/CODE] … Software Development c++ | |
I have a question about the memory allocation of class. My compiler is GCC 4.1.2. I define a class called Foo, create three objects of it, and have a look at their addresses. Following is my code: [code=c++] class Foo { int k; }; int main() { Foo f1, f2, … Software Development c++ | |
G'day everyone, I need to fill a 2day which is passed as an argument that is able to store the height and weight of 5 volunteers. The function I need to do this in needs to prompt the volunteers for their height and weight. Could anyone please give me a … Software Development c++ | |
i have a clients.dat file with client info in it. i have gone through it to find the record i want to delete, used PushBackBuffer to unread the one i want top delete, skipped that bit and carried on reading the rest and writing it to clients.tmp. after i have … Software Development abuse file-system java | |
Hi, learning hibernate but still experiencing some errors and exceptions ... [B]My User.hbm.xml[/B] [code] <?xml version="1.0"?> <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd"> <hibernate-mapping> <class name="com.genuitec.hibernate.User" table="SNX_USERS" > <id name="userId" type="java.lang.Long" column="user_id" > <generator class="increment" /> </id> <property name="firstName" type="java.lang.String" column="first_name" length="20" /> <property name="lastName" type="java.lang.String" column="last_name" length="20" /> … | |
Hi I was wondering if somebody could help me i am completelty stuck I want to read in triangle measurements from the command line check if the tri is square then when the user is done print out the amount of squares. the user would signfy that s/he was done … Software Development file-stream java | |
I dont know why this doesnt work, basically I want to calcualate the letters and numbers and white spaces and so on, nothing fancy. And it does work, it does calculate everything. However I seem to be stuck in the while loop or something because I cant print it out, … Software Development c++ | |
hi, I am developing an application in Windows CE platform is Windows Ce .net 4.2. i need to play media file through C code, i have managed to play media file in win32 through "system" command but this command is not available for Windows CE, i have tried CreateProcess function … Software Development api c file-system windows-api | |
I don't understand why **ptr is used in this code. Please expain to me. [code] template<class NODETYPE> void Tree<NODETYPE>::insertNode(const NODETYPE &value) { insertNodeHelper(&rootPtr, value); } template<class NODETYPE> void Tree<NODETYPE>::insertNodeHelper(TreeNode<NODETYPE> **ptr, const NODETYPE &value) { if(*ptr == 0) *ptr = new TreeNode<NODETYPE>(value); else { if(value < (*ptr)->data) insertNodeHelper(&((*ptr)->leftPtr), value); else if(value … Software Development c++ | |
Hello, I need some help with some code I have. The compiler is giving me weird errors and I am not sure how to fix it, especially because I dont see anything wrong with the way I wrote my code. It has to do with array of structs and declaring … Software Development c++ data-structure | |
I don't mean "iostream.h" or missng "return 0;". I wonder why don't run like it should but shows "press eny key continue"? [CODE]#include <iostream.h> int n,m,result,br=0; int a[100][100]; int jj=0; void main() { cout<<"n?"; cin>>n; cout<<"m?"; cin>>m; for(int i=0;i<n;i++) for(int j=0;j<m;j++) { cout<<"a["<<i<<"]["<<j<<"]="; cin>>a[i][j]; } for(int ii=0;ii<n;ii++) for(int jj=0;jj<m;jj++) { … Software Development c++ | |
I am working on a program that will have the user input two numbers ....the program then adds them together and prints out the sum.....the program is to then ask if you want to continue...the user is to type in y or n....how do i go about having the program … Software Development c++ | |
could someone please show me how i would be able to reverse the printout of a linked list?, i have gotten it to print out in the right order but not sure how to make to printout in reverse. here is my current code, [CODE] void print(node*& head) { node* … Software Development c++ linked-list | |
Hello, everyone the follow error shows when i try run my code if (i==2): width = line[0,3] TypeError: string indices must be integers The code of error is this [CODE] for line in fl: i += 1 if (i==2): width = line[0,3] elif (i==3): frames = line[1,1] elif (i>3): append(array_color, … Software Development python | |
[code=cplusplus] #include<stdio.h> #include<math.h> #define max 100 double f(double y); int k, i; double y[max]; double x[max]; void copyarray(double[], double[]); main() { FILE *file; double h, x, y; printf("this program does a first order ODE for dy/dx=-y+1 with initial condition of y(0)=0 from x=0 to x=0.9\n"); printf("input the step size (h>0):\n"); … Software Development c++ | |
Hello, Does anybody know how to write a command to generate a random array (let's say with 100 numbers) that contains numbers from a function that goes like y = x exp (2.5). where the range of x is given. I hope that my question is understandable :-) Thank you, Software Development c++ | |
Ok, so I'm trying to prove to my teacher that Div and Mod isn't always the best way to solve things. So i created this tiny program, held entirely in main.cpp : [CODE=cplusplus] //Project: Mod_Efficiency //Author : Kyle Wesley //Descrip: This was made to prove that mod/div operations are often … Software Development c++ | |
I am writing a small program in C++ and I need some help. [code] #include "iostream" #include "string.h" using namespace std; void main(){ string sman; cout << "Are you there? \n \n"; cin >> sman; if(sman == "yes" || sman == "Yes"){ cout << "Screw that! \n \n"; main(); } … Software Development c++ |
The End.