132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for morrigan.c

I'm a newbie, and...cannot find the answer on the Web. If you want to use the OR operator in Java, "||", how can you type it so the compiler will accept it? The character "|" on the same key with the backslash ("\") looks like it should be the right …

Software Development java
Member Avatar for morrigan.c
0
317
Member Avatar for tcotto

Hi I've been taking a python course and now that were done the professor wants us to write a program to list all the prime numbers from 2 - 10000. Oh yea and it has to be in C. So I am very stuck and really need help. Heres the …

Software Development c
Member Avatar for 0x69
0
104
Member Avatar for bigsurya

I've written this code to obtain an alternate display of '|' and '\*' starting with '|'. To ensure the altering of o/p I've used the yield(). But this doesn't seem to serve the purpose. Can someone point out where have I gone wrong ? import java.util.*; class Pat extends Thread …

Software Development java
Member Avatar for phriendtj
0
123
Member Avatar for SteveyD

Hello I'm stuck on a CS1501 compile error for this line value = PortAccess.Out(PortNum + 1); its supposed to change the Port from 888 to 889 Am I over complicating it? It's late, I can no longer see the forest for all these trees.. =P [CODE] public bool inportbit() // …

Software Development
Member Avatar for SteveyD
0
122
Member Avatar for barevhayerable

Hello everybody, is there somebody that can help?? I'm having string (my example in string 55+22)that must be inputed by keyboard .. the first part I've done to put 55 to another array 2(with strtok function) Now that I was tries for many hours to put 22 to an other …

Software Development c
Member Avatar for abhimanipal
0
385
Member Avatar for brightsolar

Hi everybody have not posted in a while. In all truth i am stuck but very close to finding the collision answer. Note 1 (Most of this skelton was premade for the assignment). Some variables i don;t even know what they do like Vy1. Incx, Incy. Stuff like the file …

Software Development app-store c++ file-stream ios opengl qt
Member Avatar for 0x69
0
205
Member Avatar for obeem

Hello guys, I'm trying to get this employee class to work correctly and everything seems to be fine, up until the part comes where it should output all of the information (such as hours worked, hourly pay rate, gross pay, tax amount, and net pay). My program allows me to …

Software Development c++
Member Avatar for abhimanipal
0
268
Member Avatar for Martje

I am trying to make a list of array pointers, Is there a way that after declaring an array i can adjust the size? For example at start i create a array called : "list[2]" Is there a way that later on i can change "list[2]" and make it "list[3]" …

Software Development c++
Member Avatar for VernonDozier
0
173
Member Avatar for xofth

I have problem in reqruired output [B]the input is[/B] 333-0092-8868389 [B]required output is[/B] Country code is = 0092 City code is = 333 7-digit number is = 8868389 Phone number in correct sequence is = 0092-333-8868389 The full code is [CODE] #include<iostream.h> #include<conio.h> #include<string.h> #include<stdio.h> void main() { [COLOR="Red"]char ch,*str,*country,*city,*digit;[/COLOR] …

Software Development c++
Member Avatar for abhimanipal
0
109
Member Avatar for dinesh.isuranga

i'm a C# developer and new to C++. I have to learn about C++ due to my new Project. but no clear idea about Pointers.. therefore if someone who know about Pointers,please teach me them..

Software Development c c# c++
Member Avatar for abhimanipal
0
82
Member Avatar for ceyesuma

Hello Could someone tell me if this code is even close to code for a login using a DAO and an embeded db? if not there is a proceedure losted below that I really don't understand the '?' and how to use the uid to query the db [b]specific question[/b] …

Software Development apache java user-interface xml
Member Avatar for ceyesuma
0
381
Member Avatar for sush27

Hi, all i have to make an application in which there is requirement to hide a cursor when a event is generated and cursor enters a panel, and if the mouse is clicked in the panel, the cursor has to be show again. But i am unable to do this. …

Software Development
Member Avatar for finito
0
186
Member Avatar for mmgoicochea

