132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for kele1

I'm trying to change this program into a doubly linked list but i'm having a difficult time. Please help me out thank you.[CODE]#include <stdio.h> #include <stdlib.h> struct Node { char data; Node *next; Node *prev; }; //typedef struct node Node; typedef Node *NodePtr; void insert( NodePtr *dPtr, int value ); …

Software Development c linked-list
Member Avatar for kele1
0
143
Member Avatar for grafas7

hi, i have a task i dont understand, im working with C++ Borland 6. my task is to create array ,which will read text from .txt file (any text,with any number of words). What is important i need to count those letters by rating them, and then range (counted letters) …

Software Development c++
Member Avatar for mrnutty
0
100
Member Avatar for kellnerq

Question- Write a function that displays at the left margin of the screen a solid square of asterisks whose side is specified in integer parameter side. For example, if side is 4, the function displays: Sample Screen Display **** **** **** **** i have come this far but i get …

Software Development c++ display
Member Avatar for sidra 100
0
3K
Member Avatar for GoGames1315

I wont to know how to find Pascal actions (functions?) like, how would you find the CPU speed (if pascal can do that,) or how would you minimize the window. Do I have to look for hours on GOOGLE search to find the code I wont ? cant I just …

Software Development pascal
Member Avatar for GoGames1315
0
158
Member Avatar for nccsbim071

Hi I have beed developing an appliction that will start an executable on remote computer to zip the files. I provide the location of files to zip. Now the problem is that i want to start the executable on linux server that hosts the files. I want to start an …

Software Development client-server windows-server
Member Avatar for Medalgod
0
177
Member Avatar for jlego

im trying to determine if there is an item selected on the listview.. i have a listview that displays customers name with a .tag that holds there ID. how do you tell if the tag is 0 or empty before executing code? in vb6 i simply did [code] if .lstwhatever.selecteditem …

Software Development listview vb.net
Member Avatar for jlego
0
109
Member Avatar for shanboy

I'm a beginner in .net programming environment.I am using c#. i have a text box(txtSearchKey) for user to enter the text key. i have a combo box(cmbSearchBy) to specify in which field of employee table ,search key should be used to retrieve data. when i use the above code i …

Software Development dataset
Member Avatar for sknake
0
141
Member Avatar for Geek_Cyborg

How to store all ComboBox items in a Text file..? Please share the code for this

Software Development visual-basic
Member Avatar for vb5prgrmr
0
105
Member Avatar for JBeginer7891

Someone please help! I'm writing a program that enable a user to search for a patient Info when patient number is given. here is the search code snippet [code] public ArrayList searchPatient(String patientNum) { try { String sql = "SELECT fname, sname, location, dob, dor, race, gender, status, initials, idnum …

Software Development java microsoft-access
Member Avatar for ~s.o.s~
0
113
Member Avatar for akim_atl

I am all confused, I don't where to start. This is my first programming class and i need some help please. Write a C program for an automatic teller machine that dispenses money. The user should enter the amount desired (a multiple of 10 dollars) and the machine dispenses this …

Software Development c
Member Avatar for virgo_norz
0
1K
Member Avatar for seam

Project 1 Leap year calculation (Leap year is a year that has 366 days, a year that has 365 days is not a leap year) Write a program that will accept a positive integer ( the year to be tested) from a user. If the user inputs a 0 or …

Software Development c++
Member Avatar for seam
0
89
Member Avatar for plastic

hi hi, i have a .hex file and i have to read it and convert and sasve it in decimal format. any ideas plzzz

Software Development file-stream
Member Avatar for ddanbe
0
2K
Member Avatar for Iam3R

Hi, I used Enum constant as a case of swict statement and trying to select by using the pointer to the structure , which internally has a union and a enum member. the union member again internally have three structures. even i debugged the code. the value of the variable …

Software Development c
Member Avatar for Iam3R
0
94
Member Avatar for gehring

Hi, I have the following examplde code. [CODE=C++] // TestProject.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include "TestProject.h" #include <iostream> #include <vector> #include <windows.h> #define UNICODDE using namespace std; int main(void) { CString test; std::vector<std::vector<CString> > your2darray; std::vector<CString> row; row.push_back("col 1.1"); row.push_back("col 1.2"); row.push_back("col …

