132,726 Archived Topics
Remove Filter ![]() | |
Hi, i have a hw assignment and i need help. I have done the first class already which is the city class. Heres what i got: [code]public class cityclass{ private String cityname; private int days; private double cost; private float rating; public cityclass(String newcityname, int newdays, double newcost, float newrating) … Software Development java | |
how can i add the last value to the current value using loop..? i tried so much but didn't find the answer :( [CODE]void main(void) { int numbers,add,sec; clrscr (); for (numbers=1;numbers<=49;numbers++) { for (sec=numbers;sec<=numbers;sec=numbers+sec) printf ("%d ",sec); } getch(); }[/CODE] here the loop is from 1 to 50, i … Software Development c | |
hi everyone... i"ve to pass a string as a returning value.but wat is the problem is there is an integer in the middle of it.the problem arise here.. [code]char* my_string( char* dest,char *c) { char str1[25] = "C:\\windows\\"; char str2[25]; char str3[25] = ".jpg "; strcat(dest,str1); //append str2 to str … Software Development c | |
Hi All, How to copy one 2D-array to another without using loops and library function of C. Not pointers. Regards, Pramod Software Development c | |
how could I creat a file at desired folder? Below is my code and what I want to do is 1)I open the "newfile1.txt"and read the first line(e.g Cat) from this file 2) and then create the Cat.txt at "C:\user\user\Desktop\history" Currently, I could creat Cat.txt at the folder where my … Software Development c++ | |
hi guys i have an urgent problem....we have been asked to make a battleship game in C which will have the formation of ships taken by a file txt.....for example 00000000 ppp00000 0000nnnn 00000000 etc...i want to open the file txt and then put every single character 0,p,n etc to … Software Development c file-system | |
Hello Guys, I have implemented a linked list. And my output looks something like dis: ************************************************* The elements in the list : address is = 163196952 ADOC1100250100000119666 address is = 163196968 ADOC1100250100000119666 address is = 163196984 ADOC1100250100000119666 address is = 0 ADOC1100250100000119666 TOTAL NO OF ELEMENTS IN THE LIST ARE … Software Development c data-structure linked-list | |
Hi, I am stuck in file reading problem. I have tried various solutions but nothing worked. Actually I can't develop a logic to do so. I want to read some lines from file and pass them to structure. When reading a file you must use WHILE loop. I am posting … Software Development c data-structure | |
Greetings, I've been given a challenge to build a simple game for my daughter. The idea is that you smash the spacebar, and a ball drops into the game, goes down some ramps, and lands at the bottom. Being a newbie programmer, this is becoming a challenge. I decided to … Software Development mathematics | |
![]() | Hi everyone, hope all is well I have a project which models an ATM machine. There needs to be an option in the welcome screen where the user has the option to set all of the numeric buttons in each class to a certain colour(red, blue or yellow). Because all … Software Development java java-swing |
Hi, I have a very big vb6 project file with about 16 form modules, 3 class modules and 3 global modules. I want this to be converted into a exe file so that it could run in any system as a stand alone. I tried the make projectname.exe present in … Software Development visual-basic | |
New to C and haven't had any problems until now - I can seem to get straight with passing arrays between functions. Here is what I need to do: Write a program that declares 3 single-dimension arrays named bookPrice, numBooks and totAmt. Each array should be declared in main() and … Software Development c | |
I need run a c++ method from my python program but the c++ method need a few parameters what need for call that method in my python code with the paramethers | |
I am trying to override setColour in the subclass callled ObjectB in the public void setColour(Colour xColour) method. So the OBjectB cannot change to purple. Can you see where I have gone wrong because the ObjectB is currently changing to purple colour. Please reply only if you know the answer. … Software Development java | |
Hello. I have a small problem in my home assignment. A neverending loop occurs, if user enters everything but digits, when I expect him to enter only digits. How do I allow only int type variables to be entered by user? The value user enters is the index number of … Software Development c++ linked-list | |
hi I'm Maryam can you help me to draw this shape * * * * * * * * * * * * * * * ** three triangles with the same base. | |
I want to print to a word of length n in a string .Using by C ++ langues.I have not know funtions in string.h support that. i'm happy when you help me! thank you Software Development c++ | |
[CODE]private void button1_Click(object sender, EventArgs e) { string m1; m1=cbmanganh.SelectedValue.ToString(); myds1.DSPT.DefaultView.RowFilter = "MaNganh='"+ m1 +"'" [COLOR="Red"]and[/COLOR] "Nam ='" +tbnamhoc.Text + "'" [COLOR="Red"]and[/COLOR] "HocKy ='" + tbhocky.Text + "'"[COLOR="Red"]and[/COLOR] "KhoaHoc= '" +tbkhoahoc.Text + "'"; dataGridView1.DataSource=myds1.DSPT.DefaultView; }[/CODE] error: expected ";" after each "and" Thank you so much! Software Development | |
what is the correct declaration of pointer to a pointer to array of N elements. ( i want to store address of pointer to an array of n elements ) i am using the below declarions seperately , but getting errors. [CODE] int (*p)[4]; int (*p1) (*)[4] = &p; int … Software Development c | |
Hi all, I am trying to write a function which accepts a string as input and gives the integer as output, The string can be in any of these format for ex:2,500.75 or 2.500,7501 or 2'500.7513 or 2500,254 the output of function should be like 2500.56 Basically trying to get … Software Development vb.net | |
Gentle with me please, I'm brand new to VB.net !!! I have created a project with my forms & a little bit of validation logic, the basic skeleton of the project looks just fine. The data that I have for the project is currently in 2 Excel spreadsheets, so I … Software Development vb.net | |
Hello and thanks in advance for your time. Trying to learn how to throw App Exceptions. Is there any way to get this exception from properties so I can pass it to a JOptionPane? Model Resources UserException=Subscription failed. \ Please try another email address. ProfileException=Must Select a Profile \ UnenrollException=Unsubscription … Software Development java java-netbeans | |
Hi! I'm trying to use the nanosleep and sleep functions in a program I am trying to write. I first tried this - [CODE] fprintf(stdout,"Hey guys.."); struct timespec t_req, t_rem; t_req.tv_sec = 1; t_req.tv_nsec = 500; if (nanosleep(&t_req, &t_rem) < 0) return 0; fprintf(stdout,"...What's up?");[/CODE] Since the function nanosleep did … | |
I am trying to get into the course to get an advanced diploma in professional games development, and I need to present a program to demonstrate my programming skills. Can someone give me some suggestions of a program to make that demonstrates that I know C++? Software Development c++ | |
I'm still very new to C#, but have some experience with scripting languages such as javaScript, PHP, and VB.Net. My question is how do I call a method from another method? Below is a chunk of code from my program. I want this method to evaluate a value and two … Software Development c# | |
Hi everyone! I wrote a Python 2.5 application, with GUI from Tkinter module. To make it short, the user has to load a file and can start to work on it. I made it Windows executable with py2exe, and installable with Inno, with a file association setting. So now, if … Software Development file-system gui python tkinter | |
Hi, I have an application that is going to be loading in about 30,000 files (very very small ones). These will be saved into memory (predicting about ~30MB of memory needed), and right now I just have them loaded in one at a time..I'll find a better algorithm for loading … Software Development algorithm | |
Hi, Following is the issue im having.... Im working on a checkers game using c#. ive decided to set each checker within a picturebox that will be displayed inside a panel (gameboard) however the problem comes when I have to move the checkers. I could write code to move the … | |
[code] using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using uDate; namespace DateDiff_timeDiff { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void timer1_Tick(object sender, EventArgs e) { string s = DateTime.Now.ToLongTimeString(); label1.Text ="London : " + s; DateTime … Software Development | |
I have a variable that contains the name of another variable. I intend to read the contents of the variable name. how? Software Development java | |
hello can you help me when i click the add button it will not add to the database.it will generate an error..can you help me please hoping for your positive responds...here's my code,please see my attachment.... [CODE] import java.awt.*; import java.awt.event.*; import javax.swing.*; import javax.swing.event.*; import javax.swing.JPanel.*; import java.sql.*; public … Software Development java java-swing | |
Hi, When I assign the value of one structure variable to the other I got the error "incompatible types in assignment". The Code is the following. The Problem line is 91. [CODE]#include <stdio.h> #include <stdlib.h> #include <string.h> struct file_data{ char src_ip[18]; char dst_ip[18]; char src_port[8]; char dst_port[8]; char p2p_proto[18]; struct … Software Development c | |
hello please help me on this i don't know how to trap the duplicate id_no..example if i have already added this id_no H-1010..then if i input again it should prompt that id_no is already exist on your database..please help me on this..hoping for your positive responds ..thanks in advance Software Development visual-basic | |
I am having troubles getting my program to work. It is supposed to take integers from a file and put them into an array. Then it is supposed to sort them by the bubble sort algorithm. [CODE]#include <stdio.h> #include <ctype.h> #include <stdlib.h> #define N 10000 int main(int argc, char *argv[]) … | |
In C#.net, I am using form1 as homescreen,.. while running exe from Debug folder, form1.exe appears in Process tab in task manager,... The problem is: Through form1 at runtime, i may create more instances of form1 while trying to close particular instance, the instances closed,.. but still exe appears in … Software Development | |
Hello everyone! I am new to this forum (and C programming) but I hope that I will be able to master C help anyone out with problems in the coming months. But I am having trouble with my own program for an assignment. I am asked to simulate a user … Software Development c | |
I am attempting to write some code that will open a sequintal file into arrays and will then can use the data to calculate monthly payment. the text file is as follows 1 5 10 20 50 2.5 4.1 5.3 7.1 8.3 With the top row being yrs and bottom … | |
So my teacher has a quiz question and his practice question for it is for us to code the strcpy function for character arrays assuming acceptable ones are passed. I have written my version and just want to see if it you see any errors in it. Or even if … Software Development c++ | |
I'm using Python and the Python CGI module to do some web development for a system's administrative access page. The problem I have is that the current features allow you to reboot the system, power off the system and stop/start/restart system services. The system is very limited in what's running … | |
[CODE][/CODE] def Given(rn): Given_lengths = [0] * 1000000 def rn2(n): if not Given_lengths[n]: Given_lengths[n] = rn(n) return memoized_lengths[n] return rn2 def cycle_length(n): if n == 1: return 1 if n % 2: return cycle_length(n * 3 + 1) + 1 return cycle_length(n / 2) + 1 def problem(i,j): for x … Software Development python | |
My assignment is to find the sum of an array, sum of the cubes of the array (i.e. each value raised to the power 3) and the variance of the array. At the moment I'm getting compilation errors so I can't do any trial and error. My problem conceptually is … | |
I have three classes in the program. This is a part of my assignment. I am doing it for the first time; so you might find something stupid in there.. as i have just tried to get the output my way or based on the assignment requirements. I have one … Software Development client-server java | |
I'm having some trouble translating the following C++ program to Pep/8 assembly language. Can anyone help me solve this. This is what I have come up with. [code=cplusplus] #include <iostream> using namespace std; int list[16]; int i, numItems; int temp; int main() { cin >> numItems; for (i = 0; … | |
Currently,I'm doing a image slide show application but I'm don't know how to save/publish the slide show project into .swf file. Can anyone help me solve this? | |
i hv written code of seraching specific folder on user choice with threading implemented. but im getting nullpointer exception at l.statsWith() in thread class two and not with normal searching [CODE]public class onlyfolder { static String z,l,w,e; static String y; static File f; static JFrame frame; static JPanel panel; static … Software Development java | |
ok, i have a bigger problem. when i run the program (something like this); "Which swimming instructor would you like to choose? Enter j for Jeff, Enter a for Anna j Please enter the first letter of the day of the week you would like to schedule. M for Monday, … Software Development c++ | |
I was wondering how to make a program to open a specified file just by entering its location. What command do would i use to open it instead of double clicking on the file. Thanks in advance. Software Development c++ | |
OK, i can't figure out what kind of mistake I've done. Can somebody help me please. [CODE]#include<iostream> #include<iomanip> using namespace std; void scedulejeff (char [][4]); void sceduleanna (char [][4]); void Print2DArray(char [][4]); int main() { char jeffarray [4][4]; char annaarray [4][4]; char instructor; cout << "What instructor would you like … Software Development c++ | |
Hi all, I tried running the following code. [code] #! /usr/local/bin/python import threading import time print "Press any key to start timer!" input() threadBreak = False def TimeProcess(): while not threadBreak: print "How are you?" print (time.time() - startTime) startTime = time.time() threading.Thread(target = TimeProcess).start() input() threadBreak = True input … Software Development multithreading python |
The End.