So heres a portion of my program... the program has several functions (each doing diff. things) Im having a problem I can not find the way to write the sum of the third row in costOfSports array. the book says something like this: for(col=0;col<5;col++) { for(row=0;row<3;row++) { row_sum[row]=array[row][col]; } } …

Software Development c++
Member Avatar for trillionaire
0
116
Member Avatar for purvi12345

it prints the integer string b.var CORRECTLY.BUT not it's individual integer constants.....WHY? (ABCD.TXT is a bin text file containing data 10110000)[code]#include<stdio.h> #include<conio.h> #include<string.h> #include<stdlib.h> struct st { int var[8]; }; struct str2 { char a1; float a2; int a3; int a4; char a5; char a6; int a7; char a8; }; …

Software Development c
Member Avatar for abhimanipal
0
154
Member Avatar for jeeter19

Hi, I'd like to copy one directory to another, including subdirectories. Each file that is copied over needs to have its own thread and each following thread must wait for the previous one to finish and exit before being created. The directory names are passed in *arg separated by a …

Software Development c
Member Avatar for abhimanipal
0
111
Member Avatar for Illidanek

Ok so i have been looking this up on the internet but all the stuff i've been finding has been for other stuff or worked in a different way than i wanted it to. So what i need is a Filetype filter for a FileDialog (not a JFileDialog or anything). …

Software Development file-system java
Member Avatar for masijade
0
1K
Member Avatar for agent154

I'm writing a replacement to the windows event viewer, and as such, I require my program to start with admin privileges by default. Yes, I could run it without admin privileges and then have it elevate as required, but that could get very annoying very fast as the security log …

Software Development
Member Avatar for sknake
0
1K
Member Avatar for HappyMe

I'm using verion 3.5 of the .NET framework I have a form with a number of controls including text boxes. All my text boxes are named in the style txb_name, can I search for controls with txb in their name? The following code doesn't work: [code] For Each tb As …

Software Development vb.net
Member Avatar for HappyMe
0
76
Member Avatar for Aeronobe

I want to test if a value is a key from a dictionary, i do this like so: [ICODE] if value in dict: print "value found" else: print "value not found" [/ICODE] Now this doesn't work if value = "abcd" and the key in the dictionary is "Abcd"... How do …

Software Development python
Member Avatar for Aeronobe
0
112
Member Avatar for Donnovan

hi everyone, i have a constructor like this, [CODE] CStack(int n) { bottom_ = new char[n]; top_ = bottom_; size_ = n; } [/CODE] In my main class i call the constructor by creating a[CODE] CStack(5); // bottom_ = new char [5]; [/CODE] my question is can increment the size …

Software Development c++
Member Avatar for Sky Diploma
0
110
Member Avatar for citizenjawahar

Hi, Could someone please share your idea on how to write a simple Hello World Boot Loader. I have been using OpenSuse Linux and and x86. I was able to write a single letter using the corresponding Ascii key. What about a string? Thanks, Citizen.

Software Development assembly
Member Avatar for magnuss6
0
534
Member Avatar for vandalised

Hi everyone. Basically i'm very new to python and i'm trying to learn it at a fairly fast pace. One of the books i am using is comparing for and while loops, showing how while loops are more flexible than for loops but more complicated. Anyway to the point.. In …

Software Development python
Member Avatar for HiHe
0
108
Member Avatar for Exaktor

Hi, I am doing an inventory program for auto parts. I wonder if anyone here have done an inventory program in C#. If you have could you please give me the project? It doesn't have to be inventory program it is also okay if it is another program but uses …

Software Development
Member Avatar for finito
0
135
Member Avatar for newbrobo

I have a hp mini linux, ubuntu 08.04. Of course I couldn't resist temptation for the 10.04, that I upgraded following ubuntu geek forums. I got lost in limbo somewhere when I couldn't figure what i was to follow! It is a netbook and I have 10.04 but, have an …

Software Development machine-learning shell-scripting ubuntu
Member Avatar for finito
0
137
Member Avatar for PEFCa

If I had 5 text boxes on a form, TextBox1...TextBox5, is there a method to do something like this? [code] Dim strFld As String For intFor = 1 to 5 strFld = "TextBox" & intFor Me(strFld).Text = intFor Next [/code] It doesn't like the line of Me(strFld) but I figure …