Software Development c++
Member Avatar for Ancient Dragon
0
298
Member Avatar for raff004

whats wrong with these code? the buttons don't add or remove the panel.. someone help me!??plss..:S [code=java] import java.awt.*; import java.awt.event.*; import javax.swing.*; import javax.swing.event.*; public class addremove extends JPanel implements ActionListener{ private JButton addbut; private JButton revbut; private JPanel panel1; private JPanel panel2; public addremove() { addbut = new …

Software Development java java-swing
Member Avatar for HerrLehmann
0
124
Member Avatar for mani2009_it

I want to check in Date Field(Textbox), whether the input is Date Format or not (i.e) Date Format should be followed(YY/MM/DD) in C# windows applications. How can i check this?

Software Development
Member Avatar for DanielGreen
0
94
Member Avatar for alkeshtech

Hi guys, I am writing a method which given an instance of a class and a type (as a string), it will return an instance of the named type constructed from the instance if possible, null otherwise. So say, class A{ A(B b) { .. } .. } class B …

Software Development java
Member Avatar for javaAddict
0
99
Member Avatar for P00dle

I made a filechooser that enables the user to save a file. I used netbean's gui maker for it. I literally have just one thing stopping me from finishing my task: The save button does not actually do anything. You can click on it, but nothing happens. How do I …

Software Development gui java
Member Avatar for P00dle
0
186
Member Avatar for sidra 100

hi i have created a code to merge two char arrays for assignment plz can u guide me is it ok.how much marks can i get 4 it out of 20. [CODE]#include <iostream> using namespace std; //declaring the functions void merge(char[],int, char[], int,char[],int); void sort(char[] ,int); void display(char[],int); main() { …

Software Development c++
Member Avatar for sidra 100
0
102
Member Avatar for ziashahid

Hi, I am zipping a folder and an error occurred in below code which says : ==> AttributeError: 'builtin_function_or_method' object has no attribute 'tell' [B]zipfile.py:[/B] [CODE] def write(self, filename, arcname=None, compress_type=None): ... zinfo.header_offset = self.fp.tell() # Start of header bytes ... ... [/CODE] FYI:I have tried using "from zipfile import …

Software Development python
Member Avatar for baki100
0
1K
Member Avatar for jediahsan

Can anyone help me i dont understand this at all!

Software Development c++
Member Avatar for Abinet yilma
0
94
Member Avatar for free_eagle

Hi there ! How r u? Ohh I really need your help great programmers ... I am new for programming and I am trying to do things by myself but here I need your help :-| I would like to draw something in C or C++ but I got no …

Software Development c++
Member Avatar for peter_budo
0
4K
Member Avatar for ribot

Hello! My application is crashing randomly, and I thought it might have to do with it manipulating widgets that are not yet mapped, despite them being already gridded. Have you experienced this problem? I supply some code that shows that the print function happens before tkinter recognizes the button being …

Software Development python tkinter
Member Avatar for ribot
0
110
Member Avatar for lkegley

I am working on a programming that uses classes to complete several tasks. I have successfully created a program that reads in the opponent name, home score, and opponent score for a team's season. Now I'm trying to go back and write a method that can be used to output …

Software Development c++
Member Avatar for jonsca
0
102
Member Avatar for NickT80

