43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for meddlepal

I have a file with a network map consisting of 0's and 1's. I want to read this map into a two-dimensional array. I have the following code: [CODE] #include <iostream> #include <fstream> using namespace std; int main() { char map[22][22]; // 22 x 22 (r*c) ifstream fin; fin.open("netmap.txt"); char …

Software Development c++
Member Avatar for meddlepal
0
160
Member Avatar for c230jif

I started a program that calculates an employee's weekly gross pay when the user inputs hours worked and hourly pay rate. With what I have so far, it compiles fine, but gives these errors: on Dev-C++: message: [Linker error] undefined reference to 'get_pay(float, float)' Id returned 1 exit status file: …

Software Development c++ visual-studio
Member Avatar for c230jif
0
133
Member Avatar for reniies

Hi all, Would you please help me to find a way that I can open an external crystal report in my application without creating a new report. I actually wanted the application to export the report to a PDF which I know the methods to do it. What I am …

Software Development pdf vb.net visual-studio
Member Avatar for reniies
0
532
Member Avatar for letlet_pogs

hello guy,,can you really help me understand more about "stack" in java?? i am still confused about stack.push or stack.pop.....can you help me understand it more??..thank you again...

Software Development java
Member Avatar for letlet_pogs
0
347
Member Avatar for ezkonekgal

hello, it's me again. As you have noticed, i am working on an assignment that my teacher gave me. It's 20% of my midterm exam. I posted the threads "Need urgent help! please", "I need help with my program", and the "Help with my main method." I am having problems …

Software Development java
Member Avatar for fireheart1024
0
158
Member Avatar for prateeknigamk

please tell me under what condition we should we use abstract classes and main difference between interface and abstract classes

Software Development java
Member Avatar for fireheart1024
0
95
Member Avatar for ezkonekgal

