132,726 Archived Topics
Remove Filter ![]() | |
hi ... i am making a program which can handle bank acount system. In which User can MakeDeposite,WithDraw money and CheckRemainingBalance. when user MakeDeposite then a certain amount should be saved and as how much times user MakeDeposit, it should be added in balance amount and as how many times … Software Development c++ file-system ios | |
Hello. I've been trying to solve this problem but I can't and my head hurts already. Please help me. [code=c] #include<stdio.h> #include<conio.h> #include<stdlib.h> #include<string.h> #define max 12 #define num 30 #define nam 24 typedef struct { char name[nam]; int score; int rank; }CONTESTANT; typedef struct { CONTESTANT CA; int next; … | |
How would you draw a expression tree that is (a-2/(5 * b) plus 3) * (2 * d)? I am really confused on the first parenthesis. Thank you for your help. Software Development java | |
I think my thread title is a bit incomplete. coz these are my questions.I need answers to these questions for the completion of my thesis. [B]I Know this is sort of a long message but im detailing the situation for better understanding of my questions.[/B] And because these thread is … Software Development c# client-server dataset sql | |
This is what I have of my code so far but I cant get it to work right, Can someone help me fix this I need to make a float function that converts celsius to fahrenheit but im not totally sure how to do it I also need to make … Software Development c++ | |
I have a program. Here import java.awt.*; import java.awt.event.*; import javax.swing.*; class MarqueeTest { public static void main(String[] args) { MyFrame frame = new MyFrame(); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.setVisible(true); } } class MyFrame extends JFrame implements ActionListener { private ActionListener listener; private Timer t1; public MyFrame() { Dimension d = Toolkit.getDefaultToolkit().getScreenSize(); setSize(d.width,d.height); … Software Development java java-swing | |
I an trying to write a few java classes, which I wrote successfully, but when I am tryin to test it I get some weird errors and I cant figure out why, so i'd be very grateful for your expertise. The code for the GCD class is: [code] public class … Software Development java | |
Ok so heres my story. Ive done basic programming before with serverside javascript which is not really used but effective when creating small backend databases and its kinda like vb script, so im familiar with basic concepts like funtions, arrays etc Ive been reading some books on C++ and ive … Software Development c++ gui postgresql window-manager | |
Hey, I am just learning functions. I was wondering if you could tell me why this piece of code is not implementing the 'values' function. [code] #include <iostream> #include <windows.h> #include <string> #include <iomanip> void values(float value1[11]); using namespace std; float value1[11], value2[11]; int main() { cout << setiosflags(ios::fixed) << … | |
This is what I have already but I dont know if I am meeting the specs for my assingment... anyone have any input of what I should do? Assignment is Write a program that will ask the user for a temperature in Centigrade (Celsius) and convert it to the Fahrenheit … Software Development c++ | |
Hey DW. Working on a nice poker application and need some help. Right now I'm trying to go through two arraylists, one of chars and one of sorted ints (representing the suites, and numbers of the cards) and delete duplicating numbs (and the char/suite counterpart in the other array). In … Software Development java | |
hello everyone, i am trying to write a code that displays a table with 75 years. each year has to display the world population and the projected population for the following years after that by multiplying the current population by the yearly growth (1.17) but i am running into some … Software Development java | |
I want to finaly learn what's up with pointers and arrays, so i made up this program: [CODE]#include <stdio.h> int main() { int cantidad_frases = 0; printf("Cuantas frases quieres escribir?: "); scanf("%d", &cantidad_frases); char *frases[cantidad_frases]; for(unsigned i = 0; i < cantidad_frases; i++) { [B]for(; *frases[i]; frases[i]++)[/B] { *frases[i] = … Software Development c | |
Write a function called NumDistinctDict that takes a single parameter alist that determines the number of distinct values in alist. For example, the list [1,2,4,2,7] contains 3 unique values (namely 1,2,4 and 7). Software Development python | |
So I want to make a class based RPG, as a project to help me understand how classes work. Unfortunately, I didn't get far. The below code is intended to make an instance of a character and have info in it like name, health, gold, exp, and the like. I … Software Development python | |
Just testing out arrays on this one. MY project is to create a thermometer that converts Celsius to Fahrenheit or vice-versa. [code] #include <iostream> #include <windows.h> #include <string> #include <iomanip> using namespace std; int main() { cout << setiosflags(ios::fixed) << setprecision(2) << ios::showpoint; float value1[11], value2[11]; char gauge1, gauge2, gauge; … | |
How do you know when to use a function by wraping the content between parentheses "function(x) or through dot notation x.function() ? thanks. Software Development python ![]() | |
Afternoon: I am trying to create a loop to give me a series of random numbers. I need the random numbers to be between 100 and 999, this is necessary so I can divide the numbers by 1000 and then use this numbers for another program. My problem is that … Software Development c++ | |
Hi there, I was hoping for some advice on how best to solve my problem. I'm creating a .csv file to store objects in, but the datamembers which are strings, require the ability to have commas within the strings. I have found out that I therefore need to enclose the … Software Development c++ | |
I have no idea how to do this. Please help. This week's lab is to design a hangman game. Your program should be able to open a text file which contains a list of words (one word on each line of the text file) and read the words into a … ![]() | |
I'm learning C, but a friend of mine asked for help with this code. I have debugged it with C::B and actually it crashes when getting out of the switch and starting to print out the menu again, after selection the first option (1. Polinomio) I 'watched' the polinomio pointer … Software Development c++ | |
Im creating a calculator in a dialog box I have created all my headers and resource files with all my buttons and edits ready. This is a part of my .rc file: [CODE]EDITTEXT IDC_NUMBER,3,7,100,14,ES_NUMBER EDITTEXT IDC_NUMBER2,130,7,100,14,ES_NUMBER[/CODE] I have made these so the user can input integers and then use them … Software Development c++ | |
hello every one i m trying to minimize the form size but less than what it allows for me if i do like this .. it is okey this.Size = new Size(124, 36); but less than these values for the width and length it won't work.. i need to make … Software Development | |
Hi, I tried the following code to capture the contents of the foreground window to an avi-file. It works under Python 2.6 and OpenCV2.0 though it only takes about 210 shots and then crashes. I think it might be a memory problem. Any ideas? You need to resize the window … Software Development file-stream python video | |
HEy, I am new to C# and dont know much about it. I am facing a problem while running my code in Visual Studio 2008. The problem is that the screen disappears immediately when the program ends. please help me. Thanks in advance. Software Development asp.net c c# c++ visual-studio | |
VC++ access MySQL query problem Hi guys, Could you help me out with ------------ string str1 res=stmt->executeQuery("select * from test2 where english='str1'"); ------------ anyone can tell me where is wrong with this query code?below is the error msg I got: 1>.\temp6.cpp(48) : error C2146: syntax error : missing ')' before … | |
i`m making Quiz program which asking State and you answer capital. here is code import java.util.*; import java.awt.*; import java.applet.Applet; import java.awt.event.*; import java.io.*; import java.util.Random; public class Quiz extends Applet { private String textfile = null; private TextPanel text_p = null; private Vector question = new Vector(); private Vector … Software Development java | |
i need some help on this. I have the array numbers stored already but the array dosent display on the screen. Why? here is the code [CODE] # include <stdio.h> # include "simpio.h" # include "genlib.h" # include "strlib.h" # include <math.h> # define size 3 main() { int intArray[size][size]; … | |
Yeah i made a totally new program. However it still doesnt work. The error message says that it is an invaled conversion from int to int*. Here is the code. Please fix it and help repost it. [CODE]# include <stdio.h> # include "simpio.h" # include "genlib.h" # define SIZE 500 … | |
Hi: I posted yesterday about setting my loop to get random number between the values I desire. Now I got a bit of misunderstanding with my arrays. In the program now I am trying to calculate the average sum of the amount of numbers I get each series. My problem … Software Development c++ | |
Hello, Could anyone please explain a reason why data could not be received from a POSIX message queue using mq_receive(), called from a different file. Following is my code for a test that i'm running to try and transfer data from one file to another. main.c [code=c] #include "recfun.h" int … | |
[CODE][/CODE]part 1 find the most efficient way of making change for any amount of money up to $200.00. the most efficient way means the fewer pieces of currency. the following are the values of monies to use. $ 100.00 $1.00 $ 50.00 $.50 $20.00 $.25 $10.00 $.10 $5.00 $.05 $2.00 … Software Development c++ | |
the program draws lines, but every time I draw a new line, the previous one disappears. How can I let it show all the lines drawn? I know my problem is in the array, but how to fix it? thanks for help [code] import javax.swing.JPanel; import java.awt.*; import java.awt.event.*; import … Software Development java java-swing | |
Hi all, On compiling, i get no errors at all, the data is taken, but when checking the database, a record is made, but it is NULL. What have i missed? [code] /* * To change this template, choose Tools | Templates * and open the template in the editor. … Software Development java | |
Hi guys, Can I enable/disable an #ifdef based on a specific condition? Let's say that I've a loop [CODE]#define MYCONDITION 1 // code here for (int i=0; i<5; ++i) { printf("Hello #%d", i); #if MYCONDITION printf("I wanna be reached only if i == 3, is that possible?"); #endif }[/CODE] Is … Software Development c++ | |
i want to know the program how to insert at the beginning of a circular linked list in C. Software Development c linked-list | |
Hey, Is there an easy way with a TListView in report mode, to store a unique integer with each row? I've tried using the ".Data" property, but seem to end up with corruption quite often. I'm trying to do this because I want to associate each row with a primary … Software Development pascal | |
Hey! I just started learning C++ last month, so I am not that good yet. I am trying to write functions to compute the total surface area, lateral surface area, and volume of a right-circular cylinder. So I wrote the code, and it makes perfect sense to me. When I … Software Development c++ visual-studio | |
My laptop doesn't have a parallel port so I purchased a USB to parallel convertor. I wrote a program which sends data to the parallel port to turn on some LEDS and it works ok on a PC with a built in parallel port but it wont work on my … | |
I run the program, from what I see the game runs fine. Then when I click on the object that suppose to send a dialogue, it disconnects me and throws this error in the run.batch window. [CODE]Exception in thread "main" java.lang.NullPointerException at NPCDialogue.UpdateNPCChat(NPCDialogue.java:18) at client.process(client.java:8471) at PlayerHandler.process(PlayerHandler.java:137) at server.main(server.java:55)[/CODE] Here … Software Development client-server java | |
this code is not working as per its expected output.please tell me the errors and how to rectify them. [CODE] #include<iostream.h> #include<stdlib.h> #include<conio.h> int* getwaitingtime(int* proc,int* arr,int* bur,int noofproc) { int i,j,c[10],t,p,m,s[10],out[10],f,l; int *wait; for(i=0;i<noofproc;i++) { if((arr[0]!=0)||(arr[i]>arr[i+1])||(arr[i]==arr[i+1])||(bur[i]<0)||(bur[i]==0)||(bur[i]>10)) { return NULL; } } for(i=0;i<noofproc;i++) { c[i]=arr[i]+bur[i]; } for(i=1;i<noofproc;i++) { for(j=1;j<noofproc;j++) { … Software Development c++ | |
hi guys im tryin to do a java client / c++ server socket program .in the java client program i serialize the object and pass them over socket to c++ server.now when im gettin them in c++,im not able to deserialize it properly as i tried for binary serialization since … Software Development client-server ios java | |
Hi all, this is a bit of a follow on from a previous post, but slightly different so thought a new post would be best. i want to pass my scanner variables into an object. the following is the last scanner (Added as example), followed by the creation of a … Software Development java | |
hi guys.. i need help in creating a 'c' program. i ve written the quest below.. pls take time to see the quest n answer it..thanks in advance you must provide a sentence as the arguments. The first word of this sentence is to be treated as a key word, … Software Development c | |
I can't find a compiler to compile version 3 Python scripts to .exe. All the compilers I see are all for Python 2. Software Development python | |
Hi all, I have a constructor with 2 numbers both set as longs however in my driver class, it is showing as an error, even after casting the already longs to a long again. This is constructor [code]public Personal(String forename, String surname, long dob, String add1, String add2, String county, … Software Development java | |
I tried to make a leet speak converter, but it outputs characters that I don't even tell it to.. This is what I mean: (Test run) Enter something to convert to L337 5P34K: Hi, how are you? L337 5P34K equivilent: hi,@H0w 4R3 Y0u? I don't know why it's got the … Software Development python | |
i need to write a method that in my program student object for the student class that validates it's own data. background on student class: it's a program that ask for a name of a student and 3 test scores and print the highest , the lowest and the average. … Software Development java |
The End.