43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for the great

Hello! I am having a problem with my program.I have made a program that prints the four different shapes one after the other. But the program should print these four different shapes side by side. I know there should be one outer loop for this but I am unable to …

Software Development c++
Member Avatar for Sky Diploma
0
143
Member Avatar for abu taher

When I open a project in vb6 then show a msg: and tell me to see a log file. and the description of log file is below: Line 29: Class b8Controls4.b8Line of control b8LLogoB was not a loaded control class. Line 116: Class b8Controls4.b8ClientWin of control b8CW was not a …

Software Development visual-basic
Member Avatar for vb5prgrmr
0
109
Member Avatar for kashy!

Hi Friends, I need a help, I am making a project where I have to update the class database all at once, I made a function where some values are passing to update, It is updating the Database as well, But the problem is all the database is updated with …

Software Development visual-basic
Member Avatar for vb5prgrmr
0
112
Member Avatar for tmantix

I'm trying to get a picture box to load a new picture every second with a timer. Heres my code. [code] Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick Do While Timer1.Enabled = True frame = frame + 1 frame1 = 'Picture Location frame2 = 'Picture …

Software Development vb.net
Member Avatar for tmantix
0
97
Member Avatar for tmantix

Hi, Look I'm new to C# and I have a working knowledge of VB .Net. I would like to learn C# but I'm having a problem. It's probably a basic problem but, for a console program how to I check what someone has typed in so that the console can …

Software Development c c# c++ vb.net
Member Avatar for tmantix
0
159
Member Avatar for melissa.johns

I am making a program that has a bunch of embedded if statements. I need random number that are between 0 and 1. In order to get really "random" numbers, I set up the program to get the seed from the cpu time. Then, to get the number between 0 …

Software Development c
Member Avatar for melissa.johns
0
79
Member Avatar for atch

Hi, I've got problem with method ignore from cin. This is my code: [code=cplusplus] void _name() { string name; char ch = 0; bool name_accepted = false; cout << "Enter your name: " << endl; while (!name_accepted) { while (ch = cin.get()) { //cin. if (isalnum(ch) || isspace(ch) || ispunct(ch)) …

Software Development c++
Member Avatar for atch
0
181
Member Avatar for DeathEvil

I have an array of floats: float net_pay[5] . Each element is a decimal number ie. 999.99, 35.42, 318.34 etc . What I would like to do is to scan the decimal portion, in first case it would be 99 to a variable cents. I know how to do it …

Software Development c
Member Avatar for 42Wired
0
190
Member Avatar for Belthemet

Hello. Currently I'm making a game in C++, its not my first game (Examples of what I've made is "The game of life" in both 3d and 2d, TicTacToe with my own AI algorithms (based on the graph theory), 2D Paratrooper game), however its my first programm that requires allot …

Software Development c++
Member Avatar for Belthemet
0
154
Member Avatar for dennis.wu

c++: Why the member functions of one class can access to private data member of other object? I use vs2008 and g++ compiler. the codes are list below: [CODE=c++] #include <iostream> using namespace std; class Integer { int i; public: Integer(int ii) : i(ii) {} const Integer operator+(const Integer& rv) …

Software Development c++
Member Avatar for dennis.wu
0
146
Member Avatar for WallyBags

"return type may not be specified on a constructor" I am getting this error in VS10. Here's my code: (the error appears on the word class) ComplexNumDec.h [CODE][COLOR="Red"]class[/COLOR] ComplexNum{ private: double real; double imag; public: ComplexNum(double x, double y); ~ComplexNum(); ComplexNum operator+(ComplexNum x); ComplexNum operator-(ComplexNum x); ComplexNum operator*(ComplexNum x); }[/CODE] …

Software Development c++
Member Avatar for WallyBags
0
2K
Member Avatar for scranton

Hi I created a custom System.Windows.Forms.Panel so I could override the OnPaint event and make it draw a gray border, but the inside of the panel is picking up all kinds of gray lines when the window scrolls or anything moves over top of the panel. Does anyone know how …

Software Development
Member Avatar for scranton
0
1K
Member Avatar for Crushyerbones

Does anyone here have any tips on using inb and outb for interacting with hardware on a Linux system? iopl(2) and inb(0x61) don't seem to work very nicely... Infact, inb(0x61) gives me a segfault. PS: My reliance on this forum is starting to become embarrassing :P