I have a project where I want to combine 2 different arrays and then be able to sort them with either the int or string values. This is what I have so far. int [] myRatingList = { 5, 2, 4, 3, 1 }; String [] myTitleList = {"Top Gun" …

Software Development java
Member Avatar for gunjannigam
0
121
Member Avatar for Shoh

Hi! When i try to see how work the ready programms from book, it is compile, run, and closes window right away. How stopped prog after it finished to see and analyse all? Thanks a lot. I have Vista, Dev C++ 4.9.9.2

Software Development c++
Member Avatar for Shoh
0
122
Member Avatar for Sanit

Hey guys, I have this assignment due soon and need some help with it. I don't want the solution handed to me, but I also don't want some extremely vague answers either. I want to learn from this. Basically, what I am making is a simple applet, that has 3 …

Software Development java
Member Avatar for gunjannigam
0
134
Member Avatar for balloonbob

Hello, need help programming a blackjack game for my computer science class. I have used a cirularlinkedlist to create this game. I have received a null pointer exception error. I think it has to do with my circularlinkedlist class. import java.util.NoSuchElementException; public class CircularLinkedList { private ListNode last; public CircularLinkedList(){ …

Software Development gui java java-swing
Member Avatar for mellowmike
0
166
Member Avatar for onesreality

Hi all, I am doing a school project. I am using a At89C51ED2 microprocessor and it is connect to a 2-Line LCD panel. My teacher need me to write a program of the digital clock using the timer in the microprocessor. He want me to show the word " clock: …

Software Development c
Member Avatar for nezachem
0
734
Member Avatar for bottledwater

hi all! i have been programming in C for about 4 months now, and i have the very basics down pretty well (functions, pointers, etc etc), and have been doing a lot of console apps, and i was hoping to do a fractals program. i have the algorithm down (at …

Software Development algorithm c image opengl
Member Avatar for Ancient Dragon
0
162
Member Avatar for milanese

Hi, I am very new when it comes to batch files and I need to copy some files from a directory to another on a windows 2003 server. I have writeen a simple batch file which looks like this: [code]@echo off SET Day=%date:~0,2% SET Month=%date:~3,2% SET Year=%date:~6,4% SET cdate=%Year%%Month%%Day% SET …

Software Development shell-scripting web-server
Member Avatar for Aia
0
111
Member Avatar for samsons17

hi...i'm trying to improve a simple program that i made... this is a cash receipt program... to avoid the program form crashing,i insert a code of cin.fail() which will determine wether the data type the user entered is correct or not... if the data type is wrong that the program …

Software Development c++
Member Avatar for valtikz
0
215
Member Avatar for manathisbest

I made this Rock Paper Scissors Game with GUI. It works fine. But what can I do to make it simpler? Anybody? [CODE]import random class RPC: def __init__(self): self.comChoice = '' self.choices = ['Rock','Paper','Scissors'] def chooseCom(self): self.comChoice = self.choices[random.randint(0,2)] return self.comChoice def player(self, choice, Com): if choice == 'rock' and …

Software Development gui python tkinter
Member Avatar for manathisbest
0
2K
Member Avatar for Mclovin1234

Hi i need help on my assignment what i have to do is Enter data into a 5 X 7 array. The example i have is Please enter the numbers in the first row: 1234567 Please enter the numbers in the second row: 1234567 Please enter the numbers in the …

Software Development c++
Member Avatar for necrolin
0
105
Member Avatar for happymadman

How can my "Player" class access a function of my "Map" class? The place I want it in is commented. Thanks. [code] #include <iostream> #include <string> using namespace std; class Map { public: Map(); ~Map(); void Map::print(); int Map::sendroom(int x_coord, int y_coord); private: int i; int p; int w; static …

Software Development c++
Member Avatar for valtikz
0
117
Member Avatar for yingyuan

banking system : -all the bank accout can be created, accessed,and clossed later. -three type of account:current,saving,fixed deposit. -each custormer can open more than one type of accounts. -The transactions are deposit, withdraw, and view balance -the account created with a deposit and creation date. -After that money can be …

Software Development c++ display
Member Avatar for valtikz
0
230
Member Avatar for nfatima

hi, is anyone know how to code Homomorphic Filter in c#.net? I only find it in matlab code

Software Development c#
Member Avatar for nfatima
0
43
Member Avatar for mcatest

I want to set timer to count down from 40 mins, then messageBox("Time is up"). How do I do this? Thank you. <FAKE SIGNATURE>

Software Development visual-basic
Member Avatar for aka_amboy
0
162
Member Avatar for nertos

I have a very simple problem, how can I run this function after click the button: [code]private void button1_Click(object sender, EventArgs e) { my_function(); } public void my_function() { while(1){ //////something richTextBox1.Text += "something....."; if(a==b)paint_something(val1,val2); ///something } }[/code] I wanna draw something and write to textbox in the same time? …

Software Development
Member Avatar for sknake
0
93
Member Avatar for valtikz

Is there a possible way I can connect the WNDCLASSEX to the class in Gtk::WIndow??! because I'm working on tray icon of gtkmm program for Windows. I already have a TrayIcon using this : [CODE]Shell_NotifyIcon(NIM_ADD, &g_notifyIconData);[/CODE] But there is no function, it only display an icon it doesn't go in …

Software Development c++
Member Avatar for valtikz
0
199
Member Avatar for chi-hawk

I have a program that sends out UDP traffic via the usual way: The Server: [CODE=c#] private IPEndPoint iepSend = null; private IPEndPoint iepSend2 = null; private Socket sendSocket = null; ... sendSocket = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp); iepSend = new IPEndPoint(IPAddress.Any, 4203); iepSend2 = new IPEndPoint(IPAddress.Parse("227.40.23.1"), 4203); sendSocket.Bind(iepSend); sendSocket.SetSocketOption(SocketOptionLevel.IP, …

Software Development client-server
Member Avatar for sknake
0
132
Member Avatar for Lilal

Hey, I have a file of RGB values, seperated by : just so they count as a single line. I'm importing these into a string vector and sorting these so they come out sorted from 0:0:0 to 99:99:99. [CODE] vector<string> sV; ifstream in("Images\\Stage1RBGList.txt", std::ios::binary); string word; cout << "Starting Compression..." …

Software Development c++ ios
Member Avatar for Lerner
0
346
Member Avatar for eduard77

Can anyone tell me what is wrong with this code? #include <iostream> #define MATRIX_DIMENSION 4 int main(int nArgs, char** pArgs) { int nDim = MATRIX_DIMENSION; double fMatr[MATRIX_DIMENSION*MATRIX_DIMENSION] = { 1.0, 2.0, -1.0, -2.0, 1.0, 3.0, -1.0, -2.0, 2.0, 1.0, 1.0, 1.0, 3.0, 1.0, 2.0, 1.0, }; double fVec[MATRIX_DIMENSION] = {-6.0, …

Software Development c++
Member Avatar for Lerner
0
84
Member Avatar for sirdanman10

I am trying to get a handle on two things: building strings, and reading a file. I am trying to write a function that will pull a line from a file and put it into a string. I want to use it in a loop, so I am having the …

Software Development c++ file-system
Member Avatar for sirdanman10
0
120
Member Avatar for tnimblett

It just crashes out. [CODE]{ int i,j; ifstream input; input.open("carpark.txt"); { for (i=0;i<j;++i) { input >> employee[i].spotnumber; input >> employee[i].driver_name; input >> employee[i].car_reg; } while (!input.eof()) j++; } }[/CODE]

Software Development c++
Member Avatar for jonsca
0
101
Member Avatar for kellnerq

Hi all, I would like to ask you all for some help. I need to write a program that allows me to have a circle radius as input and then print out the diameter, circumference and area of that circle. Easy task but i have to put the calculations in …

Software Development c++
Member Avatar for kellnerq
0
85
Member Avatar for nemoo

hey ppl, i'm tring to write a program that works as scanner(Compiler's Lexical analysis phase).I have a general imagine on how i'll make the program read code from file and seperate words so as to generate the appropriate token class for each word but i've a very essential missing i've …

Software Development
Member Avatar for ddanbe
0
181
Member Avatar for MrHooper

Hello, I am new to shell scripting and am having some trouble writing a script that will work the way I want it to. I am good at the one liners, but when I try to string them together I get errors. I have a ftp server that will trigger …

Software Development shell-scripting
Member Avatar for MrHooper
0
154
Member Avatar for kilermage

[CODE]Running Compiler -------------------------------------- server.java:52: cannot access handling.Handlers.CommandManager bad class file: .\handling\Handlers\CommandManager.java file does not contain class handling.Handlers.CommandManager Please remove or make sure it appears in the correct subdirectory of the classpath. public static CommandManager CommandManager = null; ^ Press any key to continue . . .[/CODE] What I did was …

Software Development java
0
84
Member Avatar for Snapster5

Hi working on this lab, and theres mistakes were i know im not writing the code correctly but i am trying, really am. If anyone couuld help me out with these errors, or notice were i am writing incorrectly can you post correct way. thank you.. Description: Create a program …

Software Development c++
Member Avatar for Lerner
0
147

The End.