132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for rakchouh

Hi, I am writing the content of a long text file in pdf using PDFbox API in java but only half the page I am able to write please assit me with it asap here is my code: import java.io.IOException; import org.apache.pdfbox.pdmodel.PDDocument; import org.apache.pdfbox.pdmodel.PDPage; import org.apache.pdfbox.pdmodel.edit.PDPageContentStream; import org.apache.pdfbox.pdmodel.font.PDType1Font; import org.apache.pdfbox.pdmodel.font.PDFont; …

Software Development apache api java pdf
0
115
Member Avatar for london-G

Hello, I am getting the error: "Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException:15" There is definetly something I am doing wrong but I cannot figure out what. Any help will be appreciated. The error in the output is poiinting to line 119; if(R[currentState][action] > -1){. I tried to change this but no …

Software Development java matrix-multiplication
Member Avatar for london-G
0
646
Member Avatar for yazan.a.ali.5

1) write a C++ program that reads 50 integer numbers and prints the smallest three numbers.

Software Development c++
Member Avatar for Schol-R-LEA
0
120
Member Avatar for d.sign

I need help regarding with the computation of what the user order it seems that the options doesn't have a value to be computed please help me how to put values in every options and one more thing is i need help with the codes for the checkbox for additional …

Software Development java java-swing
Member Avatar for stultuske
0
379
Member Avatar for Kumar_3

Hi, I am working on a project building a scanner based on Lex and Yacc. I have added "gettimeoftheday" function to display total scanning times, now i want to find a way to print the line numbers in the terminal.plz if anyone can help me in this.Here is my yacc …

Software Development
0
104
Member Avatar for Praveen_10

#include <iostream> #include <cstdlib> using namespace std; // function prototype for add int add (int x, int y); int sub (int q, int r); int mul (int s, int t); int divi (int u, int v); int main () { int a,b; char ch; loop:cout<<"ENTER CHOICE OF OPERATION: + - …

Software Development c++ mathematics
Member Avatar for Praveen_10
0
273
Member Avatar for Piotr_1

I was trying to find an answer for my issue over the net, but it was hard to find any relevant information. I'm in the middle of my school project and I got stuck in a dead point! I have a form which looks like this: http://i60.tinypic.com/24zjfpl.jpg I don't know …

Member Avatar for Learner010
0
399
Member Avatar for kxjakkk

Python keeps getting stuck on this line because there is no attribute "numerator" (and I'm assuming it'd say it has no attribute for denominator either). third = Rational(25, 10) print ("third: 0/1".format(third.numerator(), third.denominator())) For my Rational class, I've got def gcd(a, b): if b == 0: return a else: return …

Software Development python
Member Avatar for Schol-R-LEA
0
631
Member Avatar for thanh.truong.1272

I was asked to create a program to find word frequencies, word length in a text file. I am able to use map to do the frequencies part but don't know how to sort the the output accordingly to the length of the words. The example output that I should …

Software Development c++ file-system
Member Avatar for uonsin
0
565
Member Avatar for jhender4880

I have to take a 5 element array and use a function with pointers to make a new array that is one element bigger and shifted 1 place. I have it working so that it shifts one place but the function isn't making the array one element bigger. Any sugestions? …

Software Development c++
Member Avatar for jhender4880
0
222
Member Avatar for Taras20

Hi, I have problem going through database (im using microsoft access) tables with BindingNavigator. Basicly I want to have BindingNavigator which goues through database tables (not the table rows) in DataGridView. For example if i press next button on BindingNavigator, I want to see next table in the database. I …

Software Development microsoft-access vb.net
Member Avatar for cgeier
0
267
Member Avatar for Siberian

Hi, I didn't know where to place this thread :) Any recommendations for an IDE app to save snippets of code within the program, I looked online, and there are many options, too hard to pick ! :)

Software Development c++ ide javascript python
Member Avatar for Siberian
0
327
Member Avatar for alyssa.wilkins.77

Hello, I am trying to figure out the direction i would need to go in order to create the circuit in Digital Works. Right now I am stumped. I do have a working asynchronous counter that can go from 0-13. Can you help push me in the right direction?

Software Development
Member Avatar for alyssa.wilkins.77
0
190
Member Avatar for navi2582