Software Development c
Member Avatar for Crushyerbones
0
190
Member Avatar for Piya27

Hi All, I want to update a row in existing excel sheet using vb.net where the row identification is according to the textbox text and the first column entry of that row in the excel. I just can't find a starting hint. Any Help?

Software Development vb.net
Member Avatar for kvprajapati
0
100
Member Avatar for kspicer

I'm supposed to write a function that takes an input, and then outputs a set number of digits based on an array. The code I have works for the numbers 1-10, but anything above that messes up because it goes on to a value that doesn't exist in the array. …

Software Development c++
Member Avatar for kspicer
0
107
Member Avatar for staticvoyager

My first task in this assignment is to create a datagrid view that can be used to fill in grades for students after each exam.... This is what I've coded so far - no Visual Studio assist used in this - and it works until I go to save the …

Software Development open-source vb.net visual-studio
Member Avatar for staticvoyager
0
138
Member Avatar for kbarrett

I am extracting information from SQL and writing reports. This [I]should[/I] (I hate that word) be easy... but : All is fine as long as the formatted text fits on one page. However, if the report becomes more involved (more data in SQL) more than one page is required. I'm …

Software Development c c# c++ printer queue
Member Avatar for DdoubleD
0
5K
Member Avatar for akulkarni

i have subject advanced java programming in my syllabus i will be learning socket programming servelets, corba,AMI,java beans etc. I have heard about apachetomcat server.How do i get the required software from net.thanks

Software Development java socket-programming
Member Avatar for BestJewSinceJC
0
141
Member Avatar for java dummy

I'm trying to get a calculation done in a loop but don't want it to print until after all loop are done. It will print but the calculation isn't done. Please help. import java.util.*; public class FlipCoin { public static void main(String[] args) { String choiceString; final String HEADS = …

Software Development java
Member Avatar for BestJewSinceJC
0
180
Member Avatar for the great

Hello! I am having a problem in this program.In it a have to calculate the value of π from the infinite series π=4-4/3+4/5-4/7+4/9-4/11+..... by using this formula i have to print a table that shows the approximate value of π after each of the first 1,000 terms of this series. …

Software Development c++
Member Avatar for StuXYZ
0
278
Member Avatar for akulkarni