Software Development vb.net
Member Avatar for kvprajapati
0
154
Member Avatar for juniorj

i want to display a selected record from my database to the data report in VB6. i used the foll. code, where cuno is the value of a textbox. i m passing the value of cuno through a module. SELECT * FROM Bill WHERE ID=cuno but when i run it, …

Software Development display sql visual-basic
Member Avatar for vb5prgrmr
0
2K
Member Avatar for delizihin

I'm trying to create a messenger-like program, which user will enter an IP adress and connect to another user and send messages with a send button, and receive and view messages at a textbox. But my problem: "The target machine actively refused". I'm trying to connect myself for testing using …

Software Development dns vb.net
Member Avatar for kvprajapati
0
275
Member Avatar for Bashir ahmad

i enter 3 identical records in an sql database table. Normally this should not have happened and the dbms is to check for identical records. Now when i try to delete or update any record, an error message is displayed and the record is neither deleted nor updated. any help …

Software Development sql visual-basic
Member Avatar for vb5prgrmr
0
110
Member Avatar for srikanth2321

Hi all, I now have a very serious problem. I have a table that have to show in different datagridviews which are generated dynamically. The table looks like this C_id formula systemid mass user time 1 c6h6 1 23 s 00:99 2 c3h4 2 22 g 09:08 3 c7h8 1 …

Software Development
Member Avatar for srikanth2321
0
113
Member Avatar for Big-D2xL

Hello y'all. Here's the thing I'm not the brightest guy when it comes to vb.net but I'll do somethings. My question/problem is that I want to have a little zone in my program that has a kind of list , e.g. a panel with 100x50 with a scroll and inside …

Software Development vb.net
Member Avatar for Big-D2xL
0
92
Member Avatar for notuserfriendly

I am coding 2 dynamic arrays. basically ive done the first part which requires the user to enter rows and columns, i also implemented the functions to print and fill the created arrays. now the next task is to create a SINGLE dimensional array with enough size to fit the …

Software Development c
Member Avatar for notuserfriendly
0
383
Member Avatar for aether1

Hi, I am developing an app with a Tab control (5 tab pages). On one of the tab pages I need a method to run upon clicking on the tab or entering the tab page. I have tried the following this.tabPage2.Click += new System.EventHandler(this.tabPage2_Click); also have tried: this.tabPage2.Enter += new …

Software Development
Member Avatar for kvprajapati
0
96
Member Avatar for MattBerry

Guys I hope you can help me as this is driving me mad. I have written an installer. This installer installs a service. If I release an upgrade to my app, the installer is meant to overwrite the existing files. What I have done is check to see if the …

Software Development
Member Avatar for kvprajapati
0
216
Member Avatar for rickymak

Why is it that in this statement "c = '\t'" is not "c == '\t'" (an additional equal sign). I read an explanation that it is because \t is a visual representation of the tab character. Isn't \n and ' ' also visual representations of a newline and space character …

Software Development c
Member Avatar for tux4life
0
114
Member Avatar for netvigator

I am trying to post to this page and get the result: [url]https://writerep.house.gov/writerep/welcome.shtml[/url] I tried this: [code=python] import urllib import urllib2 sURL = 'https://writerep.house.gov/writerep/welcome.shtml' dInfo = { "state" : 'WAWashington', "zipcode" : '98103', "zipext" : '' } sSendData = urllib.urlencode( dInfo ) resp = urllib2.urlopen( sURL, sSendData ) [/code] I …

Software Development python
Member Avatar for Tech B
0
1K
Member Avatar for captain.don

i hv written 2 programs. "process.py" and "Reg_write_read.py". I have created the exe of both,"Reg_write_read.py" program writes a value in registry through which the process.exe(which is located in C:/) executes on computer restart. But when i Restart my computer. the "process.exe.log" error log generates that says : "Traceback (most recent …

Software Development microsoft-windows python
Member Avatar for Tech B
0
196
Member Avatar for srikar38

