132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Dyed Purple

I'm currently trying to create a program which factorises a number entered by the user, as reccomended by the sticky. When I run the program, I get "error C2061: syntax error : identifier 'cin'". Here is my code: [code] #include <iostream> using namespace std; int main() { int iFigure; int …

Software Development c++
Member Avatar for thelamb
0
230
Member Avatar for Confu

hi.....um reading killer game book.and when loading external models it imports ncsa portfolio package.....i dont know where i could find this package and whether this package is included in java3d api??thanks in advance for any help.......

Software Development api java
Member Avatar for quuba
0
75
Member Avatar for MrDiaz

Hey everyone, I have a series of loops that read through a text file and then output the occurrences for each letter on the file. This seems to be fine when using small text only. When providing a lot of text it just takes too many CPU resources and that's …

Software Development c
Member Avatar for Tellalca
0
117
Member Avatar for madonline

CAN SOMEONE TELL ME HOW THE console eraser work in the below PROGRAM PART...............describe the LOGIC??????????? [code] //Creating and hiding password. ConsoleEraser consoleEraser = new ConsoleEraser(); System.out.println(); System.out.println("(Please enter the common Password)"); System.out.print("PASSWORD : "); BufferedReader passin = new BufferedReader(new InputStreamReader(System.in)); consoleEraser.start(); String passWord = passin.readLine(); consoleEraser.halt(); System.out.print("\b"); //Password matching. …

Software Development java
Member Avatar for madonline
0
525
Member Avatar for lionaneesh

