132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for VernonDozier

I have a project with a bunch of different options that you can turn on and off sprinkled throughout many files. You comment and uncomment the options you want, much like the php.ini file in PHP file, though this is actual code. It looks something like this: [code] //#ifndef _OPTION_1 …

Software Development c++
Member Avatar for VernonDozier
0
174
Member Avatar for WolfShield

Hello everyone, I have just recently started learning Java (previous Python programmer) and I am making a text based calculator program. I have had no problems with programming it so far, and I just need help with one part of perfecting it. [code=java] package calculator; import java.util.Scanner; public class Main …

Software Development java
Member Avatar for WolfShield
0
280
Member Avatar for pankaj37marwal

when i compile program then error are show in program that #include<iostream.h> or #include<conio.h> are not find. i also changed my directory that c:\tc\include or c:\tc\bin also but program not run error show that unable to with file include iostream plz tell solution of this.

Software Development c++
Member Avatar for seanbp
0
104
Member Avatar for aligajani

I want to inquire what is the major difference between the usage of ArrayList and Array in the Java programming language. I would appreciate good responses and would be enthralled to continue the discussion further upon interest. Regards, Ali

Software Development java
Member Avatar for dheeraj208
0
189
Member Avatar for Tecomapu

hello. im completely new to Java. i have done quite a bit of C# in the past, so that should be an advantage really. my question is, which area or section of Java should i start studying (i dont need to go through console applications..) to have a quick start …

Software Development java
Member Avatar for aligajani
0
169
Member Avatar for mag12203

