199,113 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for shobhit123

I had come across some strange behaviour while i was looking at some java code. These are as follows:- 1. here is the first observation The output of this is false but not [code] str1 == str2 [/code]false.can you tell me why? [code] String str1 = "shobhit"; String str2 = …

Member Avatar for masijade
0
147
Member Avatar for alajessie

I am working on an assignment for my Data Structures and Algotithms in C++ class. My program will take a user input string and determine if it is a palindrome. I have to use stacks in this program. My program compiles with no errors but the following warning is displayed: …

Member Avatar for Salem
0
5K
Member Avatar for mrjoli021

Is there a function that will remove the last 4 char of a string? trimend works but i have to specify which chars. what if i dont know what the chars will be. I still need to remove the last 4 chars. any ideas?

Member Avatar for FaridMasood
0
110
Member Avatar for pocnib

I know this is a homework question, but I have reached the end of my rope and really need guidance. I have had four years of Java programming then walked into my CS 3 class and was given an assignment in python. I have never worked in Python before but …

Member Avatar for pocnib
0
165
Member Avatar for Frederick2

I am trying to understand COM memory layout and using C++ classes just confuses me. In general I understand what is going on with the double indirection of function pointers but as so often is the case in programming one must understand the ugly details – not just the generalities. …

Member Avatar for Frederick2
0
872
Member Avatar for lvlacic

From my ASP.NET page, I need to print a Crystal Report to client's printer directly. I'm not using Crystal Report Viewer. I cannot use Crystal's PrintToPrinter method because this runs on Web Server side. How can I do this? Any help would be appriciated. I've seen a bunch of other …

Member Avatar for Kusno
0
780
Member Avatar for ambarisha.kn

Hi everybody, I want to write enter in a text file. How to do this. I wrote the code as follows. see if i write like this, it is printing one special character like arrow. I want to print in the following line, instead it is printing in single line …

Member Avatar for ambarisha.kn
0
267
Member Avatar for dmanw100

Is there a reliable, cross-platform way to pause a program for a set amount of time? The getch() function will wait for user input, but I would like to be able to pause for say 3 seconds. If a for loop is used like so: [CODE]#include <iostream> using namespace std; …

Member Avatar for Ancient Dragon
0
129
Member Avatar for lumeniel

Hello I have a problem that I can't understand. This errror return when I try to compile: name 'image_name' is not defined. This is my code: [CODE] def LoadImage(image_name): file_name = self.clssSnc.sprites[slf.clssSnc.stat] if self.clssSnc.stat == 0: file_name = self.clssSnc.spritesi[slf.clssSnc.stati] #carrega a imagem do cenário ou do personagem fl = None …

Member Avatar for lumeniel
0
729
Member Avatar for AUGXIS

hi guys, i have manage to copy and paste files (excel, word, txt) in specified locations, but when i used it to copy exe files, the exe files are not being copied to specified locations.

Member Avatar for AUGXIS
0
90
Member Avatar for iamloco

by using functions, write a CPP program that calculates a water bill for a user. In order to compute the water bill, user needs to input the unpaid balance, the current and previous meter reading. RM1.10 will be charged for every thousand gallons. A surcharge of 2% is added to …

Member Avatar for iamloco
0
86
Member Avatar for twburkle