[code=JAVA] import java.io.*; import java.util.*; import javax.swing.*; public class Calculator { private static Stack operators = new Stack(); private static Stack operands = new Stack(); public static void main(String args[]) throws IOException { JOptionPane.showMessageDialog(null, "Hello user! I hope you have a great time using this. = ]", "Welcome", JOptionPane.PLAIN_MESSAGE); JOptionPane.showMessageDialog(null, …

Software Development java java-swing
Member Avatar for ezkonekgal
0
115
Member Avatar for asmit1987

I am having a combo box in my form and i want to open a image using that now whenever i select any option from the combo box different different images should be displayed what cud be the necessary code and what event should be used to write the necessary …

Software Development vb.net
Member Avatar for Teme64
0
2K
Member Avatar for smile4evr

Hi all... please help me with this code... i hv retrieved the id of the employee from the login n stored it as a lable in my form- logid but now with respect to that i want to get the employee name... please help very urgent!! [code] Dim rs As …

Software Development visual-basic
Member Avatar for smile4evr
0
96
Member Avatar for Mr_Grieves

I'm writing a method to generated a latex table table from input arrays. It's working but there is one nuisance: I want trailing zeros on numbers. Right now I'm using the %g method which works nicely, but it still will turn 1.340 into 1.34 if I do "%.4g" % 1.340. …

Software Development python
Member Avatar for ZZucker
0
97
Member Avatar for laghaterohan

I have a form in which i have 5 tab pages i have a doubt as to how to open a specific tab page within that form on button click. Say, i have an admission form in which when i click on save the details should be saved and then …

Software Development vb.net
Member Avatar for laghaterohan
0
76
Member Avatar for foehner

I have a VB6 program that does some image processing. It works fine when used thru both the GUI or non-GUI command line. My problem is that if I am in a command window and run the executable with arguments, it returns to the command window prompt after just a …

Software Development gui visual-basic
Member Avatar for foehner
0
124
Member Avatar for Vega_Knight

how i can create control at runtime? is this possible? Regards Vega.

Software Development visual-basic
Member Avatar for Vega_Knight
1
92
Member Avatar for prateeknigamk

why it is use full to resolve overridden method at runtime rather than compile time

Software Development java
0
75
Member Avatar for ezkonekgal

This is a code converting infix expressions to postfix expression and evaluates it. there is a problem, when i run it in ECLIPSE, it it displays this errors: Exception in thread "main" java.lang.NumberFormatException: For input string: "4+4" at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48) at java.lang.Integer.parseInt(Integer.java:456) at java.lang.Integer.parseInt(Integer.java:497) at Postfix.toPostfix(Postfix.java:39) at Postfix.main(Postfix.java:21) Can anybody help …

Software Development java
Member Avatar for ezkonekgal
0
222
Member Avatar for ezkonekgal

[code] import java.io.*; import java.util.*; public class InfixToPostixEvaluate { private static final String operators = "-+/*"; private static final String operands = "0123456789"; private static int getPrecedence(char operator) { int ret = 0; if (operator == '-' || operator == '+') { ret = 1; } else if (operator == …

Software Development java
Member Avatar for ezkonekgal
0
132
Member Avatar for gparadox

[CODE]#include <iostream> //Using for input and output #include <iomanip> //To set each number a determined place in the print function /* This program will try to move a knight around a chess board to each space exactly one time. How I will do that? I will first create the board …

Software Development c++
Member Avatar for gparadox
0
177
Member Avatar for Koldsoul

I am having an issue with a subclass. When I put in the code [code]package Ch1Pkg; public class RoundBaseContainer extends BaseContainer{ [/code] to implement the superclass of BaseContainer, I am getting an error that says cannot find symbol Symbol: constructor BaseContainer() location: class Ch1Pkg.BaseContainer I have the files in the …

Software Development java
Member Avatar for Koldsoul
0
95
Member Avatar for skatamatic

As a part of an assignment I am to construct a copy constructor for a bitmap loader/manipulator class. 2 of the things that must be copied are struct headers (containing a bunch of useless bitmap information, with a tiny bit of useful stuff). Image Headerfile: [CODE=cplusplus]#pragma once #include "Drawer.h" #include …

Software Development c++
Member Avatar for skatamatic
0
248
Member Avatar for Michael Stancil

What is the easiest way to print pdf files using Visual Basic 2005? I have some experience programming in VB 6 but I'm haven’t' been using 2005 very long so I’m still quite ignorant. Thanks for any help I can get. If someone could point me in the right direction …

Software Development pdf vb.net visual-basic
Member Avatar for BeejCyr
-1
2K
Member Avatar for cutedipti

h! friends i am not gettin output for below program.. it shows [B]segmentation fault[/B]...:-O can any one suggest me on this.... [code=c] #include<stdio.h> #include<string.h> int main() { char *str1="United"; char *str2="front"; char *str3; str3=strcat(str1,str2); printf("\n%s",str3); return 0; } [/code] thanks:)

Software Development c
Member Avatar for ithelp
0
93
Member Avatar for theory

I am programming in vb6 and am trying to cause ctrl-a to "select all" in a list box, but am not having much luck. Does anyone have any ideas on how this might be accomplished? Thanks, theory

Software Development visual-basic
Member Avatar for CommGuy
0
234
Member Avatar for EkoX

How can i playing wav file on my application? Im using vb.net 2005. Thank you very much...

Software Development vb.net
Member Avatar for Ixeman
0
164
Member Avatar for Agni

Hi, Below is my test code, i have a list of names in a file, i read the names and i have to insert them as menu options in the menubar. Since its a dynamic menu and people can add new menu's it has to be read from a file …

Software Development python tkinter
Member Avatar for Agni
0
242
Member Avatar for R3B3L

[B]TEXT file csvSTOCKS.TXT contains the following:[/B] Stock 1,200,300,200,200 Stock 2,200,300,200,200 Stock 3,200,300,200,200 Stock 4,200,300,200,200 Stock 5,200,300,200,200 [B]I'm attempting to read each line in the text file and put it in the array of strings lines()[/B] [code=vb] Dim sr As StreamReader = New StreamReader("csvSTOCKS.TXT") Dim lines() As String Do While (sr.Peek …

Software Development vb.net
Member Avatar for waynespangler
0
1K
Member Avatar for cutedipti

H! plz solve a problem..............! See I want to take continuous four input from the user, out of which three are character type and one is of int type. So my problem actually is that, it accepts only three input i.e. 2 char and one int & for remaining char …

Software Development c
Member Avatar for cutedipti
0
111
Member Avatar for asifjavaid

Hi fellows, How can I set a value of any type in VARIANT const pointer? I am tried my best but vain. I am facing compile time error. Here is sample code [CODE]VARIANT *v=NULL; v->bstrVal = "Video.Bin"; another try VARIANT *pValue; //BSTR *fileName; const char* pName; pName = "Video.bin"; pValue …

Software Development c++ video
Member Avatar for asifjavaid
0
2K
Member Avatar for predator78

[COLOR="Green"]Hello all, I'm new to the forum and also to python :D. Anyway I have been enjoying it quite a bit and wanted to start into something a bit more technical. So I though sockets would be a good start. I found a great sight , but the first script …

Software Development client-server python socket-programming
Member Avatar for predator78
0
146
Member Avatar for dimega

Hi there, How would I go about setting a date/time to 0? Basically I want the time to be 00:00:00 so that when I use the addseconds function of say 120 seconds it reads 00:02:00 Any help would be much appreciated.

Software Development visual-basic
Member Avatar for selvaganapathy
0
91
Member Avatar for monkey_king

Hi I'm doing a templated matrix class, and I'd like to be able to pass a function pointer to a function that uses the rows. [CODE=c++] template<typename T> T sum(Array<T> &a){ // a simple function that return the sum of an Array T res=0; for(int i=0;i<a.length();i++) res+=a(i); return res; } …

Software Development c++
Member Avatar for monkey_king
0
8K
Member Avatar for Stefano Mtangoo

I want to subclass My App and I hit the wall. If I don't subclass it works! WHAT IS WRONG HERE???? [ICODE] import wx ID_NEW = 10 ID_OPEN = 11 ID_CLOSE = 12 ID_SAVE = 13 ID_SAVE_AS = 14 ID_PAGE_SETUP = 15 ID_PRINT_PREVIEW = 16 ID_PRINT = 17 ID_EXIT = …

Software Development python
Member Avatar for vegaseat
0
113
Member Avatar for JoBe

Hi all, I have a class which contains a struct that holds some variables, string, int's. Now, one of the variables (string) in the struct is used to compare it with a name, if the name is in the struct, it has to be [COLOR="Red"]returned from my function [/COLOR]with it's …

Software Development c++
Member Avatar for JoBe
0
140
Member Avatar for melissajohn718

Write, compile and run a C++ program named that reads in one integer that represents a total number of hours and then displays the equivalent number of weeks, days and hours, all properly labeled. Have your program only do the calculation if the user enters a number less than 30,000 …

Software Development c c# c++
Member Avatar for Narue
0
182
Member Avatar for Jennifer84

For the code below I Select an area in a textBox that I will Mark Red. I will also change the Fontsize to [B]16 [/B]and make the selected text [B]Bold[/B] but are not sure what calls that is used for this. [code] this->richTextBox1->Select( 0, 10 ); this->richTextBox1->SelectionColor = Color::Red; [/code]

Software Development c++
Member Avatar for Jennifer84
0
131
Member Avatar for bpacheco1227

This program is supposed to prompt for a price until (do while loop) the input box is blank and then average the numbers and display the average. I've got most of it down except the average part, how do I store the numbers the professor hasn't showed us arrays yet. …

Software Development vb.net
Member Avatar for bpacheco1227
0
215
Member Avatar for Jennifer84

I am loading a txt File into a textBox with the code below. For each Line I am checking : if( LoadTopic2.substr(0, 2) == "Ex" ) If that is True I want to select that Row and mark that Line Blue. I have started some code out below but dont …

Software Development c++
Member Avatar for Jennifer84
0
132
Member Avatar for Elmo_loves_you

Hi Guys ... Does anybody know how to force a windows forms application to restart (Close and open again) taking the user back to the first screen ? My user fills in a questionnaire, reaches the end and is asked to either perform another survey or to send data (sent …

Software Development vb.net
Member Avatar for Elmo_loves_you
0
146
Member Avatar for balena

HElp.. Friday 09.19 I must present a little program for my C++ university test. I remain just a little bug. I use this code to write my file .DAT [code=C++] ofstream fileScritturaPartita(nomeFile,ios::binary | ios::out | ios::app); fileScritturaPartita.write(reinterpret_cast < const char * >(&sfidaDaSalvare),sizeof(Partita)); [/code] It works very well but in the …

Software Development c++ ios
Member Avatar for balena
0
151
Member Avatar for Run.[it]

Hi, just a query about versions of Microsoft Visual Studio. I last year created my C++ programs using Visual Studio .Net 2003 and have noticed that my new uni course uses 2005. Will I be unable to run my old programs in the 2005 version? Ive had compatibility issues before …

Software Development c++ visual-studio
Member Avatar for Run.[it]
0
101
Member Avatar for dmanw100

I followed Ancient Dragon's advice and used vectors to store roughly 1000 objects in a program I have written. Unfortunately, the vector library is not one I am familiar with. I read through the information at [URL="http://www.cppreference.com/cppvector/index.html"]http://www.cppreference.com/cppvector/index.html[/URL]. It seems getting a reference to each element of the vector is the …

Software Development c++
Member Avatar for dmanw100
0
97
Member Avatar for henpecked1

I'm doing a lab where I must use three sorting methods, then merge sort the three arrays. While separating the larger array, I'm getting a "run time check error #2 stack around the variable x was corrupted: It does this for y and z as well. I think it is …

Software Development c++
Member Avatar for henpecked1
0
141
Member Avatar for dmanw100

Can anyone spot the error in my code? The program will enter the last while loop but continue in an infinite loop... I figured fresh eyes may help spot the flaw! [CODE] int xlist[1500], ylist[1500], counter = 0, tempx, tempy, tempcounter; bool assign = false; while(counter < 1500) { xlist[counter] …

Software Development c++
Member Avatar for dmanw100
0
109
Member Avatar for dmanw100

I have a program that has a custom class that I would like to create many of and access them like an array. Example: [CODE]#include <iostream> using namespace std; class Thing { public: Thing(int value) { a = value; } int doStuff(int diffValue) { a = diffValue + a; } …

Software Development c++
Member Avatar for Agni
0
119
Member Avatar for ganil123

Hi, I am looking for a material that contains many python programs illustrating various core concepts. Please help in this regard.

Software Development python
Member Avatar for ganil123
0
101
Member Avatar for abu taher

I put 2 dtpicker in my project. both are for search data from backed access file. like (1st dtpicker) i select a date 16/08/08 and (2nd dtpicker) 16/09/08. i want to find data last a month or any few days. i mean i want to find a period data like …

Software Development visual-basic
Member Avatar for Jx_Man
0
99
Member Avatar for Jennifer84

I want to create a "Help" in an application that I do. I have attached a file for what kind of solution I am after. The solution is the same type as in VC++ 2008 under "Help" /Index? How it is constructed is with a listBox on the left side …

Software Development c++
Member Avatar for Jennifer84
0
123
Member Avatar for matejkralik

Can somebody tell me what is the char code for key "delete"?

Software Development
Member Avatar for matejkralik
0
100
Member Avatar for asmit1987

i am creating an application in which i require a splash screen. Now the thing is that i want my splash screen to be there without any title bar and frame border what should be the necessary code for it plz provide me with that.... thank you....

Software Development vb.net
Member Avatar for Jx_Man
0
2K
Member Avatar for peter_budo

I yet did not master the skill of concurrency better say I failed on first attempt and since then did not tried, therefore I'm asking for help. Currently I working on JME application where I need to load mp3 files into Player. I'm able to do it with one file, …

Software Development java
Member Avatar for Ezzaral
0
136
Member Avatar for tillaart36

Hello I'm new to the forums and I want to ask some questions about grid like operations: Here I make a grid and set all cellvalues to 0. [CODE] import wx import wx.grid class TestTable(wx.grid.PyGridTableBase): def __init__(self): wx.grid.PyGridTableBase.__init__(self) self.rowLabels = ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10"] …

Software Development python
Member Avatar for tillaart36
0
258

The End.