132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Talguy

I am creating a scripting engine that would execute my own scripting language. The engine does a double pass through the script, the first pass parses the file and builds the data structure and the second executes the script. The error I am getting is when I try to read …

Software Development c++ data-structure
Member Avatar for Talguy
0
118
Member Avatar for markrezak

ok ok i got it now right i copy it to vector and sort it..... here is the code #include <iostream> #include <fstream> #include <algorithm> #include <string> #include <map> #include <vector> using namespace std; typedef map<string,int> word_count_list; struct val_lessthan : binary_function < pair<string,int>, pair<string,int>, bool > { bool operator() (const …

Software Development algorithm c++ display
Member Avatar for William Hemsworth
0
178
Member Avatar for markrezak

.the program is running .display the frequency of words and sort them from highest count to lowest. my problem is about the duplication of the counts or value of the words.if the value of the word are same it only display the first word&value ...can some one help here is …

Software Development algorithm c++
Member Avatar for markrezak
0
188
Member Avatar for Moein.Enayati

Hi I want to create a simple bi-directional variable binding in java. assume having a String and a jTextField [CODE=java] String stringVariable; JTextField jTextField; [/CODE] I bound the jTextField.text property to the stringVariable using this code : [CODE=java] org.jdesktop.beansbinding.Binding binding = org.jdesktop.beansbinding.Bindings.createAutoBinding(org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE, this, org.jdesktop.beansbinding.ELProperty.create("${stringVariable}"), jTextField, org.jdesktop.beansbinding.BeanProperty.create("text")); bindingGroup.addBinding(binding); bindingGroup.bind(); [/CODE] any …

Software Development java
Member Avatar for ~s.o.s~
0
619
Member Avatar for nateuni

Hi, In c if I have a return value and do not catch it, will this cause any problems in my program? Or should I just catch it in some dummy variable and discard it? In spite of googling.. I can't find any info in how c behaves in this …

Software Development c c# c++
Member Avatar for gerard4143
0
131
Member Avatar for sohaib770

What is need of default arguments in function overloading in C++?

Software Development c++
Member Avatar for Lerner
0
71
Member Avatar for orsodani

Hi guys, I am writing (trying to write) a program in VBA for Excel 2003 and I got stuck, I need your help, please. I have an excel range where the upmost cell is initially fixed and the downmost cell moves down as more data arrive. In other words I …

Software Development microsoft-office visual-basic
0
117
Member Avatar for vileoxidation

Okay, I am working on a homework assignment for my class in which we are supposed to use pointers for all of the arrays in the functions. Here is what I have so far for the printArray function, which is supposed to print the members of the array horizontally. It …

Software Development c
Member Avatar for Golam Kausher
0
193
Member Avatar for evilguyme
Member Avatar for lostmonkey

In my readFile.h file, I define void readFileInformation(string filename) in readFile.cpp file, I define void readFile::readFileInformation(string filename) { ifstream inFile; infile.open(filename.c_str(), ifstream::in); ... } in main.cpp file, I used string filename="mgolfinput.txt" readFile filereader; filereader.readFileInformation(filename.c_str()); but for some reason, I couldn't open file. I did try to change path of .txt …

Software Development c++ file-system
Member Avatar for Nick Evan
0
85
Member Avatar for fafi_ali

