132,726 Archived Topics
Remove Filter ![]() | |
Please I need a help only in ansi c. I have an array of hexa values, for example: int N=3; char myHexas[N]; myHexas[0]=0x12; myHexas[1]=0x34; myHexas[2]=0xAB; I need to have a new array with the following: myStrings[N*2]; myStrings[0]='1'; myStrings[1]='2'; myStrings[2]='3'; myStrings[3]='4'; myStrings[4]='A'; myStrings[5]='B'; Any ideas should be great. Thanks in advance, … Software Development c | |
How do you call Subs/Functions inside a User-Control? Modules and Forms does not recognize the public subs/functions inside a user control. Software Development vb.net | |
i am working on the output from the stack and list but i got 2 errors and i dont know how to fix it, hope some1 can help me to figure it out thank you header.h [CODE]#include <iostream> #include <fstream> #include <string> using namespace std; class Lexeme { private: string … | |
I have the following code which I have been trying get to output ALL capital letters using the toupper function. My code will build successfully, however all the letters are still lower case when ever I type. PLEASE HELP ME UNDERSTAND WHAT I AM DOING WRONG! The following is the … Software Development c++ | |
I'M reading a book on Python and my very first object/constructor program isn't show the output that the book is showing. I lacks the two lines "A new critter has been born!" [CODE]# Constructor Critter # Demonstrates constructors class Critter(object): """A virtual pet""" def _init_(self): print "A new critter has … Software Development python | |
The codes our instructor provided for us has been giving me a "no such file" error message for the line #include <mutex.h> in the following code: [CODE]/* * mutex.cpp * scheduling * */ #include <mutex.h> Mutex::Mutex() { } Mutex::~Mutex() { } int Mutex::Lock() { } int Mutex::Unlock() { }[/CODE] The … Software Development c++ | |
can someone remind me how to loop a character please. I'm begging you all. my output must be this: *********************************************** * * * * * * * * *********************************************** i know how to set the color attribute for a character, my problem is I for got now on how to … Software Development assembly | |
I am trying to read data from a bloodpressure meter that has a usb interface that windows recognizes as a HID device. The BloodPressure meter comes with no documentation or software for its USB port. but other meters similar to this one allow you to download data from it about … Software Development | |
Is that possible to execute all the command available in cmd prompt by a java program? all that i know is there are .exe files corresponding to commands in windows>system32 folder, those are only executable by Runtime().exec command.what about other commands not having corresponding .exes?is it possible to pipe commands? … Software Development java | |
Hey im quite new to java and my friends have been helping me out however ive stumbled upon a question im not quite sure how to solve. i need to find the max,min and avg of the total 'responses' im not quite sure how to bring the values from the … Software Development java | |
Hello! I am trying to read a value from the registry, but I can't get it to work. Everything compiles, but RegQueryValueEx keeps producing an error. this is the code: [code lang="cplusplus"] #include "stdafx.h" #include <windows.h> #include <iostream> using namespace std; int _tmain(int argc, _TCHAR* argv[]) { HKEY hKey = … | |
Hi i am writing a program to convert a user entered integer number into its binary representation, the aim is to repeatedly ask the user to enter a value then output the number in binary and when 9999 is entered end program, i've managed to make it work with positive … Software Development c | |
hi everyone ,,, i have done this coding in C++, i want to change it from pseudocode to flow chart,,, here is the coding: int main(void) { int a, b, b2, a2, b3, b4; {for (a=4; a>=1; a--) { for (b=1; b<=a; b++) { cout<<a; } for (b2=1; b2<=a; b2++) … Software Development c++ | |
As the title suggests, there are some major flaws in my new program, though it still functions nonetheless. Here's the code: [CODE] POS = 1 try: import Tkinter as tk except ImportError: import tkinter as tk import os def clear(): if os.name == "nt": os.system("cls") else: print ("\n"*40) def key(event): … ![]() | |
The program should: Accept a series of names and addresses from the console. The user's input should be written to a text file in the CSV format described in the lecture. But, do not include the field names in the first row of the file. Read the records from the … | |
create two class DM and DB which store the value of distances DM store the value in meter and centimeter, DB store the vlaue in feet and inches. write a program that can read value for the class object and add one object Use friend function to carry out the … Software Development c++ | |
Hello all, i want to save the variables present in python workspace to text file.I have used file.write() option but it converts the variables(and also arrays) to string.I want to store them as they are present in IDLE. Is it possible? Thanking all in anticipation. regards wajih Software Development python | |
The following code is working! function and function pointer are defined I defined two probe function: mysin1 and mysin2 both works with myfunc with in first argument but I dont't understand, because mysin2 wait for a function_pointer not a function [CODE] #include <math.h> #include <iostream> using namespace std; typedef double … Software Development c++ | |
I finnaly got working the program with <ncurses.h> in the virtual box that i put Ubuntu. A test program for handling the screen is given to us, [U]this:[/U] [CODE]#include <ncurses.h> int main(int argc, char **argv) { int X = 10; int Y = 10; int ch; initscr(); noecho(); keypad(stdscr,TRUE); move(Y, … | |
Hi, I have a list of positive digits in a file. All I want to do is to add the negative sign (-) to each digit. Is there a code for this. eg list of digits 1 correspond -1 2 correspond-2 3 correspond -3 etc Software Development python | |
Hello everyone, I'm a frequent reader of a lot of software dev forums on the interent when I go searching for solutions for problems. But it seems like I always keep coming back to this one because it's correct. But to start off, I made a little app that has … | |
Im a beginner in c++ and i want to know how to use system() in c++ I know how to check whether a cmd processor exists. i want to know how to execute commands in the processor. I want its syntax and if anyone can explain with an xample well … Software Development c++ | |
I want to make a program that outputs something like: Enter integer: 117 117 is lucky! Enter integer: 1003 1003 is not lucky! So, if the integer entered contains at least one 7 in it, it will output is lucky! And if it doesn't it will output the is not … Software Development python | |
one of my class is already declaring the variable to open the file, now that i need to called it in main class. I couldn't find a way to do so, can someone please give me some hint to call it. Here is what it declare in the class. [CODE] … Software Development c++ | |
I made a game for my project. it contains two levels and a welcome screen. The problem is I cant go to the other panels. I tried using cardlayout. but since my panels are in different classes, I don't know how to do it. Please help. here's part of the … Software Development java | |
hello guys, i have this code in java.but i need to convert to c.but i dont know java at all.hope u can help me.thanks for advance [CODE] public class Main { static int t_value=2; static int no_of_parameter = 0; String binary_setting; static int data[]; static ArrayList<String> constraint = new ArrayList<String>(); … | |
Hello, I've spent hours but can't seem to figure out how. This is the question: modify the program so that the prompts that ask the user to enter a transaction include the number of the transaction that should be entered next. Here's what the prompts should look like: Enter quiz … Software Development python | |
i would like to put the command Dos into java program. how i using the java to perform command function. for example, when we type ipconfig this command into command prompt, it will display my pc's ip right. so how i use java program when a user run my program … | |
hi guys.. can you help me with my assignment? my proff told me to make a dictionary prog that can do the following.. 1. Add new word and definition 2.delete word and its definition 3. view all words and its definition 4. Update word and its definition 5. Search a … Software Development | |
0,0 0,w-4 0,w +------------------------------------------------------+---+ | My Window | x | 2,0+------------------------------------------------------+---+ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | … Software Development c | |
I have just started getting into python and Tkinter and so far it's all been very interesting and the help good to, but now i have ran into a problem. I'm sure it's very easy to solve but i just can't seem to figure it out or find anything on … ![]() | |
Problem Statement: Movie Rental Store You are required to write a program for Movie Rental Store. The basic idea is that user/reader will provide customer information, movie name, and number of days. Upon this information your program will calculate the charged amount for that movie. Detailed Description: 1. The program … Software Development c++ | |
Hi, I am stuck. I am trying to create a new file C:\HourlyATC\ATC101509\10-15-09 to 10-21-09 ATC.txt, and have a bunch of text wrote to this file to have it uploaded to a web site. At this point I would be happy if I could create the file and have the … Software Development file-system python | |
hi, im doin a project in visual basic 6.0,. pleae help me in constructing a inbox in vb 6.0. mail: [email]manjupapu2006@gmail.com[/email] -manjunath Software Development email visual-basic | |
Hi, i tired the following code in c & c++ [CODE]int main() { struct dum { // nothing here } printf("%d",sizeof(struct dum)); return 0; }[/CODE]the out put is 0 [CODE]int main() { struct dum { // nothing here } cout<<sizeof(struct dum); return 0; }[/CODE]the out put is 1. i dont … Software Development c++ | |
this is a complicate situation: i have A class by type Base { Btype* m_b; }; and a class DerivBtype:public Btype { .. } and this class class derived :public base { } and i want to behave m_b as a derived class i used this approach m_b=new derived ; … Software Development c++ | |
[icode] import java.util.Scanner; import java.io.File; import java.util.StringTokenizer; import java.util.InputMismatchException; import java.io.FileNotFoundException; public class KashiwabaraNicole16test { /******************************************************************************* * Outputs integers from user input external files. ********************************************************************************/ public static void main( String[] commandlineArguments )throws NullPointerException { //Error Checking For Command Line Arguments.. if(commandlineArguments.length == 0){ System.out.println("Please enter the file name as the … | |
Hi. I have this codeline: [CODE=c]fprintf(file, "The\necake\nis\na\nlie");[/CODE] When I compile and run in Linux it outputs nicely like so: The cake is a lie but when I compile and run in Windows (Vista), using cygwin, the newline doesn't work and output is like this: Thecakeisalie Anybody have an idea why? Software Development c windows-vista | |
Please help me find the endless loop and how to fix it: [QUOTE]blade71(555)% showxbits_2 32 in itox, processing 32 Test Value (b div 16): 2 Value of b: 32 Value of b (# mod 16): 0 [/QUOTE] [CODE]/* * stubs for functions to study * integer-hex conversions * */ #include … Software Development c | |
Hi, all How to create report use IReport and Hibernate I have tried, like this : : 1. create file hibernate.cfg.xml [code] xml version='1.0' encoding='UTF-8'?> <!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"> <hibernate-configuration> <session-factory> <property name="connection.url">jdbc:mysql://localhost/a6</property> <property name="connection.username">root</property> <property name="connection.driver_class">com.mysql.jdbc.Driver</property> <property name="dialect">org.hibernate.dialect.MySQLDialect</property> <property name="connection.password"></property> <property name="transaction.factory_class">org.hibernate.transaction.JDBCTransactionFactory</property> <!-- thread is … | |
Hi guys. im new in this forum, getting used to python+turbogears and already have a doubt. i have a sql statement to do , that uses "like" . for example: sql = db.text("select name from users where name like '%Fernando%' and dt_birthday='%s'" %(dt_birthday)) and the server gives me the following … Software Development postgresql python | |
This program hangs when trying to generate fixtures when the table is empty: [CODE] using System; using Gtk; using Mono.Data.Sqlite; using System.IO; public partial class MainWindow: Gtk.Window { //SQLite variables static SqliteConnection DataConn; static SqliteCommand DataComm = new SqliteCommand(); static SqliteDataReader DataReader; string dsn; //tree_1 variables Gtk.TreeViewColumn name_1 = new … Software Development open-source sqlite | |
I created a program using Visual Basic 2008 . I want to use "Setup and Deployment Project" for deploying my [COLOR="Red"]Windows Application [/COLOR] for Stand alone pc. I want to install my [COLOR="red"]windows application [/COLOR]on stand alone pc in this directory: c:\program\ My images in this directory: c:\program\images I have … Software Development vb.net visual-basic | |
Hi I have problem with packaging and transferring VB6 and MS Access database from one computer where it is designed to another computer. I need some help. thank you. Software Development visual-basic | |
I'm having a problem reading lines from a text file. The reading in itself works fine, but when the application has read 545 lines of text (545 .readLine()'s) I get a read error exception, for no reason at all as far as I can see. The code for the reading … Software Development java | |
[B]Good Evening everybody I'm decide to implemant software that saves data and the user adding and searching for this data on it It's for college employee And This Is Te OUTPUT:[/B] Please Press the number of your choice: [LIST=1] [*]1) Inserting data of new student. [*]2) searching by: [/LIST] a.Name … Software Development c++ | |
The code below captures the screen and saves it. Depending on your need, you can modify it to do just what you want [code] import java.awt.AWTException; import java.awt.Robot; import java.awt.Rectangle; import java.awt.Toolkit; import java.awt.image.BufferedImage; import java.io.*; import javax.imageio.ImageIO; class ScreenCapture { public static void main(String args[]) throws AWTException, IOException { … | |
Hi all! I'll keep this post a little shorter then I normally do, lack of time to post and all of that. I am making a widget-type program. You know, no borderstyle, no taskbar, opacitycontrol, stuff like that. It's going to be an RSS-aggregator by the way. Now for my … Software Development xml | |
Hie guys, Iam developing a java web application which uses mysql as its database engine. Now I would like to use the hibernate and spring frameworks together. The problem I nam facing is in configuring the various beans and establishing a clear relationship btwn the two frame works. If any … Software Development java |
The End.