I am trying to toggle between the two toolbars and couldn't do it with the code below. Not sure where the problem is.... Any ideas are very welcome!!! Here is the code: `Inline Code Example Here` import wx import wx.grid import wx.html import wx.aui from time import * import cStringIO …

Software Development gui os-x python
0
177
Member Avatar for soundarya_1

Write a program that takes two input strings S1 and S2 and finds if S2 is a substring of S1 or not. If S2 is a substring of S1, the program should print the index at S1 at which there is a match. If S2 is not a substring of …

Software Development c
Member Avatar for cxzei
0
148
Member Avatar for haze man

Hi guys i have been making this solor system simulator in python. I have added four planets and now I am trying to make it look a little nicer. What i am have trouble with is setting the background colour to be black (to give more spacey feel). But what …

Software Development python
Member Avatar for vegaseat
0
912
Member Avatar for neha_8

I wrote this code to find if string s2 is a substring of string s1. However I'm getting time limit exceeded. How can I make my algorithm better? #include<stdio.h> int main() { char s1[20], s2[20]; scanf("%s %s", s1,s2); char *p, *q, *count; p=s1; q=s2; int i=21; do{ if(*p==*q) /* the …

Software Development algorithm c
Member Avatar for neha_8
0
194
Member Avatar for moketemelton

Imports DemoExcelFileHandling.DataSet1 Imports DemoExcelFileHandling.DataSet1TableAdapters Public Class ReadFromExcel Private dt As New dtMonthDataTable Private ta As New taMonth Private bs As New BindingSource Private Sub BindUI() dgvExcelData.AutoGenerateColumns = False colYear.DataPropertyName = "Year1" colMonth.DataPropertyName = "Month1" colFacility.DataPropertyName = "Facility" colProductCode.DataPropertyName = "ProductCode" colProductDesc.DataPropertyName = "ProductDesc" colUnit.DataPropertyName = "UnitOfIssue" colBegBalance.DataPropertyName = "Beginning_Balance" colQtyReceived.DataPropertyName …

Software Development dataset vb.net
Member Avatar for G_Waddell
0
215
Member Avatar for tran.duy.77

Can i help U ? Need to get information into the Order .

Software Development microsoft-office vb.net
Member Avatar for ddanbe
0
83
Member Avatar for N.Raghavendran

I've developed an application in vb 2010 and my back-end is sql server 2008. What are all the softwares i need to install in the client machine ?

Software Development client-server sql vb.net
Member Avatar for oussama_1
0
246
Member Avatar for admiri92

I'd like to know main differences between C and C++,because they look similar.

Software Development c++
Member Avatar for rajii93
0
540
Member Avatar for jeevan reddy

I have a server and a client. I wrote handlers for send button and receive. When I send a string I am receiving only first two chars and then some japanese chars of the string on the receive side. I wanna receive the entire string.Please help me . This is …

Software Development c++
Member Avatar for jeevan reddy
0
195
Member Avatar for rjanelli

There are many examples of reading an xml file and populating a datagridview. I would like to pull the xml from a string instead. Dim myXMLfile As String = "C:\tmp\accountlist.xml" Dim ds As New DataSet() ds.ReadXml(myXMLfile) DataGrid1.DataSource = ds DataGrid1.DataMember = "account" The above code works when the xml data …

Software Development dataset vb.net xml
Member Avatar for cgeier
0
796
Member Avatar for shubham.goel.41995

I want to make a project on online examination which have some similar view like amcat and also have a view which run programs online.

Software Development c++ java
Member Avatar for invadev
0
285
Member Avatar for fatmah

hi , i have a very simple Family tree project using GUI..... and i have two forms ! the first form ask the user to enter the number of child the parent have then in the 2nd form there will be a box as the number of child like when …

Software Development c++ gui
Member Avatar for ravi_14
0
120
Member Avatar for rahul8590