[CODE]/* This function accepts a socket FD and a ptr to a destination * buffer. It will receive from the socket until the EOL byte * sequence in seen. The EOL bytes are read from the socket, but * the destination buffer is terminated before these bytes. * Returns the …

Software Development c
Member Avatar for abhimanipal
0
195
Member Avatar for Abdel_eid

i have created a system for a library using java using input and output jframes but i need to access that project using a .exe file by just a double click...how can i do that

Software Development java
Member Avatar for DeadSoul
0
317
Member Avatar for sharathk60

my i have wrote my code is like this but m not to get get proper out put here is my code [CODE] System.out.println("Enter Date of Birth dd/mm/yyyy"); DataInputStream in=new DataInputStream(System.in); String dob= in.readLine(); String[] dob1=dob.split("/"); int year=Integer.parseInt(dob1[2]); int month=Integer.parseInt(dob1[1]); int date=Integer.parseInt(dob1[0]); System.out.println("Date : "+date+ "Month : "+month+" year :"+year); …

Software Development java
Member Avatar for JamesCherrill
0
118
Member Avatar for ktsangop

Hello everyone! I am using python 2.6 on cygwin environment and wondering how could i prevent two python processes from writing to a file at the same time. The file that is shared between the python processes is an ini file and is accessed through ConfigObj module. The first python …

Software Development microsoft-access multithreading python
Member Avatar for ktsangop
0
378
Member Avatar for Prota

Hi! I am doing a project that's about inheritance and I've solved the most of it. I have some problems with removing a vehicle (car or motorcycle) because they have different characteristics. A car has these characteristics: brand, age, regNr, price, fuel, size A motorcycle has these characteristics: brand, age, …

Software Development c++
Member Avatar for Prota
0
110
Member Avatar for ferenczi

Hello, (this is not a homework). So, I've created a graph as adjacency lists: [CODE] class Edge; class Vertex { public: Vertex* vNext; Edge* adjList; char FirstElement; bool marked; Vertex(char a) : FirstElement(a), vNext(NULL), adjList(NULL), marked(false) { } }; class Edge { public: Edge* eNext; int weight; char SecondElement; bool …

Software Development c++
Member Avatar for daviddoria
0
376
Member Avatar for Rated X

I am working on a web browser for fun and to get a little more acquainted with VB. I felt lost during school this past year and wanted to do something that sounded like fun. Ok, enough of that. When I put in my code to just press enter after …

Software Development vb.net web-browser
Member Avatar for Rated X
0
169
Member Avatar for Kshitija R Naik

hi! i am a final year student could you tell me which topics i can make a project on

Software Development vb.net
Member Avatar for meffe
0
128
Member Avatar for SweetDeath

Hello there, so i have this current project for school and i`m kinda stuck the program i`m suppose to write is this : __________________________________________________ ____ Each year many tourist visit our country please write a program that collect the following information: Name(first,middle,last) sex country age profession Also the program shoud …

Software Development c++
Member Avatar for SweetDeath
0
115
Member Avatar for roxanna_

Hi all, I want to create a function in c# which receives a paramater (name of a field from a table in oracle) The function will have to return the distinct values of the specific field.I don't know how to insert the parameter into the [I]select distinct(parameter) from table [/I] …

Software Development oracle sql
Member Avatar for roxanna_
0
126
Member Avatar for Daffodil_Thursday

Hi, New to Java & hoping you can help me with an error message I am getting. The compiler says "Cannot find symbol - variable evt" for the first line of the below code. [CODE]if (evt.target==calc) { clickedCalc(); return true; } else return super.action(evt,obj); for(int i=0;i<12;i++) result[i].setText(" "); // clear …

Software Development java
Member Avatar for Daffodil_Thursday
0
483
Member Avatar for Veli Atci

Hi, I am having "Out Of Memory" problem with my program.I am using Borland C++ 5.0. I have an MySQL type database and trying to access one of its tables.The table which I am trying to access (activate) is around 450 Mbyte.Here is my sample code which gives error: [code] …

Software Development c++
Member Avatar for Gandharv04
0
226
Member Avatar for Aldius

Hello all, I'm somewhat new to programming but I had a quick question. I have created a program to take a text file and convert it into a datatable. Unfortunately, however, I seem unable to attach this file to a database. I am getting an invalid object error stating that …

Software Development dataset vb.net
Member Avatar for detoxx
0
123
Member Avatar for ErlendHL

Hi! I am new to Python. How to print number+string+array?

Software Development python
Member Avatar for ErlendHL
0
154
Member Avatar for tenix

Hi, Is it possible to read a file only to get the first 100 bytes from the begining and the last 100 bytes at the end? I have to get info from files that are in the first 100 bytes and in the last 100 bytes of the file and …

Software Development c
Member Avatar for tenix
0
8K
Member Avatar for Medalgod

I am relitively new to C#. On thursday I started out writing a Tic-tac-toe game. Just a basic gridbuilder, ask the user where they want to go, alternate the users, as player2 where he wabts to go (checking if the move is 'legal'). I've just kept adding to it... This …

Software Development legal
Member Avatar for amir pr
0
1K
Member Avatar for tskellyfla

Hi, I'm a student learning to code in C. This is what I have only when I compile it, gcc, I get two error messages and I don't understnd why. The messages are '67: error: expected declaration or statement at end of input' and '67: error: control reaaches end of …

Software Development c
Member Avatar for Aia
0
266
Member Avatar for jemz

hello can you please help me how do i put checkbox in my ms access..or how to code this in my program hoping for your positive responds...thank you in advance

Software Development visual-basic
Member Avatar for jemz
0
130
Member Avatar for vsagarmb

<code=python> >>>f = file("sendBuffer.dat","rb") >>> f.read() '\x81x\x00>\x00\x02\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00A .\x00\x10aG\xce\x00 \x00\x00\x00\x00\x00\x00\x00\x01\xcd\xccL@\x00\x00\x00\x00\x00\x00\x00\x00\x00\x 00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00' >>> text = f.read() >>> print text </code> In the above code f.read() prints the data, but when i say print text or print length of text it returns NULL and zero respectively. Any Ideas?

Software Development file-system python
Member Avatar for vsagarmb
0
89
Member Avatar for joewinsock

I'm having trouble with this code its part of a birthday profile for class everything else works but this date.cpp file....looked all throughout forms but can't find this particular one..Please help [code] #include "stdafx.h" #include "date.h" #include <string> using std::string; class TestBirthday { public: static void main() { int num; …

Software Development c++
Member Avatar for joewinsock
0
110
Member Avatar for Kingcoder210

Hi everyone! I am a junior database programmer. I need to know how can I save image in SQL SERVER 2000 by VB.NET? I made a table in SQL SERVER with two fields. One is Id[nvarchar] & another pic[nvarchar]. I got two forms there in VB.NET project. In the first …

Software Development client-server image sql vb.net
Member Avatar for Teme64
0
3K
Member Avatar for thepussy

[code] import java.util.Random; import java.util.Scanner; public class AssignmentMenu { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int loop = 0; String randomLetters[] = { "a", "b" , "c", "e" , "d" ,"f" , "g" , "h ", "i", "j" , "k" , "l" , "m" , …

Software Development java
Member Avatar for thepussy
0
149
Member Avatar for lllllIllIlllI

I am currently doing a project where i am using C# and databases. I am using visual C# 2008 and i am having issues accessing the tables that i made. So what i have done is that i have a couple of tables, one with students in it, another with …

Software Development c# sql
Member Avatar for kvprajapati
0
217
Member Avatar for AcidG3rm5

Hi all, i'm doing a AES encryption with a library found on sunjava. There is a small problem i hit while making a test. Firstly i used "nv3456789123456o" as my key to encrypt. However, for testing purpose, i'm trying to use a different key to decrypt the message to see …

Software Development algorithm encryption java
Member Avatar for jwenting
0
669
Member Avatar for k1robert

I'm struggling on this on and would appreciate any help I can get. I have a huge text file which has about 4000 records. If I open the text file using Programmers File editor I can see that there are page breaks ( chr(12)) between each record. What I need …

Software Development
Member Avatar for thines01
0
195
Member Avatar for MrDiaz

Hi folks, I've been trying to solve this but I keep hitting a brick wall. Here's what I am trying to do: I'm reading a file with text in it, I am storing every letter of this file as an element of this array (this part is already done) and …

Software Development c
Member Avatar for Ral78
0
103
Member Avatar for ceyesuma

Hello There is no error and no table. Could someone find the missing code needed to render the table? How do I Verify that outocommit is OFF? output: [code] in personalDataTable: Supports Scroll headers: ADMIN_UID headers: ADMIN_PASSWORD headers: ADMIN_LNAME headers: ADMIN_MNAME headers: ADMIN_FNAME headers: ADMIN_GENDER headers: ADMIN_AGE headers: ADMIN_START_DATE headers: …

Software Development java
Member Avatar for ceyesuma
0
116
Member Avatar for Serrafine

I've looked over the forums but I can't find anything to help me. I've tried out some of the code but I still end up with a blank image. What I'm trying to do is allow the user to draw an image in a JPanel and then I want to …

Software Development image java
Member Avatar for Ezzaral
0
2K
Member Avatar for ceyesuma

Hello I am using : [icode] conn = ddf.getConnection(); setConn(conn); ps = (PreparedStatement) conn.prepareStatement( ModelUtils.getXMLResource("selectAdmin"),ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY); ps.setString(1, thisUser); rs = ps.executeQuery(); [/icode] and [icode] public int getRowCount() { try { rs.last(); return rs.getRow(); } catch (SQLException ex) { Logger.getLogger(AdminPanel.class.getName()).log(Level.SEVERE, null, ex); ex.printStackTrace(); return 0; } } [/icode] and it is …

Software Development apache java
Member Avatar for ceyesuma
0
262
Member Avatar for historysav

Hi....I am very new in perl and maybe My question can be very simple...I created hash of hash and I filled it.. But I cannot access any element of it...This is a part of my code;; %doclen=($putword=>{id => $words[2]}); Can somebody write any sentensize to access any element of ths …

Software Development perl
Member Avatar for mitchems
0
89
Member Avatar for niall_heavey

Hi all, I'm very new to perl but I will try to explain where I am at the moment. I have a lot of information in a .csv file. The 2nd columb has different values relating to different things. For example "no" = nokia, "se" = sony ericsson, "ip" = …

Software Development iphone perl
Member Avatar for mitchems
0
108
Member Avatar for tenix

Hi, I am total new in C. I have an array, then i loop it to get array elements. How can i add this array element into existing array? thank! [CODE] char arr[] = {1}; for (int i = 0; i < sizeof(arr)/sizeof(arr[0]); i++ ) { something happend here = …

Software Development c
Member Avatar for tenix
0
16K
Member Avatar for vanalex

Hello everybody! I have a little problem in a piece of code that seems quite simple. This piece of code reads float numbers till the user hits the number -999.9. When he/she does then the program ends. So i write [code=c]float n; scanf("%d", &n); while (n != -999.9) { i++; …

Software Development c
Member Avatar for Tellalca
0
107
Member Avatar for Ap0ca1ypse

Hello All, i am after a little information on a query i have. I have three forms that are fairly similar in the process that they take, the only difference is an extra textbox and different SQL DB Updates. so what i plan to do is merge all three forms …

Software Development
Member Avatar for finito
0
170
Member Avatar for perroned

hi im trying to make a tic-tac-toe game in c++ im using a 2-d array of chars to tell if there is an x, 0, or null i wanted to make a procedure i can keep calling every time i need to display the grid however i keep getting this …

Software Development c++
Member Avatar for perroned
0
299
Member Avatar for Ancalime

I triying to write a program with array and functions. But it's realy hard to solve it with my restricted knowledge. Help me please. The problem is: Write a program where a user can insert integers to an array, find an integer (i.e. find the index of an integer previously …

Software Development c
Member Avatar for Aia
0
168
Member Avatar for SacredFootball

Hey all! I'm trying to figure out how to check if an element already exists in a vector. EXAMPLE: Elements in the vector are: "Dog", "Cat", "Fish", "Bird" If a user tries to add (case ignored) "Dog", "dog" or any other variation, I want it to spit out and error …

Software Development c++
Member Avatar for Narue
0
2K
Member Avatar for valorien

Hi Everyone :cool: What is the best way to represent, modify, and perform calculations with hexadecimal values (for instance, byte addresses) in Python? It seems every time I play with hex numbers, I'm always getting the result as a string or regular int type. case in point: Let's say I …

Software Development python
Member Avatar for Gribouillis
0
14K
Member Avatar for hadoque

Hi i'm totally new to python and I'm trying to make an easy GUI with tkinter that should take a name of a textfile in an entry widget, and when you click a button the text in the entry should be passed to a function handling the file. This is …

Software Development gui python tkinter
Member Avatar for hadoque
0
472
Member Avatar for DanJack90210

Hey everyone, I am writing a Java program and I want to present the user with a settings window when they run a function in the main GUI so they can set the parameters which are used in the function. Ideally what I would like to do in the main …

Software Development gui java
Member Avatar for DanJack90210
0
218
Member Avatar for StuartMillner

I have recently been experimenting wih an AIML bot (located here, it's open source: [url]http://ntoll.org/article/project-an-aiml-chatterbot-in-c[/url]). The link to the documentation is broken however, so I am having a lot of difficulty trying to get it to run. Currently the bot is reading and loading all the necessary .xml files to …

Software Development open-source xml
Member Avatar for StuartMillner
0
294
Member Avatar for amare_de

Hello: Am getting confused about making a 2 dimensional array of pointers allocate storage space dynamically in C++. Actually I just want the second dimension of the array to be dynamic in size. For e.g. a simpler version of what I want to do would be: Instead of, [code=c] int …

Software Development c++ storage
Member Avatar for amare_de
0
193
Member Avatar for bmb11

Hello, I am trying to build a gui with two textfields, a textarea, and a few buttons. The two textfields are for the user to enter in random numbers (one number in each textfield). I then want the person to be able to hit a button that will then take …

Software Development gui java
Member Avatar for bmb11
0
191
Member Avatar for ce0

hello all i have a problem with a "while condition" useing c. my assignment was to create a dynamical array, using malloc. i did that and all worked as it should. the only thing i dont like,is when it asks you if you want to continue, putting in integer. you …

Software Development c
Member Avatar for Tellalca
0
4K
Member Avatar for aaronmk2

The if statment I am using in my main program is not working, it should return the else value, but is returning the information in the if part of the statment and then it causes a run time error. I am not sure what is going wrong. [CODE] que1.add("Fish"); que1.add("Whale"); …

Software Development c++
Member Avatar for mbulow
0
136
Member Avatar for alonso_siang

hi i am very new here i doing a window app using vs2005 to download file using FTP to my c drive it have no error when i run it in window xp but when i test it in vista i facing a problem stating access to path "c:\program file\...." …

Software Development vb.net
Member Avatar for vbdotnettut
0
108

The End.