132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for elieobeid7

i had some problem with python so i tried to fix it and now i can't use pypm to install anything, see this picture [url]http://s1201.photobucket.com/albums/bb354/elieobeid7/?action=view&current=er.jpg[/url] can you fix it? I'm using activepython 2.7

Software Development python
Member Avatar for elieobeid7
0
98
Member Avatar for ztdep

[CODE]// // DiffusionTerm.h define the equation class to be solved. // #ifndef DIFFUSIONTERM_H #define DIFFUSIONTERM_H #include<vector> #include<iostream> using namespace std; class Equation; class DiffusionTerm { private: Equation* pEquation; public: DiffusionTerm(Equation* _pEquation ){pEquation=_pEquation; }; ~DiffusionTerm(){}; vector<double>Coe; vector<double>source; void evaluateCoeAndSource( ) { vector<double>& ThermalConductivity= pEquation->pMedia->getThermalConductivity() ; } }; // // Equation.h define …

Software Development c++
Member Avatar for ztdep
0
258
Member Avatar for abc88

i have an application. which is executed after every 5 mins. i have an open connection but it gives me the following error: ExecuteScalar requires an open and available Connection. The connection's current state is closed. my code is something like this. I have shown where all i am using …

Software Development vb.net
Member Avatar for GeekByChoiCe
0
846
Member Avatar for ramjeev
Member Avatar for kk sharma
0
276
Member Avatar for ztdep

[CODE]// // Media.h define the class cell // #ifndef MEDIA_H #define MEDIA_H #include<vector> #include<string> using namespace std; class Media { private: // media name string name; // the density vector vector<double> density; // the capacity vector vector<double> cp; // the thermal conductivity vector vector<double> thermalConductivity; // the viscorsity vector vector<double> …

Software Development c++
Member Avatar for mike_2000_17
0
8K
Member Avatar for sadsdw

Hi friends, I'm retrieving some information from a input file with 10 columns and I need to get the first 3 columns and set into 3 different variables and the last 7 in the same variable. I was using "ifstream" and ">>" like: [CODE]myfile >> stringA; myfile >> stringB;[/CODE] ... …

Software Development c++
Member Avatar for sadsdw
0
96
Member Avatar for reallyslick

I have not found a solution yet, please help! My header files are structs which house the declarations of my functions and the associated CPP file houses the implementation. I want to pass a string to my ADD and REMOVE but get compile errors.. [CODE]/// //Profiles.H /// #ifndef __PROFILES_H #define …

Software Development c++
Member Avatar for ztdep
0
814
Member Avatar for carloskire

Hello. This java app I'm developing on NetBeans 7. When i run the project, line 4 below: [code=java]FileReader input = new FileReader("projects");[/code] is not executed and apparently stops execution. Only when debuggin the file or running step by step are the next lines executed. No execution past line 4, except …

Software Development ide java java-netbeans
Member Avatar for carloskire
0
273
Member Avatar for ztdep

Dear friends: I have the following two classes.[CODE]#ifndef EQUATION_H #define EQUATION_H #include <stdlib.h> #include <map> class Mesh; class Equation { public: Equation(); virtual ~Equation(){}; void associateMesh(Mesh * _pMesh){ pMesh = _pMesh;}; virtual void addsItsVariables4PostProcessing(map<string,const Variable*> & variablesMap)=0; protected: string name; const Mesh* pMesh; }; #endif [/CODE] Before the class Equation, …

Software Development c++
Member Avatar for ztdep
0
286
Member Avatar for bigdan182

hey, I promise i'm getting there!! so my code now seems to be emptying the structures as they are passed between the functions, any thought on how to fix it? also if anyone knows of any good examples of passing by reference, that could apply to this code that would …

Software Development c++
Member Avatar for NathanOliver
0
149
Member Avatar for diana_pro

HI, I started to play with files in C++ and I have a little problem. Here is my c++ project and the problem: main.cpp [CODE]#include <iostream> #include "resource.h" #include <windows.h> #include <stdio.h> #include <fstream> using namespace std; int main() { HRSRC hRsrc; hRsrc = FindResource(NULL, MAKEINTRESOURCE(IDR_MYTEXTFILE), TEXTFILE); if (hRsrc == …

Software Development c++
Member Avatar for Prosammer
0
150
Member Avatar for tedman102