I am able to write a java program to access a particular url , and get the data , but the data is in raw format and the complete source is printed in the terminal . import java.net.*; import java.io.*; public class URLConnectionReader { public static void main(String[] args) throws …

Software Development display java
Member Avatar for invadev
0
301
Member Avatar for rose88

1. A company wants to transmit data over the telephone. All of the data are transmitted as four-digit integers. The company has asked you to write a program that encrypts the data so that it can be transmitted more securely. Your program should read a four-digit integer and encrypt it …

Software Development java java-netbeans
Member Avatar for jwenting
0
234
Member Avatar for adhirgukt

I'm using gcc compiler in linux ubuntu os. I's started doing windows programming in c but my compiler does not having windows.h or supporting header files. How can i include these windows programm supporting files? Can i download them externally or what else.......?

Software Development c microsoft ubuntu
Member Avatar for invadev
0
12K
Member Avatar for ckide
Member Avatar for invadev
0
310
Member Avatar for Dang_1

hi everyone, i need some help. This is my problem. When I input a string to the program, I want the screen console print out '*'. ex: string s; cout<<"password :"; getline(cin,s); when i type "abc123" for the password. The screen console will show "******". I'm sorry about my poor …

Software Development c c# c++
Member Avatar for Ancient Dragon
0
498
Member Avatar for ravi_14

i was reading a book and came across this line "C++ matches a pointer of any other type with type void * and prints a numeric representation of the address. If you want the address of the string, you have to type cast it to another type," please any one …

Software Development c c# c++
Member Avatar for Ancient Dragon
0
188
Member Avatar for Parthptl

private void button1_Click(object sender, EventArgs e) { try { var sr = new System.IO.StreamReader("C:\\" + textBox1.Text + "\\login.txt"); username = sr.ReadLine(); password = sr.ReadLine(); email = sr.ReadLine(); sr.Close(); if (username == textBox1.Text && password == passwordtextbox.Text) MessageBox.Show("You are now successfully logged in."); else MessageBox.Show("Username or Password seems invalid, please use …

Software Development
Member Avatar for Fenrir()
0
134
Member Avatar for alagez

Hi there, I am interested in phone selection by using if..else statement. so after viewing the phone specification we can select the phone and purchase that. so do you have python sample codes for that? a rough idea is enough. Thank you. and python is really interesting.

Software Development python smartphone
Member Avatar for Schol-R-LEA
0
263
Member Avatar for shadowplayer28

when converting iget erros especially in the cin parts because they are automatically passed by something #include<iostream> #include<conio.h> #include<math.h> using namespace std; int p=1; class Bank { public: char name[50],address[90],type; double ein_betrag, aus_betrag; double balance; int costumernr, accountnr, birth, tel; public: void newcostumer(); void newaccount(); void costumerdel(); void accountdel(); void …

Software Development c c++
Member Avatar for Schol-R-LEA
0
326
Member Avatar for snowy365

I know very little aboout coding and less of Java Logic says I should be able to do something like this: int i; String taxFileNumber; System.out.printf(" Enter Tax File Number (TFN): "); for(i = 0; i < TFN_SIZE; i++) { if(i == 3 || i == 7) { taxFileNumber.charAt(i) = …

Software Development display java
Member Avatar for JamesCherrill
0
150
Member Avatar for theashman88

I understand the concept of using get and set with instance variables, but I am confused about using get and set by themselves For example `public string random {get; set;}` what is the purpose of this, and how can I use this in my code. I am a beginning programmer …

Software Development
Member Avatar for tinstaafl
0
229
Member Avatar for theashman88

`Console.WriteLine("Students {0}", variable)` This i understand but what does it mean when you put two numbers within the bracket example: `Console.WriteLine("Students {0,2}: {1,3}", student + 1, grades [student])` What do the 2 and 3 represent. I know the 0 and 1 correspond to variables, but I'm not clear on the …

Software Development
Member Avatar for ddanbe
0
195
Member Avatar for trantran

I am writing a class that uses different policies stored in classes I want to declare this class by simply selecting the policies by writing `my_great_class<policy45, policy22, policy12>` (There can be a varying number of policies) which would translate automatically into: struct empty_class{}; struct policy12: empty_class{ // code... }; struct …

Software Development c++
Member Avatar for trantran
0
631
Member Avatar for smitsky

I'm having trouble displying the contents of a queue. When I pop the queue here: for( int i = 0; i < diskQueue.size() + 1; i++ ) { cout << left << setw(0) << "--d" << i+1 << left << setw(4) << " " << left << setw(14) << diskQueue.front().getFilename() …

Software Development c++ printer queue
Member Avatar for smitsky
0
221
Member Avatar for ivan3510

Hi! This is just an example code: #include<iostream> using namespace std; int& example() { int a=5; return &a; } int main() { cout << example(); } But I'm getting this error: Error: invalid initialization of non-const reference of type 'int&' from an rvalue of type 'int\*'

Software Development c++
Member Avatar for ivan3510
0
205
Member Avatar for ashley.vanhoesen.7

I am writing a program to input data from a file, format it and then output to another file. For some reason when i make the file I get this error: ----jGRASP exec: make g++ -ggdb -c Billionaire.cpp iostream:39:0, from Billionaire.cpp:7: c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\ostream: In constructor 'Billionaire::Billionaire()': ostream:384:7: error: 'std::basic_ostream<_CharT, _Traits>::basic_ostream() [with …

Software Development c++ open-source
Member Avatar for ashley.vanhoesen.7
0
4K
Member Avatar for Diego_4

Do you know if I can change of line in a list of lists? tareas = [] > otraTarea = [tarea,year,month,day, hour, minute, second, microsecond,str(cuando),cuando] `+'\n'+ []`(this is what i have tried) #I have tried to concatenate two lists, but the program returns a message, in which it's explained that …

Software Development python
Member Avatar for TrustyTony
0
322
Member Avatar for اشرف_1

this prog for database to edit and search database using sql by vb I want the search results appear in DataGridView only Dim winclass As New Class1 btnsearch.Enabled = True 'btnsearch.Enabled = True btnnsearch.Enabled = True If txtsearch.Text.Trim = "" Then MsgBox("enter value of search", MsgBoxStyle.Information) txtsearch.Focus() ' Lablerror.Text = …

Software Development vb.net
Member Avatar for اشرف_1
0
240
Member Avatar for catastrophe2

hello everyone So i have a project to do a code about using these powers of three numbers: 1, 3, 9, 27, and 81 (we dont have to use all and a number of them can only be used up to one time per number being decomposed) and use them …

Software Development
Member Avatar for catastrophe2
0
236
Member Avatar for smitsky

Hi. Can someone explain why this isn't working? #include <iostream> #include <list> #include <string> #include <iomanip> using namespace std; /** * Global Variables */ int printer; int disk; int cd; int num; int pmem, plen; int dmem, dlen; int cmem, clen; class PCB { public: PCB() : pid( 0 ), …

Software Development c++ printer
Member Avatar for smitsky
0
141
Member Avatar for smitsky

Hi. I'm trying to access some data in a List using an Iterator, but I'm getting an error message: #include <iostream> #include <list> #include <string> #include <iomanip> using namespace std; /** * Global Variables */ int printer; int disk; int cd; int num; string k; int pmem, plen; int dmem, …

Software Development c++ printer queue
Member Avatar for smitsky
0
220
Member Avatar for kingsonprisonic

First thing is this is a long question. So please first read it then give me your suggestion. currently i am working on a banking projects for my degree. Where i am implementing a simple bank savings account. Where account holder can deposit and withdraw money. The account starts with …

Software Development vb.net
Member Avatar for Mr.M
0
361
Member Avatar for gu mi nam

this code was error.please help me fix it include <iostream> include <conio.h> include <algorithm> using namespace std; int a[]={1,5,7,4,9,8}; BST*binary_search_tree; struct BST{ int value; BST* left; BST* right; }; int search_bst(BST* node,int key){ if(node==NULL) return -1; if(key<node->value) return search_bst(node->left,key); if(key>node->value) return search_bst(node->right,key); else return node->value; } void insert_bst(BST* &treeNode,BST* newNode){ …

Software Development c++ data-structure seo
Member Avatar for gu mi nam
0
399
Member Avatar for smitsky

Hi. Can someone tell me why the following code is giving me an error message? Thank you. #include <iostream> #include <list> #include <string> #include <iomanip> using namespace std; /** * Global Variables */ int printer; int disk; int cd; int num; string k; int pmem, plen; int dmem, dlen; int …

Software Development c++ printer queue
Member Avatar for smitsky
0
423
Member Avatar for catastrophe2

Hello I have to do a sorted list code according to some instructions. a friend and I worked on this, and we pretty much ended up with the same code, his worked, but mine isnt, even though its exactly same! I have been trying for hours figuring how to make …

Software Development c++ visual-studio
Member Avatar for catastrophe2
0
1K

The End.