132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for MrNo

Ok so, I'm working on a program that is suppose to solve a function: (1+ (x^2) / sqrt(3x+6)) / (x^2 - 5x) As you tell by the function the denominator cannot be = to 0. So here's my code that I'm having trouble with. [CODE] #include <stdio.h> #include <math.h> int …

Software Development c
Member Avatar for MrNo
0
128
Member Avatar for pfm200586

hello everyone, I am trying to check each letter of a word if that word doesn't contain (AEIOUY) then I have to append (-way) to the end of the word. Now I have this if statement and it doesn't work: If OriginalWord.ToUpper Like "*[!AEIOUY]*" Then Label1.Text = OriginalWord & "-way" …

Software Development vb.net
Member Avatar for Unhnd_Exception
0
110
Member Avatar for pelin

the question is a year is a leap if it is divisible by 4, unless it is a century year that is not devisible by 400. write a program that calculates whether a year is a leap or not [CODE][/CODE] def main(): year = eval(input("Enter a year")) if year/4 and …

Software Development python
Member Avatar for pelin
0
121
Member Avatar for markdean.expres

I actually want to ask two things, first, how do I set Textbox1 to get focus so that the user will not have to click the textbox if he wants to write something, the .focus() method does not work also, how do I highlight texts inside a textbox programmatically. I …

Software Development vb.net
Member Avatar for markdean.expres
0
281
Member Avatar for dkXIII

I have received cipher documents which are believed to be secret messages. So, my mission is to break the encoding and reveal what the secrets are that each file contains. However,it is believed that each file contains a message protected with a "null cipher" which surround the real characters in …

Software Development c++
Member Avatar for raptr_dflo
0
194
Member Avatar for spelltox

Hello to all ! Sorry in advance for the long post. I'm trying to get the value of a specific <div> from an html. This div has a class attribute of "itemPrice6", but problem is that this class appears few more times for other <div>s in which i'm not interested …

Software Development html-amp printer vb.net xml
0
104
Member Avatar for aanders5

How would I get a value in between the two quotes after value=? So, value="hi my name is bob" /> would return: hi my name is bob or value="Ouch! "that hurt" lol..." /> would return: Ouch! "that hurt" lol... so basically I know the value=" TEXT_HERE " /> will always …

Software Development java
Member Avatar for aanders5
0
340
Member Avatar for WillT

I've disassembled a program to attempt to understand the application's structure for importing the data files. I have an extensive background is Java and C++ but I can't find any resources explaining importing files and reading them in assembly. What I'm hoping to find is someone who can simply tell …

Software Development assembly data-structure
Member Avatar for AceStryker
0
234
Member Avatar for Hikari123

Hi, I am suppose to create a code that takes the values between 1-1000 and produces the hailstone sequence for them, then it prints out the initial value that produced the longest sequence along with the sequence's length. I have tried to use an array but it didn't seem to …

Software Development java
Member Avatar for Hikari123
0
843
Member Avatar for fatzky_04

Hello! Can you please help me understand these problem. I don't have any idea what is the supposed output. Given a matrix M stored in array m[10][10]. Check if M is lower triangular, i.e. every element below the main diagonal is zero.

Software Development c++
Member Avatar for StuXYZ
0
93
Member Avatar for _electricblue

#include <iostream> #include <fstream> #include <cstdlib> using namespace std; const int numRows = 22; // Number of rows in the board const int numColumns = 80; // Number of columns in the board int row; int column; char Drawing[numRows][numColumns]; // environment representing all the cells and their state. char point[6]; …

Software Development c++
Member Avatar for mazzica1
0
876
Member Avatar for DaniwebOS

Question for you guys, what am I doing wrong here? I am able to enter the 5 digits in one input and I just want it to display the first character; just to test to see if it works. Afterwards I will be displaying all 5 characters like "1 2 …

Software Development display java java-swing
Member Avatar for hfx642
0
167
Member Avatar for bluehangook629

I need some help setting the maximum size on a picture box. I thought the syntax for setting size was picturebox.MaximumSize = (Width,Height) but doesnt seem to work. Did syntax change from VB6? Thanks in advance

Software Development vb.net
Member Avatar for bluehangook629
0
130
Member Avatar for markdean.expres

Guys can anyone tell me how to change fontsize of my listbox programmatically? This code does not work listbox1.font.size = 10 or listbox1.font.size = new size 10 What is the right code?

Software Development vb.net
Member Avatar for Reverend Jim
0
678
Member Avatar for mjohnson

I need to write censor program that 1-reads in the text from a file 2-creates a new file where all the four-letter words have been replaced by “****”. can you help? this what I have so far [CODE]import string def main(): filename = raw_input("File: ") text = open(filename,'r').read() text = …

Software Development file-system python
Member Avatar for mjohnson
0
496
Member Avatar for sofia85

I'm a beginner at python programming and now I want to try to write a function consisting of my already written programs. The goal is to get all probabilities when I'm calling on the function in the main program. My already separately written programs looks something likes this and the …

Software Development python
Member Avatar for Gribouillis
0
194
Member Avatar for truss86