i have a code with me [code] import java.applet.*; import java.awt.*; /*<applet code="DialogTester" width=400 height=400></applet>*/ public class DialogTester extends Applet { public void init() { Container container=this.getParent();//this ;why not create object of the class and call the function while(!(container instanceof Frame)) { container=container.getParent(); } Frame parent=(Frame)container; Dialog myDialog=new Dialog(parent,false); myDialog.setLocation(320,240); …

Software Development java
Member Avatar for VernonDozier
0
116
Member Avatar for ryancfc

Hi all, I am having trouble in finding out how to point to a private member variable. E.g. : [CODE] #include <iostream> using namespace std; class Angry_Dude { private: int health; int attack; } [/CODE] I want to point to the address of health. I know about the homework policy, …

Software Development c++
Member Avatar for VernonDozier
0
94
Member Avatar for goody11

Hey, I was working on a program that would ask you a question and you had to put an answer. Well, when I went to compare the answer the user inputs with the right answer, it always comes up wrong and I was wondering if I did these lines of …

Software Development c++
Member Avatar for goody11
0
146
Member Avatar for the great

Hello! I am having a problem with my program.I have to write a program that find all pythagorean triples for side1, side2 and hypotenuse all no longer than 500. I have to use a triple-nested for loop that tries all posibilities. I know that the sum of squares to two …

Software Development c++
Member Avatar for Salem
0
885
Member Avatar for manutd4life

hello press save, i got and error and said ExecuteNonQuery: Connection property has not been initialized. Here's the code: [code=vb.net]Private Sub cmdSave_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdSave.Click Dim com As New OleDbCommand com.Connection = con com.CommandText = "insert into Sales values('" & txtSalesId.Text & "','" & …

Software Development vb.net
Member Avatar for manutd4life
0
109
Member Avatar for the great

Hello! I am having a problem with my program.I have to write a program that uses repitition and switch statements to print the song "The Twelve Days of Christmas." One switch statement should be used to print the days (i.e "First","Second" etc). A separate switch statement should be used to …

Software Development c++
Member Avatar for the great
0
1K
Member Avatar for Nogat21

I'm having a bit o a problem with inheritance. The context is this assignment i have in which we have to read from an mp3 file, extacting the informations within it as well as provide other informations not explicitly contained in it (for instance the total audio time of the …

Software Development audio c++ file-stream ios
Member Avatar for Nogat21
0
203
Member Avatar for Yee

OKay... I have a newbie question. [code=c++]#include <stdio.h> class Test{ public: Test(int x); }; int Test::Test(int x=0){ } int main(){ Test test(1); printf("%d", test.x); } [/code] My question is how to make the x variable of the constructor public. I have tried to add : [code=c++] public: int x = …

Software Development c++
Member Avatar for mrnutty
0
106
Member Avatar for nkarvi

Hi everyone! I have an application in C#, that at some point calls a [code=c#] Microsoft.Office.Interop.Word._Application [/code] Problem is that when that point is reached, it takes ages to load the word app. I thought of creating a thread at the beginning of the program, so that the word app …

Software Development microsoft-access microsoft-office
Member Avatar for kha0s
0
103
Member Avatar for kaio-ken

[code=c] #include<stdio.h> #include<conio.h> typedef struct { int rno; char name[10]; float marks; }stu; stu stu3; void getf(stu * stutmp); void show(stu * stutmp); void main() { clrscr(); getf(&stu3); show(&stu3); getch(); } void getf(stu *stutmp) { scanf(" %d",&stutmp->rno); printf("%d\n",stutmp->rno); scanf(" %s",stutmp->name); printf("%s\n",stutmp->name); scanf(" %f",&stutmp->marks); printf("%f\n",stutmp->marks); getch(); } void show(stu * stutmp) …

Software Development c
Member Avatar for kaio-ken
0
535
Member Avatar for cougarclaws

Is there an easier way to understand what this is doing step by step? I get very confused here, and I wonder if any of you fine people have a trick for breaking this down. I really want to get this, and understand the pattern, but what happens in the …

Software Development c++
Member Avatar for cougarclaws
0
111
Member Avatar for ashish2234

i am new to swings and i don't properly know where and how to use drawString in swings !! please help!! import java.awt.Graphics; import java.awt.*; import java.awt.Graphics2D; public class Main extends javax.swing.JFrame implements Runnable { String m1="hello"; Thread t =null; boolean flag; /** Creates new form NewJFrame */ public Main() …

Software Development java java-swing
Member Avatar for VernonDozier
0
106
Member Avatar for Questions???

Hello, I have a question about array lists, specifically how to pass array lists to a method. Then once in the method how to do simple algorithms. My example is I have three array lists, two of which have static double numbers and the third who's numbers are the end …

Software Development algorithm java
Member Avatar for Questions???
0
77
Member Avatar for dzhugashvili

hey, I am writing a password cracker. But I now have been thinking about separating the word generator from the actual encrypt and check function (for the sake of flexibility and convenience). I noticed John the Ripper does some operations like this. I was thinking something like this: [CODE]wordgen --stdout …

Software Development c++
Member Avatar for dzhugashvili
0
323
Member Avatar for applefat

I realize that Java doesn't literally allow you to pass functions as arguments. And I've seen threads that address this topic with regular members, but I can't seem to adapt it for static methods. I have two classes that act kind of like two different "datasources" (A and B). They …

Software Development java
Member Avatar for applefat
0
2K
Member Avatar for malugirl4

I have just completed my java code for the game engine maze I have been working on. We are told to download MARS and from java code it in assembly. I have never learned assembly. So I am completely lost. I so far downloaded MARS and uploaded my java code. …

Software Development assembly c++ java
Member Avatar for wildgoose
0
5K
Member Avatar for llemes4011

Before I say anything else, I do realize that there are numerous threads on this topic, but I haven't been able to fix my problem. Okay. Well, here's my problem. I'm writing a map editor for the game that I'm working on, and the map is oftentimes much larger than …

Software Development java
Member Avatar for llemes4011
0
132
Member Avatar for nunos

Hi I would like to know if there is any way to obtain a float result from a division between two integers other than using "from __future__ import division"? I am not looking for the .0 'trick'. Example 4/5.0 = 0.8. I want to be able to do 4/5 = …

Software Development python
Member Avatar for nunos
0
186
Member Avatar for Syllabus

Hi! I'am trying to make a program that dispalys a label with a image, but the rest of the program is "invisible", The problem I got is when I set the opacity, it affects the whole frame. This was ofcourse excepted, but I have not yet been able to make …

Software Development python tkinter
Member Avatar for vegaseat
0
1K
Member Avatar for esesili

Hi everyone, I have a problem about inheritance and I can not solve it since Monday. I have two classes [B](Student_Patient and Emp_Patient) [/B]inherited from [B]Patient[/B] class. [B]Patient [/B]class and [B]Doctor [/B]classes are inherited from [B]Person [/B]class. The [B]Doctor[/B] class has a member function[B]double get_fee_of_doc() const;[/B] which returns a double …

Software Development c++
Member Avatar for NathanOliver
0
126
Member Avatar for ddanbe

Hi all, I'm trying to implement a C-style union in C#. Found things on the web, but I have a problem. Depending how I initialize the fields in the union I get different results. Can anyone tell me what am I doing wrong here? Here is my code: [CODE=c#]using System; …

Software Development
Member Avatar for ddanbe
0
103
Member Avatar for adel_elrefaey

#include <time.h> // double RAND_MAX = 4294967296.0; //2147483647; // void aleatorio(); void warmup_random(double); void advance_random(); int flip(double); double randomperc(); double aleatorios_0_1(); long rnd(long, long); double Rseed; /* Random numbers seed */ double oldrand[55]; /* Array of 55 random numbers */ int jrand; /* current random number */ /* Initialize random …

Software Development c++ visual-studio
Member Avatar for adel_elrefaey
0
741
Member Avatar for snakay

Hi everyone, I'm having the error msg. "ıbmdadb2" E_FAIL(0X800004005) when I try to delete a row on the dataset. I populate the table in many combination of selections, no problem. But when I try to delete a line, I can do it on gridview but I cannot do it on …

Software Development dataset
Member Avatar for DdoubleD
0
505
Member Avatar for mansi sharma

I want to get the width & height of the image file.. Mine code is currently getting the file size, I also want to get the width & height.How to get width & height,kindly help me. [code] Imports System.IO Public Class Form1 Private Sub Form1_Load(ByVal sender As System.Object, ByVal e …

Software Development vb.net
Member Avatar for mansi sharma
0
487
Member Avatar for chanlichin

hi,i am new to vb 8 and i am now facing the problem to write sql statement. i want to retrieved data from MS Access by select the date using date time picker. so my problem is how to write the sql statement. My code is as below: sql = …

Software Development sql vb.net
Member Avatar for chanlichin
0
83
Member Avatar for Zebibyte

In an attempt to make my if statements cleaner, I figured out a simply way of making them quite a lot shorter. Instead of doing this: [code=python]elif talk_in == "quit" or talk_in == "q" or talk_in == "exit" or talk_in == "x":[/code] I can do this: [code=python]elif talk_in == ("quit" …

Software Development python
Member Avatar for Gribouillis
0
131
Member Avatar for Roguey

I'm trying to write a peice of code that will convert all the uppercase characters in a word to lowercase, and to store that in an array. I know how to convert individual characters, and to output all these characters in the fixed lower case. The thing i'm unsure about …

Software Development c++
Member Avatar for mrnutty
0
447
Member Avatar for nunos

(a | b): For what I have read in other forum post, if a is true, python doesn't evaluate b an returns a. (a & b): What happens with logical and? If a is false, does python evaluates b or not? Thanks for your help.

Software Development python
Member Avatar for nunos
0
411
Member Avatar for ashish2234

Actually what i want to do is that on a click of a button , the selected row of the jTable increments to next row so that i can fetch that row to play the next song...how can i do that???

Software Development java
Member Avatar for TheWhite
0
112
Member Avatar for manutd4life

Ok i have a button on MDI parent form and i need to disable it when closing a child form. When writing the button name (cmdmenu) in the child form, it says that the cmdmenu is not declared please help

Software Development vb.net
Member Avatar for manutd4life
0
207

The End.