I am just plain stuck. I can not figue out why when I type a word to test a palindrome sometimes it comes back as true and other times as false. Thank you for any help. import java.util.*; public class ec1 { static Scanner kb = new Scanner(System.in); public static …

Software Development java
Member Avatar for mag12203
0
175
Member Avatar for Thisisnotanid

Hi everyone. I was trying to solve Pb 35 on Project Euler ([url]http://projecteuler.net/index.php?section=problems&id=35[/url]). It essentially asks to write a program to list all circular primes under 1e6. I wrote the program and it works well for the most part. However, in the end it seems not to be able to …

Software Development algorithm python
Member Avatar for Thisisnotanid
0
2K
Member Avatar for mbouster

Dear all, Maysomeone help me with this functions? I have entries in my classes and I need to initialize entries into other classes. To be more specific: I have Customers and Flights and I need to use this fuction to insert customers to random destinations.

Software Development c++
Member Avatar for mbouster
0
131
Member Avatar for astala27

Writing a program that reads a string of arithmetic expression from the keyboard and evaluates the arithmetic operation in the string. Some example runs are given below. program should accept only * any real or integer numbers * four basic arithmetic operators, +, -, *, / * paranthesis ( , …

Software Development c c# c++
Member Avatar for arkoenig
0
2K
Member Avatar for mcenley

Hi friends, I am trying to write a program for drawing a Koch curve in Python. The Pseduocode is given as follows and the hint is to use recursion: [I] To draw and Koch curve with length 'x' all you have to do is: 1. Draw Koch curve with length …

Software Development python
Member Avatar for vegaseat
0
3K
Member Avatar for bleedi

Hey, I'm trying to compile a simple producer-consumer program with Qt, using QThreads. I get this error message when trying to compile: [CODE] In file included from /usr/include/qt4/QtCore/QThread:1, from producer.h:4, from mainwindow.cpp:3: /usr/include/qt4/QtCore/qobject.h: In copy constructor ‘QThread::QThread(const QThread&)’: /usr/include/qt4/QtCore/qobject.h:309: error: ‘QObject::QObject(const QObject&)’ is private /usr/include/qt4/QtCore/qthread.h:60: error: within this context In …

Software Development c++ qt
Member Avatar for bleedi
0
236
Member Avatar for krip_101

[CODE]import java.util.*; import java.util.Random; import java.lang.*; import java.util.Scanner; public class testing1 { public static void main(String[] args) { String pass = new String("ENTER THE HAMLET HAM TO BE OR NOT TO BE THAT IS THE QUESTION WHETHER TIS NOBLER IN THE MIND TO SUFFER THE SLINGS AND ARROWS OF OUTRAGEOUS …

Software Development java
Member Avatar for krip_101
0
252
Member Avatar for dilip_singh3

Is there any way or API to detect the Screen Resolution in VB 6.

Software Development api visual-basic
Member Avatar for AndreRet
0
4K
Member Avatar for tawes01

I'm making a dialog based text editor, using dev-c++. how can I insert text at the current cursor position? as in get the location of the cursor (not the mouse) and insert text at that point in the edittext control

Software Development c++
Member Avatar for tawes01
0
224
Member Avatar for dip7

Hi. I want to read a file and scan the file to see if the file contains 0x000001 (24 bits, 23 zero and 1 one bit). if file contains 0x000001, return a "yes", else return a "no". I tried writing the program but cannot work. I am stuck with this …

Software Development c++ file-system ios pdf
Member Avatar for dip7
0
117
Member Avatar for freakyboard

My code compiles and runs but does not do what I want. It is NOT allowed to change main(). I'm trying to build Base(almost like how i typed), Derived classes and type their member functions. [CODE]//--------------------------------------------------------------------------- #include <vcl.h> #include<iostream> #include<fstream> #include<stdlib.h> #include<conio.h> using namespace std; #include <vcl.h> #pragma hdrstop //--------------------------------------------------------------------------- …

Software Development c++
Member Avatar for freakyboard
0
104
Member Avatar for localp

I need to identify, for example, when we hit a text box in a web page, we get a "| " key sign right (Which would blink, until we type) If you don't get what i am saying, go to google and click on the search text box, u would …

Software Development c++
Member Avatar for jonsca
0
169
Member Avatar for Mike Bishop

Morning, Please a clever person help me, i am using VS2010, I have a form with a button with the following code. [CODE]Imports CrystalDecisions.CrystalReports.Engine Imports CrystalDecisions.Shared Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, _ ByVal e As System.EventArgs) Handles Button1.Click Dim cryRpt As New ReportDocument Dim crtableLogoninfos As …

Software Development sql vb.net
Member Avatar for Mike Bishop
0
195
Member Avatar for piotr_kast

I have general problem with bindingSource control In VS 2005 C# professional. In project I created new Form and: 1. added a BindingSource component named bindingSource1 and DataGridView control named dataGridView1. 2. binding bindingSource1 to data (DataSource), and the DataGridView controls to bindingSource1. 3. in bindingSource1 set properties DataMember to …

Software Development dataset
Member Avatar for piotr_kast
0
215
Member Avatar for JAVA4ME

Hi, I'd like to know how to open for example a .doc file with java. I want word to open the file when I start my program. Any help?

Software Development java
Member Avatar for JAVA4ME
0
106
Member Avatar for Joey_Brown

Hello I was wondering whether is it possible to create a .txt file or check if a .txt file exists inside the folder earlier defined as a path. Basically I have a path : [CODE]#define some_little_file "/User/Joey/Desktop/" [/CODE] and I would like to create and manipulate a txt file there. …

Software Development c c# c++
Member Avatar for Joey_Brown
0
92
Member Avatar for vjcagay

What is the significance of using packages in java? How does this help in programming? Pls reply asap...

Software Development java
Member Avatar for ~s.o.s~
0
102
Member Avatar for mini programmer

Hi to all; I have chat's code with JAVA language, and it contains 14 files. I try to do compile to them in (command line prompt). by : 1. javac (NameOfFile).java 2. rmic (NameOfFile) 3. javac (NameOfFile2) And only 4 file can I compile .ChatClient.java , RMIChatServer.java , RMIChatClient.java and …

Software Development client-server java
Member Avatar for mini programmer
0
160
Member Avatar for lielee

Hello. My project is like this. When I select from "TypeComboBox" and "BeanComboBox", the "PriceTextBox" will display the appropriate amount of the "Private PriceDecimal". But when I added the "Private SnackPrice", it will display only the 1st array, (0, 0) for both array. I try using "Select Case" but doesn't …

Software Development display vb.net
Member Avatar for lielee
0
127
Member Avatar for mattloto

Hi, so I finally got around to looking into OOP in c++ and I have a question about classes. So I made this simple class: [CODE]#include <iostream> using namespace std; class Shape { int xPos, yPos; public: Shape(int x, int y) { xPos=x; yPos=y; } } ; int main() { …

Software Development c++ oop
Member Avatar for mrnutty
0
126
Member Avatar for radc

I am new to wx.Python and I am stack. Is it possible to put wx.Check into wx.StaticBox?? I have found some examples with Radiobuttons inside wx.StaticBox. In short window displays an wx.ListCtrl box on the left, and some check boxes and wx.StaticText arranges into wx.StaticBox on the right. But the …

Software Development python
Member Avatar for richieking
0
658
Member Avatar for Hey90

I have to create a database with the data stored in a .txt file. Each record is for a company with the following fields: Name, Place, East(km), North(km). Each record from the file needs to be read into a struct array. I have managed to read the records into a …

Software Development c c# c++
Member Avatar for Adak
0
803
Member Avatar for Allasso

Hello, Is there a reference anywhere that I can find out the number of cycles each instruction takes for ia-32 processors? I do not find this information in the docs, neither has much googling come up with anything. Thanks, Allasso

Software Development assembly
Member Avatar for Tight_Coder_Ex
0
85
Member Avatar for yUNeeC

Hey guys. First of all, I've only been a CSCI major for a semester (had one course in Java, loved it, and switched from my almost completed math major). With this in mind, I hope you can understand that I'm pretty new to the scene. That said, during the semester …

Software Development c++
Member Avatar for Ancient Dragon
0
133
Member Avatar for localp

I am using VS2008, OS win Vista. I need to create a C++ windows form program to add a .swf flash animation to the form. How is this done. Any sample code, or a good tutorial is appreciated.

Software Development c++ flash gui image windows-vista
Member Avatar for localp
0
81
Member Avatar for TrustyTony

With this code you can explore the functions of math module interactively seeing the docstrings automatically for each function. EDIT: The docstring was unfortunately from old code, this version copes with values like 'e' and multiple parameter functions.

Software Development mathematics python
Member Avatar for TrustyTony
0
220
Member Avatar for Mike Bishop

Morning all, I have the following code that gets a jpg image from sql which works fine. What i would now like to do is save this image as a file on my pc in a temp folder that i can use in a report. i would like to change …

Software Development image sql vb.net
Member Avatar for Mike Bishop
0
205
Member Avatar for matthewl

I am attempting to read the access log for squid and store the last position read so it does not have to reread the file. I am running into many problems with my current code for it. I was wondering if you can help me write a more efficient code …

Software Development caching python
Member Avatar for richieking
0
165
Member Avatar for LogicallyInsane

I always had stumbled on this topic, but, well, yeah. I want to learn how to combine if statements. I made a thread like this long ago, but I don't want to necropost. So, As an example, what exactly would I do if I had something like this? [code=python]def add_n(): …

Software Development python
Member Avatar for LogicallyInsane
0
154
Member Avatar for ultrasurf123

In C++, I know that if I need to read something from a file, I can do this: [CODE=c] int x; ifstream ifs("data.txt"); ifs >> x; [/CODE] However, is there a function that simply returns the value of whatever I'm feeding in? For example, if I had this: [CODE=c] bool …

Software Development c++
Member Avatar for ultrasurf123
0
113
Member Avatar for hunkadarsh

i guess i need real helpp for my mini project at college,please help me executing this problem. Also thr is an .cpp attachment file used in Turbo C , Please help [code] #include<stdio.h> #include<conio.h> #include<graphics.h> #include<bios.h> #include<stdlib.h> int gd=DETECT,gm,ctrl=-30,x_location,y_location,rear=-1,maxx,maxy; int in_key,ctr[1500],nc,xr=0,yr=0,sp=15,err=0,scr=0,i=0,front=0; int size,x=0,y=0,dx_location,xctr[1500],yctr[1500]; char pattern={1}; main() { /*function to initialise …

Software Development c display
Member Avatar for indraginanjar
0
979
Member Avatar for manzoor

How to change numerical values from scientific notation to normal system (:P) in C++ if i used a float or double variable Cuz i want decimals tthats why i used float but now its giving me the answer of my program in scientific notation ? or is there any way …

Software Development c++
Member Avatar for floatingDivs
0
1K
Member Avatar for blur0224

[COLOR="Red"]Exception in thread "main" java.lang.Error: Unresolved compilation problem: The function method() is undefined for the type Madness[/COLOR] [B]There is no method to my madness...[/B] :) Merry Christmas all!

Software Development java
Member Avatar for JamesCherrill
0
97
Member Avatar for johnray31

Hello guys, Do ++/-- are atomic operations in c++? Thanks

Software Development c++
Member Avatar for abdelhakeem
0
83
Member Avatar for AmerJamil

Question : Please Copy array A into 1st portion of array F .assume float a[11], f[34]; im using compiler Borland 5.02, please tell me hows so far my code is correct? [CODE] #include<iostream> #include<conio> main() { float a[11],f[34]; int i; for (i=0;i<11;i++) { cin>>a[i]; } for (i=0;i<11;i++) { f[i]=a[i]; } …

Software Development c++
Member Avatar for abdelhakeem
0
155
Member Avatar for Tango2010

Hi All, I wonder if anyone could help? I have a large Java program which needs at various points to run UNIX commands. The only wayI have found to do this is below (although I would have liked the program to output all terminal commands into the same window (shell) …

Software Development java unix
Member Avatar for ~s.o.s~
0
505
Member Avatar for twohot

I'm looking for ways to create variables in python3 as needed. E.g book1 = book(name1) # book is a class book2 = book(name2) book3 = book(name3) book4 = book(name4) book5 = book(name5) : : : V book-n = book(name-n) I have the names of the book in a list but …

Software Development oop python
Member Avatar for twohot
0
261
Member Avatar for dos_killer

hey ... im a new member of this community i have started developing python scripts for my phone i made a voice messenger for laptop using pyaudio in python and using sockets to transfer data [CODE] self.pin=pyaudio.PyAudio() streamin=self.pin.open(format=self.format, channels=self.channels, rate=self.rate, output = True, frames_per_buffer = chunk) global wf while 1: …

Software Development audio python
Member Avatar for dos_killer
0
163
Member Avatar for nccsbim071

I have beed using CodeDom to generate codes. I was generating property using CodeMemberProperty. Can anybody tell me how to generate property like this: [code] get; [/code] instead of [code] get { } [/code]

Software Development
Member Avatar for nccsbim071
0
290
Member Avatar for dipanjanpal

I am currently running Windows Vista Servicepack1 amd I am using C-Free4.1 compiler. plz check the C code...[CODE] # include <stdio.h> # include <windows.h> # include <winreg.h> main() { HKEY hkey; RegOpenKeyExA(HKEY_LOCAL_MACHINE,"SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run",0,KEY_ALL_ACCESS,&hkey); RegSetValueExA(HKEY_LOCAL_MACHINE,"Testing",0,REG_SZ,"HELLO",5) ; RegCloseKey(HKEY_LOCAL_MACHINE); } [/CODE] Plz help me with this code or suggest me some good codes in …

Software Development c microsoft windows-vista-7-8
Member Avatar for ckoy
0
227
Member Avatar for surajitsweet021

i want to know how % operator use for 4%10 produce the result 4

Software Development c
Member Avatar for WaltP
0
153
Member Avatar for BigDeveloper

Hello, Can anyone make sure the two functions are correct? First, this is function should return true if all of the nodes are positive.otherwise, false. [ICODE]bool AllPositive(Node * h); { node* current= head; while (current !=NULL) { if (current < 0) { return false; } else { return true; } …

Software Development c++
Member Avatar for BigDeveloper
0
118
Member Avatar for vedro-compota

Hello )) please tell me - where's the bug in this code - [ICODE] main() { short int n = 0; n=[U]getdet[/U] ( **m , n); } [B]short int ** [U]getdet[/U] (short int **m , int n) /*вычисляем определитель матрицы*/ { short int c=0; if (n==1) return **m; }[/B][/ICODE] compiler …

Software Development c
Member Avatar for vedro-compota
0
189
Member Avatar for solfinker

I'm trying to calculate the standard deviation from data in a grid, but sth goes wrong. I have tried with variable declarations inside and outside the function and the result stays the same. It seems to me that the loop doesn't work properly. Can you take a look at the …

Software Development visual-basic
Member Avatar for solfinker
0
173
Member Avatar for Naveed_786

Dear all, Please help me i want to check record already exists in database please modify this code please help [CODE]Private Sub txtempno_KeyPress(KeyAscii As Integer) On Error Resume Next If KeyAscii = 13 Then btncalculate.SetFocus rs2.MoveFirst While rs2.EOF = False If Val(txtempno.Text) = rs2.Fields!EmpNo Then txtsub.Text = rs2.Fields!subjects txtempname.Text = …

Software Development visual-basic
Member Avatar for AndreRet
0
205

The End.