132,726 Archived Topics
Remove Filter ![]() | |
I created a little beginners program, and its about a Telephone network which has an operator and three clients: i made four classes, and it gives me error at planta and cliente In cliente it gives error on public class cliente private operadora Im Planta it gives me error in … Software Development java java-swing | |
Hello, everyone! I have a really basic Triangle program that I have to make (no applets or Scanner, just calculating), but I have no idea of where to start. I'm supposed to compute the lengths of the sides, the angles, the perimeter, and the area. Right now, I'm stuck on … Software Development java | |
Where is a good source for learning Design Patterns? Has anyone heard of what is called "Gang of 4" and "Model via Control"? Software Development c | |
I am fairly new at programming in C and I'm having problems with writing a program which combines n objects from n different groups and prints them; for example objects a1 a2 a3from group A with b1 b2 b3 from group B and c1 c2 from group C; both group … Software Development c | |
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; //first step add this namespace Project4 { class Program { static void Main(string[] args) { Random random = new Random(); { int m = 0, j = 0, k = 0; Console.WriteLine("Enter Statet(m or j or k)"); String state = … Software Development c# | |
Hey, this is my first post, and i'm a complete noob at Java. (i don't exactly know if i did the 'code tags' correctly, so if it didn't work properly, just know that I tried. my basic question is this: I'm trying to make a program that runs fullscreen on … Software Development java java-swing | |
I am trying to make a text based game for a university assignment, this is an extension of a game i coded previously, with a fhew improvements, i originally had it where you choose two potions, you mix them together, and give it to the princess, i now have to … | |
I have to write a program that reads a text file that contains +/- values and characters and outputs any invalid characters (anything that is not an +/- integer) and also at the end i have to have it print out the total number of how many invalid characters there … | |
I have to do a simple program for school I was wondering if anyone can please to help me. I already created the program but it is not working properly and I have no idea how to fix it. Everything looks fine to me Here's the assignment Write a program … Software Development c++ | |
Sorry if this is in the wrong thread, I haven't been here in a long time. Hi, I'm having a hard time in trying to position my wx.StaticText and wx.TextCtrl so that it's not stuck at the very top and very left. Life so [URL="http://i154.photobucket.com/albums/s274/Tye-Ann/daniweb.png"]Screenshot Here[/URL] Here is the code … Software Development python | |
Is there anyone use VB to write the POS software (for intrenet use only, not online) ? I am thinking about to write a POS software for restaurant, any suggestion ? which is better VB, C++, C# or .... Thanks Software Development vb.net | |
hi, i am new to java programming, i do not know anything... can anybody post a sample program for implementing jeditorpane. it will be a great help .... thanks in advance... Software Development java | |
I have 3 classes. Class A has an ArrayList of class B and class B has an ArrayList of class C. Within Class A, I have a function called contain [CODE] public boolean contain(int t, String n) { for(int i = st.size() - 1; i >= 0; i--) { if(st.get(i).contain(t, … Software Development java | |
In my computing class we have got to make a program which outputs the following "XXXXXXXXXX YXXXXXXXXX YYXXXXXXXX YYYXXXXXXX YYYYXXXXXX YYYYYXXXXX YYYYYYXXXX YYYYYYYXXX YYYYYYYYXX YYYYYYYYYX YYYYYYYYYY" We have to create a function and we can only use if and loops. but I'm having difficultly doing it outside of a function … Software Development c | |
I'm creating a xml-file from code using Linq to XML. The code is prety simple: [code=C#] XNamespace appvisumnamespace = XNamespace.Get("http://appvisum.com"); XDocument doc = new XDocument(new XDeclaration("1.0", "utf-8", "yes"), new XComment(""), new XElement("AppConfig", new object[] { (from section in this select section.ToXml()) })); foreach (XElement e in doc.Root.DescendantsAndSelf()) { if (e.Name.Namespace … | |
I am a beginner & I need to implement this program which states that I have to reverse whatever is given in input via pointers... For Example: i) Input: This is reverse order program Output: program order reverse is This ii) Input: This is exercise eight Output: eight exercise is … Software Development c++ | |
Hello I was trying to compile programs using DevC++ for Windows, (I also looked at WxDevC++) I can get generic console apps I made in C++ to compile under windows. What I want to be able to do is compile some opensource programs that use make to compile. When I … Software Development c++ gui open-source ubuntu | |
Hey there, I can't seem to figure out why i can't access the member '*next' from the Node class to the Shuffle function. Any help would be great. [CODE]/* llist.h * LList */ #include <iostream> #include <string> using namespace std; typedef string ElementType; class LList; class Node { protected: ElementType … Software Development c++ linked-list microsoft-access | |
I have following code that execute .ksh successfully. My issue is, after executing ksh script, it does not return to C++ program to do my print. Therefore "ksh was executed" never gets printed. Can someone please show me what I need to do to make program comes back after executing … Software Development c++ | |
Hey, I am trying to use multiprocessing via the Process module. I run two processes in unison and for some reason python or the os kills my process after roughly 50 seconds or during long processes (~3 min). I just get the following output: File 3 of 8 2010-10-11 13:28:09.090816: … | |
i have to create a game using c++ language n i want to create something new...so i decide to create a games name "don't forget the lyric" which is the user need to fill in the blank on the lyric given. so, my question is how can i random the … Software Development c++ | |
I had a book exercise where I figured out how much carpet would cost, the code for that is here: [url]http://pastebin.com/nmfG8yd2[/url] Now I am trying to take that, and make it a useful program by asking you for the info instead of it being pre-set. What I have so far … Software Development | |
Hello Everyone , I've this strange problem with using char pointer in my c++ programme with the gcc compiler (version 3.4.2). [code] char a='A'; char *c=&a; printf("%p %c\n",c,*c); std::cout<<c<<" "<<*c<<std::endl; [/code] I expect the output of printf and cout to be same but why am I getting strange output like … Software Development c++ | |
I just wandered if there is a way to constantly update the time once it has been displayed on a console application. I am using the following code to display the time: [CODE]time_t rawtime; struct tm * timeinfo; time ( &rawtime ); timeinfo = localtime ( &rawtime ); printf ("The … Software Development c++ | |
Hi all, I wrote this program for constructing an ID out of someones first name, middle name, last name, and address. I got it to work and run perfectly except for one small thing. There is suppose to be the possibility for the person to not enter a middle name, … Software Development java java-swing | |
I have the following code for DDA Line Algorithm in C :- [CODE] //DDA Line Algorithm #include<stdio.h> #include<graphics.h> #include<conio.h> #include<math.h> #include<stdlib.h> #define Round(a) ((int)(a+0.5)) void linDDA(int xa,int ya,int xb,int yb); int main() { int gdriver=DETECT,gmode; initgraph(&gdriver,&gmode,"E:\\TC\\bgi"); linDDA(10,20,200,100); clrscr(); getch(); return 0; } void linDDA(int xa,int ya,int xb,int yb) { int … | |
Hi everyone.. I'm new to python, the more to matplotlib :( and I am hoping that I can get help from this community... :) I have a .csv file, first column is a time stamp with format HH:MM:SS, next 8 columns are values of different parameters. I want to plot … Software Development python | |
Hi..We do have a project in school using visual basi 6.0 named "Memory Game". I have started to do it however i cant finish it. I have attached the interface of the program. Click image to match in pairs Card will randomize each test Each match will give 10 points … Software Development gaming motherboards-cpu-ram visual-basic | |
I want to make a GUI application in which I want to do something continuously (i.e. in while loop) in a different thread, until the user presses a button. In this other thread, I am accessing GUI elements and hence I have to use [B]SwingUtilities.invokeLater()[/B] for this thread. But since … Software Development gui java multithreading | |
hi i am having problem with the while loop termination. totally newbie......can you help me terminate the loop .... output [CODE] import java.io.*; public class MohsinKPA4 { private static double num1; private static double num2; private static String Snum1; private static String Snum2; private static double ans; public static void … Software Development java | |
Hello everyone .. I am new to c# technology.. I am trying to write an app which store some data in a xml file... I am getting System.NullReferenceException ... Below is the code [CODE] public void StoreFeedData(string title,Uri url) { XmlDocument xmldoc = new XmlDocument(); XmlElement rss = xmldoc.CreateElement("rss"); XmlElement … | |
Need help counting the # of days between two dates (ex: 1/2/10 and 1/24/10) Better yet, the # of hours would be a great alternative. Software Development xml | |
I'm working with a program where the user adds a few names together with the age. After this the program will write out the content of the text file. I'm having problems seperating the names and age into different variables. I want the program to put word nr1 in char … | |
this is the code i have written so far....its in c++....i need ur help....i can't find errors...:( class Matrix { private: int rows; int cols; float *pData; public: int getrows(){return rows;} int getcols(){return cols;} void setrows(){rows=r;} void setcols(){cols=c;} private: void doCreate(); void doAdd(Matrix m); void doSub(Matrix m); void doTranspose(); void … Software Development c++ | |
hi to all, can anyone help me writing a program that can set a pin of the serial com1 port at 12v+? it must be simple command line based,for example, program.exe -on or -off. any pin will work. thanks in advance :) Software Development c++ | |
[CODE]#include<stdio.h> #include<string.h> int count(char string[]); void main(){ int i; char string[1001]; printf("String: \n"); gets(string); i = words(string); printf("No. of Words %d", i); } int count(char string[]) { int i, j, k; for(i = 0; i < strlen(string); i++){ if(string[i] == ' ') k += 1; else j += 1; } … Software Development c | |
Hello everybody, I'm hatem faheem a student in Cairo university , Faculty of Engineering , Computer departement I have a question in the C++ string class constructor <string> that's the code [CODE] #include <iostream> #include <string> using namespace std; int main() { string s0 ("Initial"); string s1 (s0,3); string s2 … Software Development c++ engineering | |
i want to have 2 listbox. the first listbox is for the Main category and the other one is for the sub category. and by using sql 2005 for the database. help me plz. . . for example my main category for the 1st listbox is ADIDAS CONVERSE NIKE SKETCHERS … Software Development vb.net | |
I need to finish it ASAP 1. Read students’ marks and Name: for each student read his/her name and then read his/her marks (first-test mark (/15), Mid-term mark (/20), Lab-test mark (/15) and Final mark (/50)).Store these data in two-dimensional parallel arrays: NAMES, MARKS. 2. Calculate the total mark for … Software Development java | |
Hi All, I am trying to extract a full path from a certain environment variable. What if there is an environment vaiable called CATALINA_HOME how can I extract a full path of the environment from java? I am trying to use a filewriter object to create a file, for example, … Software Development java | |
can we put the restriction on some function of the loop variable in the loop conditions like the for loop in the following program #include<iostream> using namespace std; int main() { int a,size=2,b[size],i; cin>>a; b[0]=1; b[1]=1; cout<<"The fabbonacci sequence is:"<<b[0]<<" "<<b[1]<<" "; for(i=2;b[i]<=a;i++) { b[i]=b[i-1]+b[i-2]; size++; cout<<b[i]<<" "; } system("pause"); … Software Development c++ | |
I have a while loop reading names from a file and placing them in an array. When I print the contents of the array, it prints the last name that went through the loop, so I'm assuming that as the loop is progressing each time the names are being rewritten. … Software Development c | |
[CODE] import java.awt.*; import java.awt.event.*;//for specifying windows events import javax.swing.*; import java.lang.*; public class FrontE implements ActionListener,Runnable { JTextField jav,it,c; Frame f; JButton Submit; int aa,bb,cc,tot; float avg; FrontE() { f=new Frame("Progress Calculator"); JLabel l1=new JLabel("Enter the marks here:"); f.add(l1); Panel p=new Panel(); Panel p1=new Panel(); JLabel java=new JLabel("Java"); jav=new … Software Development java java-swing multithreading | |
Please help with the following code, I tried casting, and the such but this keeps getting rounded [CODE] public void rotacion(Point[] pts, int degreesIncr) { //here... I tried casting all combinations, even casted each variable, each //number, and nothing, radians keeps being integral. but if I sustitute a // constant … Software Development | |
I wanna write a code which would add the digits before decimal and after decimal. eg:- 12.22 would add upto 3.4 , 491.941 would give 5.5 [CODE] #include<stdio.h> #include<conio.h> #include<string.h> void main() { double a1[5],a ; //array of 5 numbers int b,len,i,sum=0,cnt = 0; char ch[10]; for(i = 0;i<5;i++) // … Software Development c | |
Hey guys! I wrote a program in c++ when I want to run it it says unable to start program 'c:\users\pc\documents\visual studio 2008\projects\proje1\debug\projem.exe system cant find specified path. But I checked and there is this path and files. What could be the reason? Thanks in advance! Software Development c++ visual-studio | |
can someone help me add a another class in this code i got this code in this site, but i need to have at least 2 class Software Development java | |
Hello, I want to write a program that reads a text file, which contains a table of data where the columns are separated by spaces, and store each column in different arrays with different data types. For example, let's say I have the following data: 1 hello 1.5 2 world … Software Development c++ | |
HIii I m making window application, for which i have already made a setup, but in that i want to include some more pages like terms and condition page etc, . Also in this i want to set the registries as well, like when my application is installed on the … Software Development | |
while trying to install net-snmp-5.6, i get following error [B]gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.5 -c netsnmp/client_intf.c -o build/temp.linux-i686-2.5/netsnmp/client_intf.o netsnmp/client_intf.c:1:20: error: Python.h: No such file or directory In file included from /usr/local/include/net-snmp/net-snmp-includes.h:69, from netsnmp/client_intf.c:4:[/B] my debian system has python2.5.2 where can I find Python.h header … |
The End.