Hello! I am working a programming assignment and the goal is to turn the static arrays into dynamic arrays. The program reads in a file of names, votes and outputs the winner and number of votes. I have the first dynamic array for votes complete, but I am having trouble …

Software Development c++
Member Avatar for mazzica1
0
179
Member Avatar for weeraa

how to get 10 th record from record set using SQL server? there are a lot of code in the internet that can get first 10 results using "TOP" keyword in sql. but i want to get 10th row valus. I'm using VB 2008. please help me.... Regards Pra$ad.

Software Development sql vb.net
Member Avatar for weeraa
0
158
Member Avatar for dakerao

Hello this is my problem below How would i do this: Got a text file called directorycontents.txt in this directorycontents.txt there is a bunch of text each one is a filename with a filename extension i want to be able to go like this if there is a filename extension …

Software Development c++
Member Avatar for WaltP
0
193
Member Avatar for fatalaccidents

Hey guys, This is a quick formatting question that I'm having trouble with. I'm trying to create columns of numbers, but I want the columns to only be as large as the largest number in that column. I was trying to use format() width, but that is creating a width …

Software Development python
Member Avatar for fatalaccidents
0
172
Member Avatar for PM312

Hi, How can i disable left and right arrow key only on msflexgrid control Thanks

Software Development visual-basic
Member Avatar for PM312
0
332
Member Avatar for nchy13

hi all!! i wanted to know the name of book which covers all the basic syntax and concepts of java keeping in mind that i have the basics of c++.

Software Development c++ java
Member Avatar for stevanity
0
118
Member Avatar for SakuraPink

