43,549 Solved Topics
Remove Filter ![]() | |
Hey Guys! I'm really wanting to start learning a beneficial, but fairly easy-to-use programming language. I've tried to discuss this at other online communities and have also asked this question at a few seminar's I've been to recently. My objective is to create more advanced software that interacts with the … Software Development gaming objective-c python vb.net visual-studio | |
Its said that enums can be nested as top-level type declaration. Does it mean that it can be declared as a data member of a class, but it cannot be declared as a data member of a nested class as the nested class id not top-level ? Software Development java | |
Hi everyone. Im from Puerto Rico, and Im studying Computing Science. Im actually taking my first course of programming, and it is called "Introduction to computer programming", and we are programming with C++. At this point almost everything has been theory, but now we are starting with practice, and I … | |
I am writing some data to a file using FileWriter and BufferedWriter. I want that while writing in the file if somebody else wants to open the file in MS Excel, it should open only in read only mode Here is a snippet of my FileWriter and BufferedWriter [CODE] while(true) … Software Development file-system java | |
Hello. Well, unlike C, C++ provides a concept of headers(not header files) and that these headers are something like a collection of names, which may mapped as header files by the compiler. Can anyone please correct me if im wrong in my above understanding. Also please state the main difference … | |
Hey everybody , I'am writing a very simple chat program (Client & Server) in C++ & QTNetwork libary. I Have a static cast problem that i don't understand , here is my code : PS.Lines with errors are commented : [CODE]#include "server.h" #include "ui_server.h" #include <QtNetwork/QTcpSocket> Server::Server(QWidget *parent) : QWidget(parent), … Software Development c++ client-server | |
hi all!! I need some help here. It's the Translation matrix. I can't seem to get the output. I wonder if my conditions are right cause I've been changing them. Please do take a look from line 125 onwards. Thanks much! [CODE]import java.io.*; import java.util.*; import java.text.*; public class KateAug24{ … Software Development java | |
Here is a starter program that prints prime factors of a supplied numbers as a string.It's quite buggy as the input 8 yields 1.2.4 when what i wanted is 1.2.2.2 and I don't understand why the return in line 32 (commented) is not executed. [code=java] //program to compute prime factors … Software Development java java-swing | |
Hi all...need help from u all...i already develop system using VB.net with Microsoft Access 2003 as my database. when i running in Windows XP it's working great but when running in Windows 7, i can't insert into it...can anyone help me plz Software Development microsoft-access vb.net | |
Hello All, It's been a while since I started coding in C# so please bare with me. Here's the scenario: I have a form that has textbox fields such as "Qty, Price, and Total Amount". "Qty" needs to be multiplied to "Price" and the results shown in the "Total Amount" … Software Development | |
I am making a basic Player vs. Computer Tic-Tac-Toe in Visual Studios Express 2008. My Form.cs is [code]using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace Tic_Tac_Toe { public partial class Form1 : Form { public Form1() { InitializeComponent(); } public Image … Software Development visual-basic | |
I've been trying to figure this one out. I was under the impression that when a class method contains any resources, once the method has reached the end of the code and returns it's result (or nothing in the case of void), that all of those resources are gobbled up … Software Development dataset | |
ok i need to write something like [CODE] if { days > 5 && minutes > 5 } [/CODE] basically i need minutes to be around 5 to 10, and cannot be greater than 10. how do i do write this within the same if statement? Software Development java | |
This works fine in Firefox but not in IE7???? I have this button: <asp:TableRow> <asp:TableCell VerticalAlign="Top" HorizontalAlign="Center" ColumnSpan="2"> <asp:Button runat="server" ID="btn_Forgot" CausesValidation="false" BackColor="#E6E6E6" ToolTip="Click here if you forgot your password" BorderStyle="None" onclick="ForgotButton_Click" ForeColor="Red" style="font-size: small; font-family: Arial" Text="forgot your password?" /> </asp:TableCell> </asp:TableRow> and now the code behind for the … Software Development | |
Hello everyone, i need a bit of help. On a click of a button i want to pay an audio file.... here is my code Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click If TextBox2.Text = "1" Then TextBox2.BackColor = Color.LawnGreen C:\Users\Nick\Desktop\good_work.play now for some reason … | |
I am trying to open two different forms depending on if I click yes or no from a message box. The code runs but both yes and no open the same form. Is it possible to open two different forms? My code is posted below. Both open Form3 when clicked. … Software Development vb.net | |
![]() | You know you'd think it be the easiest thing in the WORLD to change the cursor, after all its just an image but yet again i'm having problems.I am making a web browser project I have the standard cursor( . cur file ) and when the application is navigating i … Software Development web-browser ![]() |
![]() | Hi i have been making a web browser program in c# but an annoying dialog pops up on some pages the user navigates. The dialog says Script error Syntax error line 54 char 16 0 does anybody know how to prevent this from popping up. Thanks in advance NSSLTD. p.s … Software Development web-browser ![]() |
I'd like to know what the ASCII codes for the toggle keys of the keyboard. I want to make the mouse clicks do different thing when the Caps Lock, or Scroll Lock is pressed. Walt Software Development c++ | |
[CODE]Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim r, d As Double Const Pi = 3.141596 r = Val(rtb.Text) d = Val(dtb.Text) If 0 < d < 360 Then r = d / 180 * Pi rtb.Text = Format(r, "0.00") dtb.Text = Format(d, "0.00") ElseIf … Software Development vb.net visual-basic | |
Just a quick question, if string::npos represents the largest possible value for a string object, how can this value be -1 if it's an unsigned integer? I know this value will change for different compilers, as string::npos on my compiler is set to 4,294,967,295 which makes sense but I don't … Software Development c++ | |
Can some1 giv me some clues to cont the deal card to players part ??? The program will deal cards once the user enter the numbers of player between 3-7, either five cards per player or seven cards per player depending upon the menu selection, to the players at the … Software Development c++ | |
Hi. Is is possible to create a lookup table of function pointers to functions with variable numbers/types of arguments? If not, can anyone recommend a solution for my problem? I have a list of commands corresponding to functions with variable types/numbers of arguments. Some don't take any arguments. I was … Software Development c++ | |
[COLOR="Red"]I have a problem when i am writing a content into a files as a binary format.I noticed, that it writes the content two times into the file. Here is the code.[/COLOR] [CODE] #include<iostream> #include<string> #include<fstream> using namespace std; class store { protected: char pass[50]; public: fstream file; store(); ~store(); … Software Development app-store c++ file-system ios | |
[B]How do i resolve this error...i know this exception should be thrown only when i am using an older version jre to run my class file which should be compiled with a newer jdk but i have jdk 1.6 update 18 and jre 1.6 update 21 . thanks for any … Software Development java | |
I have created an Access (2010, but converted to 2007) database and I am building a front end to it using C#. I can't figure out how to provide the user with the means to create a new instance of that database. The idea is that the user can create … Software Development | |
[CODE]class Faltu { public static void main(String aa[]) { int a=4,b; if (a==4) b=5; System.out.println ("b="+b); } }[/CODE] Here it says : "variable b might not have been initialized", but in the following : [CODE] class Faltu { public static void main(String aa[]) { int a=4,b; if (true) b=5; System.out.println … Software Development java | |
i've this code, and when i run it, it produce garbage how to solve it???? [CODE]#include <stdio.h> #include <string.h> #include <stdbool.h> // using bool data type void function (void); char encode(char); char decode(char); void changeSecretCode(char, char); char code[27] ={'A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z'}; char secretCode[27] = {'Z','Y','X','W','V','U','T','S','R','Q','P','O','N','M','L','K','J','I','H','G','F','E','D','C','B','A'}; int main () { function(); system("pause"); return … Software Development c++ | |
Hi everyone. I already know how to create a program using just one window.. but I'm having trouble creating a program with 2 windows. I used CreateWindow() to create my second window, however, my second window displays exactly what is on my main window! I figured the reason was because … Software Development c++ | |
DEAR FRIENDS, I M NEW TO JAVA, PLEASE ANSWER MY QUESTIONS: 1. I am trying to use float and double in java? can u tell me how to use it? 2. I am trying to calculate simple interest in java ? please fix my code: public class simple { public … Software Development java | |
Hi, In vb i used data form wizard to create Master/Details form from a database. When i run that code i get a error in the below line: Private Sub Form_Load() [COLOR="red"]Set grdDataGrid.DataSource = datPrimaryRS.Recordset("ChildCMD").UnderlyingValue[/COLOR] End Sub It says Data error event hit err:[ADODC]: Unknown error. [ADO] then it says … Software Development visual-basic | |
I have a program that I would like to implement using Threading. I wand to load a form that takes a couple of minutes to open using threading. Here is my code [CODE] Imports System.Threading Public Class frmAdjustments Function LaunchForm() As Integer frmNewAdjustment.SetReceive(CurrentUser) frmNewAdjustment.Show() frmNewAdjustment.Hide() LaunchForm = Nothing End Function … Software Development multithreading vb.net | |
HI, can anyone help me pls on how to set the paper size of my datareport on printing. here is my code but it doesn't work. I don't know the reason why it does not work on me. Printer.PaperSize = 5 'SET TO LEGAL PAPER SIZE dr1.Orientation = rptOrientLandscape dr1.Show … Software Development legal printer visual-basic | |
Dear all, I have two columns in a tab-delimited text file. I want to randomly generate a pair of entries from column1 and column2. Example - Want to randomise following pairs so that each value will have different partner after randomisation. Actually I have a very big file with 5000 … Software Development python | |
import javax.swing.JOptionPane; class homework{ public static void main(string[]args) { String ipt,n,h,r,r2,h2,b1,b2; Double iptipt; JOptionPane.showMessageDialog(null,"1… of a Circle\n" + "2.Area of a Trapezoid\n" + "3.Volume of a Sphere\n" + "4.Volume of a Cylinder"); ipt = JOptionPane.showInputDialog(null,"Input your desired choice(1,2,3,4)"); iptipt = Double.parseDouble(ipt); if (iptipt == 1) ------ IF ELSE STATEMENTS WILL … Software Development java java-swing | |
Hi, I'm having some problems with this bit of code. I need to randomly open some files that have numbers as their filenames. i came up with this snippet to be able to open them from numbers 0 to 99. The code should randomly pick a number and try to … Software Development c++ ios ubuntu windows-vista | |
![]() | I got the Segmentation fault error with the following code to concatenate two strings without using string library functions. [CODE] void string_concat() { int len1,len2,i,j; char inpt_str1[30],inpt_str2[30],concat_str[60]; /*Input string1 and calculate its length */ printf("\nEnter the String 1 : \n"); scanf("%s",inpt_str1); for(i=0;inpt_str1[i]!='\n';i++) { len1+=1; concat_str[i]=inpt_str1[i]; } /*Input string2 and calculate … Software Development c ![]() |
I'm trying to mod a python script that reads the OS X Dock plist. I've never seen python code before this and I can't seem to figure out if I'm encountering a formatting error or a syntax error or both... Here is the original code snippet, which returns a formatted … | |
this questions may be vague, but how many functions can you open up through function calls without ending the function. and example would be... [CODE] int FunctionOne(); int FunctionTwo(); int FunctionThree(); int FunctionFour(); int FunctionFive(); int main() { FunctionOne(); return 0; } int FunctionOne() { FunctionTwo; return 0; } int … Software Development c++ | |
Original Problem I have an existing 2D array that is already filled with data for a matrix. I also have a structure that has a pointer looking like this double ** pointer. That being said. Here's a miniature version of the problem [CODE]#include <stdio.h> int main (){ int stuff [2][2]; … Software Development c data-structure | |
i'm currently working on my thesis e-voting system. and i need to modify my search candidate and search voter form. the data from my database is already loaded in my listview when the system. what i want to do is while i am typing in the search text box, at … | |
Hi! I wrote a program on iteration of numbers means-- if n=10 ---n=10/2=5 5 is odd so 3(n)+1 upto getting 1. Here is program [CODE]#include<stdio.h> main() { int i,n,c=0; printf("n= "); scanf("%d",n); while(n!=1){ if(n%2==0){ n=n/2; } else{ n=3*n+1; } printf("%d\t",n); c++; printf("%d\n",c);/*printing no of iterations of n*/ } }[/CODE] I … Software Development c | |
Hi everyone I have to write client/server client/client chat program for at least three machines(users) connected together to chat using java My questions are 1. Do i need to have a server installed ina one of the machines. 2. Do i have to run the server side onf the application … Software Development client-server java | |
I was using winsound module for the first time to use it on one of my small app,and it didn't even gave me a BEEP!. I imported winsound module first. [CODE] >>> import winsound >>> [/CODE] then [CODE]winsound.Beep(37,10)[/CODE]leads to nothing! Any kinda help is appreciated. Software Development python | |
I am writing code for a guessing game program. The game is supposed to generate a random number, 3 digit number and let the user guess what it is, providing feedback for every wrong input. It is also supposed to perform 10 iterations, keeping track of the number of guesses. … | |
Hello, I've looked all over for the solution to this problem, but they all present a similar solution to this one and they all don't work. I've created the JFrame in the constructor for the class that this method is contained in. [CODE] public void print() { JPanel panel = … | |
Hi all Im experiencing problems whereby my codes can only read one file instead of all files in my directory. Does anyone know anything regarding this? Below are my codes: [CODE]import java.io.*; import java.util.*; public class extractionn { public static void main( String[] args ) { File dir = new … Software Development java | |
hii QUESTION: Take any 4 integers add them and print the first and last digit of the answer the restriction is that i can only use scanf command and data types.. I AM VERY THANK FULL IF SOMEBODY SOLVED MY PROBLEM Software Development c | |
Hello all I am new to this community have found help on it without even joining however I cannot find a solution to my specific problem... Write a program that reads five numbers (each between 1 and 30). For each number read, your program should print a line containing that … Software Development c++ |
The End.