I am currently working on a program that takes input from a file and calculates the averages. I decided to just write the program they way I "thought" I could do it. [code]struct student{ char name[15]; double average; double score1,score2,score3; }; struct student num_students[50]; int main (){ int i = …

Member Avatar for twburkle
0
137
Member Avatar for queenc

hi i have a page where all the username will be listed.i want to delete them.........before tat i want ask the user whether he wants to delete in a popup.if he clicks yes then his name should be deleted 1st page [CODE]<a href="http://cc.com/icc/delete.php?id=<? echo $value[0];?>"><img src="images/b_drop.png" border="0"/></a>[/CODE] delete.php [CODE]<? $id=$_GET['id']; …

Member Avatar for pabz_sarquilla
0
77
Member Avatar for AsmNewb

I used a guide from Ticalc.org. ANd the assembler gave me this code, could someone please tell me what's wrong? I have all the requirements that are required for TASM. Heres the error that MS-DOS had given me. C:\ASM\TASM>asm hello ==== Now assembling hello.z80 for the TI-83 Plus ==== TASM …

Member Avatar for codehound
0
141
Member Avatar for ceyesuma

Hello I have been studing the tutorial at [URL="http://http://www.netbeans.org/kb/61/web/hibernate-vwp.html"]http://http://www.netbeans.org/kb/61/web/hibernate-vwp.html[/URL] I am starting to understand how data from a database gets to a webpage to a table via a selection box. But in the code I can not see where it actually build a SQL query is there a method in …

Member Avatar for ceyesuma
0
93
Member Avatar for mannubhai

Please help me to make a sequencing program for my Operations Research subject. By this program, i basically need to sequence n jobs in an order. There are three column: jobs, A, B as shown below: Job A B 1 4 5 2 3 6 3 5 2 4 1 …

Member Avatar for VernonDozier
0
143
Member Avatar for anitha joe

Hey all, I posted few days back about displaying all .jpeg files inside a folder in a table...I figured out partially how to do that with JSP..By Partially I mean that I am able to count the number of files inside the folder, and then run a For loop based …

Member Avatar for anitha joe
0
106
Member Avatar for rocosd

hello, A small doubt regarding the context related functions.. I did a makecontext to create a new thread. ( C program) But in order to execute it,I need to know the main parent thread so that I can swap both. How do i know the parent thread..? i want to …

Member Avatar for Ancient Dragon
0
107
Member Avatar for kbrassfield

Can anyone tell me which utility package includes wwIncrementalSearch? I am trying to change a system that a programmer created that has passed away and left no documentation. Any help would be appreciated.

Member Avatar for kbrassfield
0
99
Member Avatar for Jennifer84

I have a problem with a redefinition when open a form. From Form15 I open Form13 wich works great: [code] #include "Form13.h" Form13 ^form13 = gcnew Form13; form13->Show(); [/code] Now when I add the same code on Form21 I will have the compilererror below: Why does this happen ? The …

Member Avatar for Jennifer84
0
100
Member Avatar for noxee

I'm trying to read from a text file multiple times but I only seem to be able to read the data once. Any advice would be greatly appreciated. [code] string input; while (!ifile.eof()) { getline(ifile,input); cout << input << endl; } while (!ifile.eof()) { ifile.get(ch); cout << ch; } [/code]

Member Avatar for Ayu1004
0
304
Member Avatar for matthewwilkes

Hello All. I am currently working on a project which basically makes splash screens for plasma displays. Details on objects are stored in an Oracle database accessed using ASP.NET and requested using AJAX. I have already got a working version of this project which people are happy with but I …

Member Avatar for matthewwilkes
0
78
Member Avatar for mammoth

hello, im trying to make something using quotes in a string which is then used by system(d.c_string) heres the code: [code] #include <iostream.h> #include <string> using namespace std; int main() { string a,b,c,d; a="del C:\\users\\robocop\\desktop\\\""; cin >> b; c="\""; d=a+b+c; system(d.c_str()); } [/code] Lets say when running i type 'a …

Member Avatar for Salem
0
99
Member Avatar for Drycola

Hello everyone, I want to design my own distribution of Linux, I downloaded DSL (Damn Small Linux) distribution (wich is a LiveCD) but I couldn't edit anything at all! I think I have to get the source code not the compiled one. Can anyone tell me where can I find …

Member Avatar for AceofSpades19
0
135
Member Avatar for sniper1983

I have an if sentence in my vb.net windows form [CODE] 'If StrComp(WindowState.ToString, FormWindowState.Minimized.ToString) = 0 Then If Me.WindowState <> System.Windows.Forms.FormWindowState.Normal Then '[Object].ReferenceEquals(WindowState, FormWindowState.Minimized) Then ' System.Windows.Forms.FormWindowState.Minimized Then ' FormWindowState.Minimized Then ... [/CODE] The evaluation, as you can se I have tried in different ways, evaluates to true even it …

Member Avatar for sniper1983
0
334
Member Avatar for pardeep3dec

Hi friends, I am new to vb.net but i know vb 6.0 very well. Please tell me how can i start my programming in vb.net. At this time i have vb.net installed on my system. Thanking you

Member Avatar for Jx_Man
0
77
Member Avatar for Anticipation

I'm working on a program, in which on the click of the button a new PictureBox is declared. The problem is, that i'm checking if the PictureBox exists first, using the code [code=VB.NET] If picCanvas2 Is Nothing Then Dim picCanvas2 As New PictureBox AddHandler picCanvas2.MouseDown, AddressOf picCanvas2_MouseDown Else End If …

Member Avatar for Teme64
0
101
Member Avatar for jencinas69

Hello I have a txt file with this content 456510 P115 JANDAY CONURE Very pretty, green/orange/blue, but keeps telling ME to shut up! $250/obo. 928-555-1212. I will like to now if its possible to write ID Category Description in top of the file like this ID Category Description 456510 P115 …

Member Avatar for jencinas69
0
222
Member Avatar for veledrom

Hi, I have checked several examples but, i couldn't do the pagination. Please help me because i simply can't do it. I am stuck with my assignment because of this. Table is shown below. Thanks [code] CREATE TABLE `country` ( `code` varchar(255) default NULL, `rank` int(11) default NULL, `name` varchar(255) …

Member Avatar for veledrom
0
83
Member Avatar for moerpheus

hi people, I am weak in most computer aspects, i think because of my school. I am creating this website and inside it there is a registration page. I used tables to create this page. So, text fields, radio buttons and check boxes belong to different forms. I want to …

Member Avatar for electron33
0
105
Member Avatar for jpc0tte

Hi everyone...did anyone know any genetic algorithm in Vb.net syntax for the generation of time tables. It is meant for a secondary schools.

Member Avatar for jpc0tte
0
109
Member Avatar for MarieRaye

Hello, I have a web application that connects to a webservice. Usually I can step through the webservice and my start page loads up just fine. But starting yesterday this was not the case. Now I am getting the message "Unable to connect to the remote server." As an inner …

Member Avatar for asnider
0
143
Member Avatar for ehsan_op

Hi, how can i get windows font handles in my program ? thank you all , in advance.

Member Avatar for Ancient Dragon
0
90
Member Avatar for Arne Kristoffer

Hey! :) I found the functions in the chilkat-library usefull, so i downloaded it. If you havn't figured it out yet, I use the programming language C++ and i use the visual studio express IDE. What I do, is: 1: Save the chilkat-folders at the HDD. 2: Open Project/solutions-settings and …

Member Avatar for Salem
0
557
Member Avatar for lxexlx

hi everyone, how are you! i need a c program to read a Segy format file. i hope that the program can output the trace header and seismic data information in ASCII format, who can help me ? Thank you very much!

Member Avatar for Salem
0
275
Member Avatar for random7

Hi, everyone I have a question about reading column data from file. helium.dat He 1.31 He 1.32 He 1.39 He 1.41 He 1.38 He 1.39 He 1.21 He 1.45 He 2.31 I want to print just the 2nd column data(number) from helium.dat like below 1.31 1.32 1.39 1.41 1.38 1.39 …

Member Avatar for hardik.38
0
237
Member Avatar for abhi_elementx

hello folks, could anyone tell me how to access a spreadsheet from a java program? I tried using the javaexcel API but cant run the program. Any other APIs/ways I can find? thanks

Member Avatar for Ezzaral
0
84
Member Avatar for bops

It is quite hard to explain what I mean here, but... Say I have a class that is stored on a hard drive like this.. [CODE]project/helpers/MyToolkit.class[/CODE] i.e. the class MyToolKit is stored in the package project.helpers and would declare it in its code like this.. [CODE=Java] package project.helpers; public class …

Member Avatar for Ezzaral
0
152
Member Avatar for warlock300300

I need helping writing the following code that does the following pls Implement the following String List ADT: A String List is a list (sequence) of strings with the following methods: 1. A constructor that initializes the list to be empty. 2. A boolean isEmpty() method that returns true if …

Member Avatar for Ezzaral
0
83
Member Avatar for scrypt3r

I was making a app to store music in a libary and get mp3 ID3 tags but all the code snippets ive found are really complicated, i tried using the my.computer.filesystem.getfileinfo to add the tags to a box [CODE]Dim tags As ObjectModel.ReadOnlyCollection(Of String) = My.Computer.FileSystem.GetFileinfo(my.computer.filesystem.getfiles("C:\Program files\TuNeAgE music")) Dim Foundtags(tags.Count - …

Member Avatar for scrypt3r
0
198
Member Avatar for monkey_king

Hi I have a some general questions, some are c others are c++ related. So I'll just post them here in the c++ forum. These question only relates to speed not so much design issues. So far most of my programming has just been about making it work. That is …

Member Avatar for Narue
0
151
Member Avatar for George_E

Hey guys I am creating a till system (EPOS system) in vb.net I have a textbox and a datagrid and I am using SQL Server 2005 as a DBMS. I have already managed to retrieve data into the datagrid by typing in an item number into the textbox, hitting a …

Member Avatar for George_E
0
278
Member Avatar for newtechie

i did a codig to find the no. of words,no. of characters and no. of lines in a file i was not getting the output, can anyone help me [ICODE]import java.io.*; public class countCharacters { public void Lines()throws IOException { File f = new File("in.dat"); FileReader fr = new FileReader(f); …

Member Avatar for newtechie
0
454
Member Avatar for kamaster

Hallo. I am working on a listing site ([URL="http://www.togoenvogue.com"]www.togoenvogue.com[/URL]) and need to set an auto deletion feature. What I want is this. When the user wants to add a listing (job offer for example), he will need to select from a SELECT drop down how long he wants his message …

Member Avatar for R0bb0b
0
123
Member Avatar for kwesiaryee

:S Hi I need help urgently.. I want to insert data into two mysql tables using just one form. Tried to do it through the following code below, but keep on getting horible errors when i submit. The essence is that the client has to fill all data without moving …

Member Avatar for R0bb0b
0
96
Member Avatar for PomonaGrange

Hi, I was wondering, if it is possoble (or how to) include a php file with a get form value passed. For Example: states.php?state=NY. This file would be incuded into another php file so that it would display only the items that would be in NY state. Anyone know how …

Member Avatar for PomonaGrange
0
137
Member Avatar for xyzt

Hello I need an editor or IDE to edit source files over FTP. Sources and the development environment is on a Unix server and I need to edit these files. There's an editor or an IDE plugin to do this? Thanks in advance.

Member Avatar for jencas
0
110
Member Avatar for biboxinhxich

I have a 3D shape drawn by Maya. Besides, I want to write a small C# application for the users to view, rotate and scale the 3D shape above. I just want to ask is there a way for me to do that (e.g. integrate the 3D shape and navigate …

Member Avatar for LizR
0
73
Member Avatar for dmanw100

I was wondering if anyone was familiar with reading data from a file into your program. I tried using the file stream the same way cout is used but it doesnt seem to work properly. Would the getline(); function work? If so, how would that be implemented? [CODE]#include <iostream> #include …

Member Avatar for dmanw100
0
137
Member Avatar for Duki

hey everyone, we have an argument that figured up the angle in a double. We need to convert that double to a char and send it out the serial port. I've tried this: [code] char t1 = (char)A; comBobbySue.Write(A);[/code] but i get errors. can someone give me a hand? :(

Member Avatar for dickersonka
0
180

The End.