I have tried to get this program to work with no luck. How do you properly use the nested selection structure? (sorry for the lack of braces, I tried getting rid of some for less confusion. Didn't think it would work but thought I might as well try :D). I'm …

Software Development algorithm c c++
Member Avatar for tedman102
0
430
Member Avatar for afi@alvi

Any ONE who can solve this problem.... "Permutations: The challenge is to find the algorithm used to create all possible permutations of a given string"

Software Development algorithm c++
Member Avatar for arkoenig
0
108
Member Avatar for Lowchernhwee

hi all... i have this problem... i want to create a summary base on the date from the txt file... also the summary must be in order... here is an eg for my txtfile 1 -day 8 -month 2011-year test 8pm $25 this is a test 2 8 2011 wee …

Software Development
Member Avatar for Lowchernhwee
0
124
Member Avatar for faroukmuhammad

Hi guys, What does the [B]owner[/B] in [B]show[/B] method do and how does it work. Thanks in advance. [CODE]FORM.Show([Modal], [Owner])[/CODE]

Software Development visual-basic
Member Avatar for faroukmuhammad
0
173
Member Avatar for rotten69

Hello, Are we allowed to assign different values to just one variable? For example, gender = [Female, female, fEmale] so if one a user enters any of the specified ones then he/she will be taken to the next step/level. I'm just doing a tute at the moment and coming up …

Software Development java
Member Avatar for NormR1
0
196
Member Avatar for Majestics

i have added a picture panel in jscroll pane [code] scrollpane.add(pic1); [/code] now i want that on run time when user click on another pic panel it will be shown at pic1 scroll pane, so i simply use this code [code] scrollpane.add(pic2); [/code] but it doesnt work , so i …

Software Development java
Member Avatar for SamuelD
0
313
Member Avatar for L3gacy

Hey guys I basically finished reading Beginning Visual C++ 2010 with Ivor Horton, I skipped the MFC part as I am more interested in the Win API which there's was only one third of a chapter on(not enough) and I was wondering if Programming Windows, Fifth Edition by Charles Petzold …

Software Development api c c# c++ windows-api
Member Avatar for L3gacy
0
190
Member Avatar for marcux

Hi all! After surfing the web I ended up here as I could not find a good answer! I am writing an application with c++ and gtkmm. I want to access the network card and listen on all ports for packages. As far as I have found out it is …

Software Development c++
Member Avatar for marcux
0
382
Member Avatar for turista

I have this working code but my teacher wants really specific things. codes always have to be OOP, and this needs to to have no more then 2 cout. i have 3 but cant seem to find away to take one out. my friend told me i should do this …

Software Development c c# c++ oop
Member Avatar for turista
0
270
Member Avatar for jpleas

As we can tell from the last coding experince I am clearly not the best at this coding thing. I know now what I need help with and how to ask so this project is "Writing a Java class definition and instantiating the class in a program" Write the definition …

Software Development java
Member Avatar for NormR1
0
140
Member Avatar for Kronk Vaesir

[B]Can anyone help me. I have been bangin my head on this one for two days. variable number may not have been initialized. code to enter single digit number and return largest of ten. code is as follows.[/B] [code] // Java packages import javax.swing.JOptionPane; public class Counter { // main …

Software Development java java-swing
Member Avatar for Ezzaral
0
3K
Member Avatar for madhub2v

How Comparable is marker interface when it is having int compareTo(Object o) method... we can say it as just interface...??

Software Development java
Member Avatar for JamesCherrill
0
69
Member Avatar for abhinavM

I have to read an Excel file and transfer the contents to the database using Java swing.The excel file contains questions for the surveys with options for answers or responses.The database should have a table say Question with columns "Question No., Question, Option 1, Option 2 and so on".I have …

Software Development apache file-system java java-swing
Member Avatar for stultuske
0
1K
Member Avatar for pablocremita

Hello, First of all, sorry for my english. I will try to make me understand. I'm doing a program with CodeGear C++Builder 2009 that manages a few tables. The tables were created with Database Desktop 7.0 (dbd32). Between these tables there are a table whose name is 'Evaluation'. His estructure …

Software Development c++ image
Member Avatar for gusano79
0
557
Member Avatar for ganeshtr24

why we are using public word before main function

Software Development java
Member Avatar for Muralidharan.E
0
68
Member Avatar for tombihn

My original query for data from the database was: [CODE] Dim SQL_RecentWorkOrders As String = "Select * from workorder WHERE date&gt;#" + dtToday.AddYears(-YearsToGoBack).ToString + "# ORDER BY worknum DESC"[/CODE] The updated query is as follows: [CODE] Dim SQL_RecentWorkOrders As String = "SELECT * FROM workorder INNER JOIN customer ON workorder.custid …

Software Development dataset vb.net
Member Avatar for tombihn
0
784
Member Avatar for flebber

How do I use glob with urllib2? So what I have been trying to acheive with no success is creating a list of file names with glob from two sources and comparing them and download file if it doesn't exist. I can't get past the start because I am not …

Software Development python
Member Avatar for snippsat
0
2K
Member Avatar for Stefano Mtangoo

I have been learning PHP MVC pattern and it is pretty cool. have almost finished app and I can see how mess you can make a code without good design. Now can MCV be applied to C++ apps? Where does Plugin manager/Plugins go if that is even possible?In model or …

Software Development c++ software-architecture
Member Avatar for Stefano Mtangoo
0
177
Member Avatar for asif49

[CODE] if (fileScan.hasNext(posPattern)) { posCB = fileScan.nextInt() + 1; for (int i = posCB; i > 0; i--) { String writeByte = fileScan.next(); BufferedWriter out = new BufferedWriter(new FileWriter("E:\\dataReadable.txt")); out.write(writeByte); out.close(); }//for } [/CODE] Using a for loop, how would I write to the file without clearing the contents, so …

Software Development java
Member Avatar for asif49
0
109
Member Avatar for deepmadan

I am developing an application in VB6 which will communicate using UDP Connection to a hardware which recieves and sends data using UDP Connection. My Hardware works fine. It has already been tested with an application written in VisualC using UDP connection only. In VisualC, I had working on UDP …

Software Development visual-basic
Member Avatar for BitBlt
0
569
Member Avatar for menonnik

How can we calculate whether a number is a power of 2 or not in a single statement without using a loop? All the ones that I can think of use loops or don't satisfy the condition. for eg. The use of XOR doesn't work as it gives incorrect input. …

Software Development c motherboards-cpu-ram
Member Avatar for TrustyTony
0
188
Member Avatar for Peyton

Hi, I was given this class member function that overloads the == operator. I don't understand it. Please could you help me understand it? Here is the class [CODE]class Word { public: // constructor Word(const string& word); // overloads is-equal-to (or equivalence) operator - this is very useful for testing, …

Software Development c++
Member Avatar for Peyton
0
149
Member Avatar for ari$av3s

The task at hand is to write a program that accepts arguments from the command line and convert them into USD. For example, take command line argument Currency EU 350, and convert in into USD. Now, please bear with me -- I may be phrasing this incorrectly, but how do …

Software Development c
Member Avatar for Narue
0
150
Member Avatar for danuz

If you put a zero number between the entering numbers, it should stop and calculate the average just of entered numbers. Why it doesn't work? [CODE]static void Main(string[] args) { double num = 0, counter = 0; for (int i = 1; i <= 10; i++) { Console.Write("Enter the number:"); …

Software Development
Member Avatar for danuz
0
211
Member Avatar for ari$av3s

I want to write a program where, 1. string1 is declared as char s1[80]. string2 is declared as s2[40] 2. Function needs to check that the sum of both strings is less than 80 characters prior to appending them 3. If the sum is greater than 80 characters, return a …

Software Development c
Member Avatar for Narue
0
115
Member Avatar for Muralidharan.E

[CODE]class Test{ static String str[]; public static void main(String args[]){ System.out.println("args "+args); System.out.println("str "+str); } }[/CODE] [U]Output[/U] args [Ljava.lang.String;@3e25a5 str null My doubt is ... How some object address is printing for args when it has not initialise. In case it has got initilised ,without array size specifiction how its …

Software Development java
Member Avatar for Zetlin
0
191
Member Avatar for jex310

Can you fix the numberformatexception [code]import javax.swing.*; import java.awt.*; import java.awt.event.*; public class Main extends JFrame implements ActionListener { int inputtedxend,inputtedyend,inputtedSAngle,inputtedarcAngle; int inputtedxpoint,inputtedypoint,inputtedx,inputtedy,inputtedwidth,inputtedheight; JLabel title=new JLabel("Choose a Grapic Method: "); String select []={"","DrawLine","DrawOval","DrawRect","DrawArc","DrawString","DrawRoundRect","fillRect","fillOval", "fillArc"}; JLabel xend=new JLabel("Enter X end point:"); JTextField inputxend=new JTextField("",5); JLabel yend=new JLabel("Enter Y end point:"); JTextField …

Software Development java java-swing
Member Avatar for Muralidharan.E
0
130
Member Avatar for mattiapdo

Hi I'm new in this forum. I'm an italian student (not an expert of c++) , so I perharps will not understand very well English (escuse me); I wanted to create a program in C++ that let me to receive the translation in Morse Code of a string... Do I …

Software Development c c# c++ operating-system
Member Avatar for Sodabread
0
2K
Member Avatar for senthilamp4

Hi Experts, Please help me, i am writing code for csv conversion, in middle i facing one issue. i have one array which contains 3 elements like wise @array contanis: var1= '455,0,0,0,0\n 135,0,0,0,0\n 199,0,0,0,0\n', var2= '131.253.4.131,1,0\n 131.253.7.54,1,0\n 10.80.5.3,1,0\n'; i need to convert like wise as below var1= '455,0,0,0,0 , 131.253.4.131,1,0\n …

Software Development perl
Member Avatar for d5e5
0
98
Member Avatar for siaswar

Hi I'm software engineering student. I know python, c, c++ and c#. It's been two years I'm trying to learn programming but somehow I still a beginner. I just know the syntax of these languages. I love Linux and open-source. I tried to learn programming in Visual Studio but my …

Software Development c++ engineering open-source visual-studio
Member Avatar for katmai539
0
223
Member Avatar for rkchowdary

help needed to output a comma separated ASCII file from an incoming xml file using xslt. Below Listed are the input and output. I am struck on defining the template to read each character from the input xml file. Any help is highly appreciated... [B]INPUT:[/B] <DST xml:lang="en-US"> <jobName version="1.0">SRVAuthenticate</jobName> <trace>0</trace> …

Software Development xml
Member Avatar for pritaeas
0
258
Member Avatar for Reverend Jim

I have a textbox control for which I want to fit twelve double spaced lines of text so that the textbox is optimally filled (as little whitespace at the end as possible). So far the best I have come up with is [code] Dim fh As Integer = txtCategories.Height \ …

Software Development vb.net
0
99
Member Avatar for Pravinrasal

Process p = Runtime.getRuntime().exec("C:\\tc\\bin\\" + prog_name , null); BufferedReader stdError = new BufferedReader(new InputStreamReader(p.getInputStream())); System.out.println("Here is the standard op :\n"); s1=stdError.readLine(); i have this code can anyone tell me how to run c program using java thanks !

Software Development java
Member Avatar for NormR1
0
203
Member Avatar for Pravinrasal
Member Avatar for Majestics
0
134
Member Avatar for Panathinaikos22

Well that i looking for is, how to create a file to store applicaiton settings, i prefer ini files... well i found smthing, it work ok, but i cant understand how it work. What his code do? well this code store informations in `*.ini` file, example [SECTION] Option1 = Nab …

Software Development
Member Avatar for pseudorandom21
0
162
Member Avatar for Marc Smets

Hi there, Is use Now()-1 in VBA to achieve the date of yesterday in a query. What is the syntax for it in basic. Thx

Software Development visual-basic
Member Avatar for Marc Smets
0
86
Member Avatar for rotten69

Hey everyone, Just curious why my little program doesn't go through the if-statement I specified in it. [code] public static void main (String args[]){ Scanner sc = new Scanner(System.in); System.out.println("Enter a value for girls:"); int GIRLS = sc.nextInt(); System.out.println("Enter a value for boys:"); int BOYS = sc.nextInt(); if (BOYS == …

Software Development java
Member Avatar for NormR1
0
193
Member Avatar for Jsplinter

I've tested the following code in a console application, and it compiles just fine. However, when I copy it to a header to include in a larger project, I get 77 link errors, all related to boost. If I comment out the line in [COLOR="red"]red[/COLOR], everything compiles just fine without …

Software Development c++ regex
Member Avatar for pseudorandom21
0
451
Member Avatar for n1_razz11

hey i got 2 tables named tbplayer and tbpair in database named dbgame.mdb tbplayer has 2 field player_id and player_name.. tbpair has three field pair_id(autonumber), player_1 and player_2 i have create combobox to get player id in tbpair from tbpair.. so i don get code.. my sample code is [CODE]Imports …

Software Development dataset vb.net
Member Avatar for debasisdas
0
252

The End.