Hi. my name is srikar.......and my query is How to differentiate system databases and user created databases in sql server 2005??????????????

Software Development sql
Member Avatar for kvprajapati
0
142
Member Avatar for mtusk

I'm creating a program in C# using WPF that will generate a PDF of a sale sign for a retail store (just practice). Since it is a sale sign, I need the user to enter a date to represent the end of the sale. I'm using the datepicker control to …

Software Development pdf
Member Avatar for kvprajapati
0
1K
Member Avatar for pankajagar2002

Hello friends. I want to know what happen if any or all thread is in waiting condition and no notify() is called on thats thread. Please help me to solve this. Thanks in advance

Software Development java
Member Avatar for moutanna
0
92
Member Avatar for Bashir ahmad

[B]in my vb project i have a number of data reports each using a different papersize. each time, b4 opening the report, the paper size has to be set in the printer dialogue box and then the report shows correctly. otherwise the messages like "report width larger than paper width" …

Software Development printer visual-basic
Member Avatar for Bashir ahmad
0
3K
Member Avatar for centrinostyle
Member Avatar for shivNETWORK
0
77
Member Avatar for Ene Uran

This is my first experience with Python's Tkinter GUI. I want to write a program where the result of an interim calculation is displayed on a label. Later in the program I want to use this result in another calculation by simply clicking on the label. This is what I …

Software Development gui python tkinter
Member Avatar for vegaseat
0
3K
Member Avatar for Fadorn

Hi All, I am new to Java, and I can not figure out why my code will not stop to get input from the user for the second employeeName at the end of my while loop. Everything else seems to work as it should. After the first calculate is completed …

Software Development java
Member Avatar for Fadorn
0
105
Member Avatar for afireinside

So maybe this is a pretty basic question, then again I am new to python so please bear with me... I have some code, and I have a tkInter checkbox. I figured out how to get the on/off value of the check box but I dont really understand why I …

Software Development python tkinter
Member Avatar for vegaseat
0
266
Member Avatar for evak77

How do I stop this from looping over and over? [code] import java.text.DecimalFormat; import java.util.Scanner; public class Loan1 { public static void main(String[] args) { Scanner input = new Scanner(System.in); double interest; double payment; double amount; double term; DecimalFormat decimalPlaces=new DecimalFormat("0.00"); while (true) { //keep looping until we see stop …

Software Development java
Member Avatar for wildplace
0
103
Member Avatar for Hodson

I have created a very simple Tic Tac Toe game using NetBeans 6.8. Swing is used in order to create the grid. I can build and run the game with no problem. What I now want to do, is have this uploaded onto a website (along with other applications I …

Software Development file-system java java-netbeans java-swing
Member Avatar for Hodson
0
269
Member Avatar for Leppie

Yep, I'm a newbie and totally out of my depth! Playing around with the idea of a dungeon crawl but when I populate my traps into the 2d array, rand duplicates and overwrites its previous locations (for example 99 traps randomly generated into a 10 x 10 does not fill …

Software Development c++
Member Avatar for Leppie
0
115
Member Avatar for babydol

Hi i have an array [CODE]static int virtual_addr[10]= {8196,34893,38583,22883,61843,43532,333,8448,2334,9492};[/CODE] that i am trying to pass to a function [CODE]int determinePage(int virtual_addr){ int page_num; int page_size = 4096; page_num = floor(virtual_addr/page_size); return page_num; }[/CODE] however I am getting errors.Any help would be appreciated

Software Development c++
Member Avatar for WaltP
0
106
Member Avatar for jelinky

hey guys. any help would be greatly appreciated. im getting a few errors and im not sure why. HEADER FILE: [ICODE]// HEADER FILE floatlist // // INCLUSE STANDARD I/O HEADER #include <iostream> using namespace std; template <class T> class floatlist { // DECLARE PRIVATE DATA private: // // DECLARE A …

Software Development c++ linked-list
Member Avatar for WaltP
0
158
Member Avatar for jafarkottayil

i have an error when executing this ExecuteReader: CommandText property has not been initialized

Software Development vb.net
Member Avatar for kouroshnik
0
80

The End.