hi everybody, do you know how to deploy crystal report? actually i took the exe only to the clients computer (as it's the first time i work on crystal report) but when i try to run it it thraws exception:- couldn't load file or assembly 'CrystalDecisions.CrystalReports.Engine,Version=10.5.3700.0,Culture=neutral,PublicKeyToken=692fea5521e1304'or one of it's dependencies.The …

Software Development assembly
Member Avatar for fafi_ali
0
111
Member Avatar for feartrich

[code=java] import java.util.*; public class factorial { public static void main(String[]args) { int m,f,n; System.out.println("Factorial Solver"); System.out.println("Enter a number"); Scanner sc = new Scanner(System.in); n = sc.nextInt(); m = 1; f = 1; f = f * m; while (m != n) { m = m + 1; } f …

Software Development java
Member Avatar for nomemory
0
99
Member Avatar for oling

So, I am learning C and have this newby problem. This is my snippet: [CODE] #include <stdio.h> main() { char x; unsigned y; x=0xFF; y=0xFFFF; printf("Size of char: %d-bits\n", sizeof(char)*4); printf("Size of int: %d-bits\n", sizeof(int)*4); printf("\n0x%X in decimal: %d\n", x, x); printf("\n0x%X in decimal: %d\n", y, y); return 0; } …

Software Development c
Member Avatar for oling
0
2K
Member Avatar for serkan sendur
Member Avatar for serkan sendur
0
686
Member Avatar for Gaiety

Hi, Please suggest me how to check a given tree is balanced using the height of tree. we need to use the avl tree concept. i.e, the difference between height of any left or right subtree is atmost 1. i have written the code for inserting the node, but this …

Software Development c++
Member Avatar for Barefootsanders
0
137
Member Avatar for MattyRobot

I have been trying for ages to get glut working (in code blocks) and now it works... sort of. I can compile and run applications but it comes up with several warning: ignoring #pragma comment errors in glut.h. I got the glut.h file from [URL="http://www.transmissionzero.co.uk/computing/using-glut-with-mingw/"]here[/URL]. because all other downloads of …

Software Development c++
Member Avatar for MattyRobot
0
136
Member Avatar for serkan sendur

how to set product name for windows installer through command line? Thanks

Software Development
Member Avatar for serkan sendur
0
178
Member Avatar for shahanakazi

Hi, I'm a beginner of C++ programming. I am trying to write a void funtion for the following question but in vain. Please help me. Here's the question: Suppose we want to display the following figure containing the alphabetic character V on yhe screen: #^^^^^^^^^# ^#^^^^^^^#^ ^^#^^^^^#^^ ^^^#^^^#^^^ ^^^^#^#^^^^ ^^^^^#^^^^^ …

Software Development c++
Member Avatar for Barefootsanders
0
160
Member Avatar for Mash'Funk

Hi have 2 list boxes on a form i have uploaded an example of the form im trying to code, would like to transfer an item to the next list box without duplicates so if you trying to send one item twice it should say msgbox("Borders already in the list …

Software Development vb.net
Member Avatar for TomW
0
87
Member Avatar for chico2009

Hi folks I have just completed my first programme with help from yourselves. I cant understand why the code , if x ==1 or 2, wouldn't work in my programme below [code=python] # Convert C to F or F to C and return with result select = True while select: …

Software Development python
Member Avatar for chico2009
0
187
Member Avatar for jeffsmessus

I am new to programing and am impressed with the ease of python/wxpython. I have written useful wx programs to enter data into MySQL databases, but am stuck on making a useful wxpython MySQL query progam. I have had success writing query apps in python. I'm hoping to find a …

Software Development mysql python
Member Avatar for jeffsmessus
0
900
Member Avatar for mem81

Hi there, I have been struggling with this for quite a while now. I am a novice in .net so no wonder I can figure it out. I have a tab delimited file, where the sequence of lines should be 01UN1........................ 04UN1.......................... 09UN1........................ 01UN2.................... [COLOR="Red"]04UN2.............[/COLOR] 04UN2............... 09UN2................ However sometimes in …

Software Development file-system vb.net
Member Avatar for mem81
0
197
Member Avatar for laghaterohan

hey folks, i have a button named btnnext and a picturebox pbox . On the click of the next button i want that picturebox should display image one by one on the next button click.. how to do this ?? pl give me idea...plz....

Software Development display
Member Avatar for laghaterohan
0
472
Member Avatar for alex-VX

is there any way to disable a loop when the user is inactive / when the screen saver is on?

Software Development python
Member Avatar for alex-VX
0
108
Member Avatar for evilguyme

ok so basically i just wanted to know how to add a string variable between text.. eg. [CODE] string name; cout << "Hello,"name"sucks"; [/CODE] i want to know how to do it all in one line since where i use it there are parameters and they don't allow me to …

Software Development c++
Member Avatar for Nick Evan
0
102
Member Avatar for samm22

Does anyone know how to truly select random element from a vector v? I tried this: int rnd; rnd = v[ (int)floor( (double)rand()*( (double)v.size() / (double)RAND_MAX ) ) ]; cout<< "Random element: "<<rnd; But every time it's selecting only one particular element from my vector. It should be random right. …

Software Development c++
Member Avatar for samm22
0
144
Member Avatar for Ashwin Vasnai

I want to create a Jtree in Java Desktop Application.I know how to create a dyanamic Jtree in normal java application.I tried google but I didnt got satisfied answer.please help me as soon as possible. Also the Tree is of "Name of tables in database" and with child node as …

Software Development java
Member Avatar for quuba
0
136
Member Avatar for axelle.eichner

Hey, I'm a student wanting help on how to write a program in netbeans.. I have no idea how to work this website so this question may be in the wrong place but.. here goes: so i need to write a program that outputs a quote one letter at a …

Software Development java java-netbeans
Member Avatar for javed123
0
148
Member Avatar for s.praneeth

Two up is a historically popular Australian gambling game ([url]http://en.wikipedia.org/wiki/Two-up[/url]) Two up was played at Crown Casino for a time with the following rules: •Spinner nominates “heads” or “tails” •If the spinner nominates “heads” and spins a series of three heads before being eliminated he/she is paid at odds of …

Software Development python
Member Avatar for lllllIllIlllI
0
204
Member Avatar for Smoking Bros

Well, the title might be very complicated if you think of what I'm actually trying to do. Well I have a typical 'the-sky-is-falling' game and as in most of these type of games you have to catch apples, and I maximum allows 3 at a time, and you get + …

Software Development apple java
Member Avatar for Smoking Bros
0
130
Member Avatar for gabanxx

i created a form with 4 textbox tht user can insert their data and stored it in sql server 2000 databse..than i manage to display the data when user starting the program... i also create an update button for user to update their data... the problem is when i want …

Software Development dataset vb.net
Member Avatar for obicerno
0
541
Member Avatar for yorro

How do I use the User-Controls as a form within a Form? This is my answer to my problem located on [URL="http://www.daniweb.com/forums/thread214973.html"]this thread[/URL] As seen in the original thread's solution, I've used solution #2. Instead of switching forms, I've used switching panels and the controls are contained in those panels. …

Software Development oop vb.net
Member Avatar for yorro
0
2K
Member Avatar for darkocean

Hi all, Now i dont remember what we say about this method, i am so sorry for that anyway... I want to write in textbox when i am writing on it, it shows similar info to me. For example if i write dan it must be show daniweb, dance, danny, …

Software Development
Member Avatar for DdoubleD
0
111
Member Avatar for designervc

Hi everybody, Now, I have to create a Word file from a word template, i have faced a difficult problem when replace a text on Word file. In my file Word template, I have 5 lines with the text is "Name_of_Applicant". (Please note that the BOOKMARK will not use in …

Software Development
Member Avatar for designervc
0
88
Member Avatar for DemonixXV2

When I try running this code in netbeans, I get a window which says that the main class wasn't found in PerfectNumbers. And underneath there's a select main class, which endlessly stays at : Initializing view, please wait... [CODE]public class PerfectNumbers { int nbToFound; public PerfectNumbers(int nb) { nbToFound = …

Software Development java
Member Avatar for DemonixXV2
0
3K
Member Avatar for blueness25

Hello, I know this is a very simple problem, but I am about to give up... Why couldn't I get the control keys do their job? Maybe someone whose eyes are more rested than mine can tell me. I will appreciate any help. I am dealing with pygame, and I …

Software Development python
Member Avatar for blueness25
0
804
Member Avatar for thisisanfield.1

This is my first time using pointers and I'm having some trouble. So far I have declared a struct named Student which is meant to hold the data for each student. There is an input file with an unknown amount of entries. Each entry has a first and last name …

Software Development c++
Member Avatar for thisisanfield.1
0
141
Member Avatar for DrakeMagi

Just want to create a flexible desktop that is independent from system. For my linux system. Like to have Clean Window and Transparent. 1. Looking for the basic on Xlib. Most of what i found is unclear where i start. I like to start simple and expand. a. Want to …

Software Development python
Member Avatar for DrakeMagi
0
442
Member Avatar for lotrsimp12345

When i run a black screen with cursor appears but nothing prints THANKS INTERFACE [code] //my_int_vector.h class my_int_vector { public: //destructor ~my_int_vector(); //copy constructor my_int_vector(const my_int_vector& b); //constructor that create an empty vector my_int_vector(); /*constructor that create an vector with capacity specified as a parameter but doesn't assign values to …

Software Development c++ user-interface
Member Avatar for mrnutty
0
253
Member Avatar for perumar

I have successfully load a dynamic array reading the numbers in a text file into form. But how can I save that array again into text file after I change some numbers.

Software Development vb.net
Member Avatar for CodeDoctor
0
1K
Member Avatar for redrocket0274

Can someone tell me what's wrong with my program? import java.util.Scanner; public class TotalSales { public void getNumbers() { Scanner input = new Scanner( System.in ); double numbers[][] = new double[5][5]; int count = 0; // number of uniques read int x = 0; int y = 0; int productNum …

Software Development java
Member Avatar for VernonDozier
0
107
Member Avatar for papanyquiL

This is really frustrating me, I know it's something stupid that I missed. I have a combo box that loads all available fonts when the app starts up. When the user selects a font from the combo box, it should change the label to the font they selected. Here's what …

Software Development
Member Avatar for papanyquiL
0
115
Member Avatar for anetbegin

Hi, I am developing a lookup page i.e when i provide a zip code in the textbox and submit the button it should display the details like city,state etc. I've created two tables in the database, one with zip code and other with details city,state etc. how can i display …

Software Development asp.net
Member Avatar for anetbegin
0
110
Member Avatar for buriza

I am getting the following errors 25 D:\calculat.cpp expected `(' before "op" 49 D:\calculat.cpp expected `;' before "op" 53 D:\calculat.cpp `y' undeclared (first use this function) I partly suspect to change it to switch (op) but that gives more errors of the following 27 D:\calculat.cpp expected primary-expression before ':' token …

Software Development c++
Member Avatar for NathanOliver
0
100
Member Avatar for DemonixXV2

Ok, I've got this code, it says that there are no main classes and that [I]public class Amicable[/I]; class Amicable is public, should be declared in a file named Amicable.java, but the file name is Amicable... Any help would greatly help me, since I have same prob. with another file>_> …

Software Development java
Member Avatar for DemonixXV2
0
146
Member Avatar for The-IT

hello I have been doing a lot of Tkinter lately and I was wondering of there is a way i fit a scroll bar into a text wdiget using the .grid() method. right now the code i have writen is: [code]from Tkinter import * root = Tk() text = Text(root) …

Software Development python tkinter
Member Avatar for The-IT
0
6K
Member Avatar for Doughnuts

Hello, I am a newbie a C++. I was doing a program where you calculate prime numbers, and it prints prime and non-prime numbers. Here is my code, [CODE]#include <iostream> #include <conio.h> using namespace std; main() { int n = 1; int i = 2; bool IsPrime; int Max; int …

Software Development c++
Member Avatar for Doughnuts
0
284
Member Avatar for tiwas

Hi, I've beeb playing around a bit with files and stuff to learn some of the aspects of C#. In order to not make it too convenient and easy I opted for using a String to hold my path, and then use DirectoryInfo to use it. In one of the …

Software Development
Member Avatar for tiwas
0
111
Member Avatar for uNpReDiCtAbLe

#include<iostream.h> main() { int opt,x,y,fact,ans; for(ans=opt;ans!=0;ans++) { cout<<"\n\t\t\t *******MENU*******" <<"\n\t\t\t[1] FACTORIAL OF A NUMBER" <<"\n\t\t\t[2] PRIME NUMBER" <<"\n\t\t\t[3] ODD OR EVEN NUMBERS" <<"\n\t\t\t[4] MULTIPLICATION TABLE" <<"\n\t\t\tYOUR CHOICE: "; cin>>opt; switch(opt) { case 1: { cout<<"\nThis program tells you the Factorial of the number you have input..."; cout<<"\nInput limit: "; cin>>y; …

Software Development c++
Member Avatar for sfuo
0
136
Member Avatar for Frederick2

Not stuck and no real question, which is unusual for me. Just a comment. The 2nd term in a for loop establishes the condition under which the loop terminates. For example, this loop terminates when i increments to 5... for(i=0; i<=5; i++) { ... ... } It'll execute its contents …

Software Development c++
Member Avatar for Frederick2
0
126

The End.