Hi everyone, I am trying to change hundreds of data files using sed command. Text file1 have 10 lines which look like the following [QUOTE]{ x=34280; y...} { x=34281; y...} { x=34282; y...} { x=34283; y...} { x=34284; y...} { x=34285; y...} { x=34286; y...} { x=34287; y...} { x=34288; …

Software Development shell-scripting
Member Avatar for SakuraPink
0
148
Member Avatar for rrr12345

Hello, I have made a store inventory system in console in C++. I would like to know how can i convert it into full fledged graphical user interface. Any article,book,tutorial,video would be very helpful Thank you.

Software Development c++ gui visual-studio
Member Avatar for rrr12345
0
227
Member Avatar for VB 2012

This Code allows you too countdown seconds and minutes but im not sure how to add hours or maybe even days to it:( =========================================================================================== [CODE]Imports System.Threading.Thread Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click If InStr(timetowait.Text, ":") Then Dim time() As String time …

Software Development vb.net
Member Avatar for VB 2012
0
148
Member Avatar for bigredaltoid

Hi guys, first off just wanted to say that this website has been immensely helpful to me for my programming class. I asked a question to help with a lab a couple of weeks ago and was able to figure out the issue with the forums help, so thank you. …

Software Development file-system python
Member Avatar for TrustyTony
0
2K
Member Avatar for mameemonster

hello. i have a problem in selecting destination and time. when i select any number in destination the program always tell me that i choose number 1 (taiping). and the time it always show 1030 even i input number that is not 1. please tell me where i'm wrong here. …

Software Development c
Member Avatar for mameemonster
0
115
Member Avatar for lorettah

<HTML> <HEAD> </HEAD> <BODY> <APPLET Code = WelcomePage.class width=300 height=300> </APPLET> </BODY> </HTML>

Software Development display java
Member Avatar for Taywin
0
96
Member Avatar for amitmardana
Member Avatar for bluehangook629
0
65
Member Avatar for code 117

Hi guys, hope you can help. I'm creating a mixture of an employee scheduling system with elements of a Human Resource Management System for small to medium businesses. I ideally want to create a java application with a database backend, which I'm trying to see if I can apply sql …

Software Development java oracle sql
Member Avatar for Slimmy
0
515
Member Avatar for woodmaj

Write a program that tells you if the expression entered is a tautology or not. Assume that you have no more than three propositional symbols in your expressions -- call them P, Q, R. You must use the linked list implementation of the data structures needed. The above is my …

Software Development java linked-list
Member Avatar for JamesCherrill
0
537
Member Avatar for Ice_Occultism

Hey, I'm on the rookie side, to Python, and Pygame and new to this community, and I'm confused if this could be possible; I want to change the data type of a list, in Python, from strings to integer (they have to be integer, because I need to sort them …

Software Development python
Member Avatar for Ice_Occultism
0
380
Member Avatar for MARKAND911

I have two classes named [B]ROAD[/B] and [B]PATH[/B] [CODE] public class ROAD { public string getData() { return "Marlton Road"; } } public class PATH { public string getData() { return "Tagore Path"; } } [/CODE] Also i have a function named FETCH() in my Static Void Main FETCH() contains …

Software Development c#
Member Avatar for Mitja Bonca
0
3K
Member Avatar for DeusManP0W

My problem is as said "expected ';' before "int" " I dont the problem => This obviusly aint the hole text, rather its the place where its complaining. [CODE]int tarning2(void) { return(tarning1()+tarning1()); } int tarning1(void) { int max = 6, min = 1; return (rand()%(max-min+1)+min); }[/CODE] This might have something …

Software Development c c# c++
Member Avatar for DeusManP0W
0
1K
Member Avatar for salah_saleh

Hi!, I have a text file that contains a 2 dimensional matrix, and I will have to deal with many different files with different matrix dimensions, so I decided to use vector of vectors as they double their size automatically. the problem is that I don't know how to get …

Software Development c++ file-system
Member Avatar for salah_saleh
0
6K
Member Avatar for sarathsshanker

public class thermostst{ private float currenttemp(); } I thought in java only abstract classes can contain abstract methods like this! I got this from a algorithms and data structures book and im guessing its a printing mistake and currenttemp should not contain the () . Thank You

Software Development java
Member Avatar for JamesCherrill
0
108
Member Avatar for pikalife

So both classes are in the folder. How am I able to call variables in one class from another another class. For example, I ahve 2 classes, Class1, and Class2. So in Class1, I have "double a" and its value. How can i refer to this "double a" and its …

Software Development java
Member Avatar for stevanity
0
132
Member Avatar for sitajaf

Can someone pliz guide me on how to consume jax-ws web services from a gwt app. Or if one knows a good tutorial can post a link. Thanks

Software Development java
Member Avatar for sitajaf
0
107
Member Avatar for nchy13

don't go by the size of code. [U]before inserting search function my code was working fine with insert function. but don't know what is wrong with search fn. or declaration of variables in main().[/U] [B]this is what compiler shows. tree.cpp:316:15: error: cannot convert ‘int*’ to ‘redblacktree<int>*’ in assignment tree.cpp:318:15: error: …

Software Development c++
Member Avatar for nchy13
0
165
Member Avatar for dospy

t to do something like [code] void f1(int a[][]) {//do smth } //and call the function like this F1({{1,0},{2,5}});[/code]

Software Development c++
Member Avatar for dospy
0
123
Member Avatar for delifion

Hi, this is what i'm trying to do [icode] class a { private: string attribute; string p_msg; public: string& getAttribute() { return attribute; } }; [/icode] above is the class, i want to call function getAttribute() from class a is a linked list: list<a*> aa [icode] void sortFile(Manager& manage, const …

Software Development c++ linked-list
Member Avatar for Nasas
0
151
Member Avatar for PM312

Can the value of vertical scrollbar attached to Msflexgrid be made to maximum through vb code. thanks & regards

Software Development visual-basic
Member Avatar for PM312
0
510
Member Avatar for ChristianOncken

[code] # -*- coding: utf-8 -*- #diretorios de imagens alldir = ("C:\\Users\juridico.anoreg\Desktop\OFICIOS-ANOREG\imagem\\") # from tkinter import * from tkinter.filedialog import * import sys import tkinter import time import math import datetime import os import subprocess import tkinter.messagebox import calendar as cd from tkinter import * import webbrowser import tkinter.font class …

Software Development os-x python tkinter windows-vista
Member Avatar for ChristianOncken
0
322
Member Avatar for james6754

So in C# I can create an array of n elements: [CODE] int[] myArray = new int[n]; [/CODE] I have looked and it doesn't seem as though I can create an array like this in C++ (using new). Could anyone please explain why I cannot use new to create an …

Software Development c c# c++
Member Avatar for james6754
0
88
Member Avatar for dakerao

Hello this is my problem below How would i do this: Got a text file called directorycontents.txt in this directorycontents.txt there is a bunch of text each one is a filename with a filename extension i want to be able to go like this if there is a filename extension …

Software Development c++
Member Avatar for dakerao
0
191
Member Avatar for bigfoot_80906

Is there a command in Perl that will strip off the last element in an array and replace it with a constant value?

Software Development perl
Member Avatar for RBBD
0
220
Member Avatar for violette

I need to copy multiple sheets into the template accordingly. well, i manage to copy for the first sheet only. i've tried to modify the code to copy multiple sheets at one time and i couldnt get it right. here's the code for copying the first sheet into the template. …

Software Development visual-basic
Member Avatar for violette
0
104
Member Avatar for rajeshredy

Here is a item tablelist.Its a JCombobox.I wrote the itemlistener for it. The problem is when ever i select an item in it for the second time onwards i am unable to see the data in the listScroller in UI,but i can see the data in the console. Ewerything is …

Software Development java
Member Avatar for JamesCherrill
0
78
Member Avatar for infantheartlyje

Hi folks, I have written code to random access files in c++ . I got result without creating a method for write a record to the file. I have given the code snippet below. [code] #include<iostream> #include<fstream> #include<iomanip> using namespace std; class student { int rollno,marks; char name[20]; fstream fpointer; …

Software Development c++ ios
Member Avatar for infantheartlyje
0
316
Member Avatar for corliss

Hi All, I am having a bit of an issue moving back into Java. The issue that I am having is that I am trying to call a method of a custom class that has been instantiated in my main java file from a form that is also in an …

Software Development java
Member Avatar for StephNicolaou
0
169

The End.