132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for suncica2222

Can someone coment this code in detail, I can't quite understand algorithm behind this? typedef struct node{ int x; int y; int value; struct node* row; struct node* col; }node; typedef struct matrix{ int height; int width; node** rowList; node** colList; }matrix; void insert(matrix** M, int row_index, int col_index, int …

Software Development algorithm c linked-list
0
143
Member Avatar for divakar.it

Hi, As part my developement I would like to keep all employees document stored in database table rather in folder. I dont want to store the files in folder and keep the file location in table so that get the file from the location. I tried my level best in …

Software Development pdf visual-basic
Member Avatar for usiegd
0
643
Member Avatar for silvercats

If I write an asembly program to a one CPU, will it also run on the other brand? What CPU is faster?Intel or amd (let's say both are 2Ghz processors. )

Software Development assembly
Member Avatar for mathematician
0
129
Member Avatar for sk8ergirl

Hi, I have class of student object with the String student name and double GPA they are stored in array. My GUI have button for sort by name and sort by grade. I want to sort the name and the grade and I want to sort it using Comparator, but …

Software Development gui java
Member Avatar for JamesCherrill
0
173
Member Avatar for Jorox03

I am trying to write some code to regex search against wide strings. The problem I am having is that the regex operations ( `regex_search` in particular ) does not take in wide arguements. Here is the snippet I am having trouble with: Function Header: void scan_filesystem( wpath const& f, …

Software Development c++ regex seo
Member Avatar for Jorox03
0
6K
Member Avatar for tony75

Hi How to get the path of home directory in windows? I have the script that write log.txt in my windows 7 Desktop. How can I change path in python to write log.txt in homedir directory? Is there any way to do it? I tried with those 2 methods But …

Software Development python
Member Avatar for tony75
0
7K
Member Avatar for fenri90

I code this exercise in c++ with title: "count number of occurrences of a character in a string" who can help me? thanks very much My code in c++: #include "stdafx.h" #include <iostream> using namespace std; unsigned count_check(char str[],char a) { unsigned d=0,lenght=strlen(str); for(int i=0;i<lenght;i++) if(str[i]==a) d++; return d; } …

Software Development assembly c++
Member Avatar for Schol-R-LEA
0
851
Member Avatar for godzab

Hello, I am trying to encrypt a String using Symmetric Key Cryptography. When I try to encrypt the string, on runtime it gives me this error: input text: Hello World Exception in thread "main" javax.crypto.IllegalBlockSizeException: data not block size aligned at org.bouncycastle.jcajce.provider.symmetric.util.BaseBlockCipher.engineDoFinal(Unknown Source) at javax.crypto.Cipher.doFinal(DashoA13*..) at SimpleSymmetricExample.main(SimpleSymmetricExample.java:25) I know it …

Software Development encryption java
Member Avatar for JamesCherrill
0
3K
Member Avatar for Jenniferting

Hi guys, im currently doing Conway's game of life and i'm almost there. The variable and all is in German since im studying here in Germany but i think one can still understand the code. There's one thing I need help with, which is with the Glider (Gleiter). When i …

Software Development c
Member Avatar for sepp2k
0
253
Member Avatar for me.sapna
Member Avatar for sparkthesunoff

I have two containers with the type of *A* A<string, double> s1; A<string, bool> s2; So I wrote the *A* class with the necessary functions and I used a template<class T, class E> for it. It has a function that returns a value of *E*, in my case, it returns …

Software Development c++
Member Avatar for sepp2k
0
303
Member Avatar for wolwayne

I have one tab by default (tab1) New tabs are generated , equal to 'No of rooms'. The dynamically generated tabs have same structure as of the default tab. I don't know the name of textfields of newly generated tabs. How can I find the name of jtexfields generated on …

Software Development java java-swing
Member Avatar for mKorbel
0
425
Member Avatar for nitin1

#include<stdio.h> void f(int n) { char pp[n]; printf("%d\n",sizeof(pp)); } int main() { int n; scanf("%d",&n); f(n); } In this program the size of array is defined at runtime,and sizeof operator is printing correct size after runtime initialisation in gcc 4.4. Can anybody explain? we say that sizeof is compile time …

Software Development c
Member Avatar for sepp2k
0
189
Member Avatar for Clanstrom

Hi All. I am new to C++, infact I started watching tutorials just about an hour ago. But, I had some experiece of Javascript, PHP, so It is fine. Now, my question is that, I am untimately, learning C++ to be able to manipulate a .wav files, just to write …

Software Development c++
Member Avatar for vijayan121
0
4K
Member Avatar for ronaldpaul

Hi, I work in PHP language for the past 2.5 yrs. I'm interested in making a career shift from PHP to Java/EE. So, I would like to start contributing to some open source software developed using Java EE, Spring, Hibernate. By that way I would like to develop my skills …

Member Avatar for rubberman
0
312
Member Avatar for markyjj

I need help on a program I am currently creating as I am trying to use a foreach statement on a DataGridView & loop through the rows & cells. I have tried the dataview but this doesn’t seem to have the properties to count through cells. I have therefore tried …

Software Development
Member Avatar for markyjj
0
205
Member Avatar for Timaa

protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { sqlcon.Open(); sqlcmd = new SqlCommand("select * from category" , sqlcon); da = new SqlDataAdapter(sqlcmd); da.Fill(dt); if (dt.Rows.Count > 0) { TextBox4.Text = dt.Rows[0][7].ToString(); TextBox2.Text = dt.Rows[0][8].ToString(); TextBox3.Text = dt.Rows[0][9].ToString(); } sqlcon.Close(); } } protected void Button1_Click(object sender, EventArgs e) { …

Software Development
Member Avatar for lolafuertes
0
147
Member Avatar for G_S

Hello everybody. Lately, I'm having a problem with PyDev which is driving me crazy: It is failing to connect to the Python console, therefore, many built-ins appear as errors (None, __name__, the os modules, etc.). I have tried downgrading PyDev, I have tried disabling IPv6, I have tried disabling my …

Software Development ide os-x python
Member Avatar for G_S
0
307
Member Avatar for incxx

My program is a math game which consists of different levels and different math operations. I'm not completely finished yet but I would like to know if there is a way to put the code for each of the four operators into their own method, and just have the main …

Software Development java java-swing
Member Avatar for JamesCherrill
0
211
Member Avatar for degarb

I tried to install python on xp, however pythonw.exe would not initialize. I think there is a registry setting conflict with either, lua or mediamall (which uses lua heavily). Possibly, it could be another issue. It also makes me wonder if Python could be a security risk. I have always …

Software Development python
Member Avatar for bumsfeld
0
256
Member Avatar for LaRosa

I need help writing in IPO Chart and pseudocode for an assignment asking to "Write a program that prompts the user to input a positive integer. He should then output a message indicating whether the number is a prime number." This is what I came up with for the IPO …

Software Development c++
Member Avatar for rubberman
0
933
Member Avatar for ChargrO

Hi all I've been editing some code I found on here from a while back and am up to trying to print out the data I store in an array. I've been trying for a bit and just don't understand it very well. Could someone give me a hand :) …

Software Development vb.net
Member Avatar for tinstaafl
0
215
Member Avatar for manpreetchaney

i have a problem in logic of swapping in java. That is how to swap no. of buttons with mouse click i am not getting the proper code for that..,please, can anybody there 2 help me out..! thnks

Software Development java
Member Avatar for manpreetchaney
0
178
Member Avatar for Hanshinie

I wanna write a C++ program using arrays to construct a table which allows me to input the names and marks of 4 subjects of 40 students.Pls someone help me......

Software Development c++
Member Avatar for phorce
0
63
Member Avatar for m_ishwar

Here is a code snippet that calculates the probability of the outcome of a two sided game based on the capability of each side. I used it in my football league simulator program Could be used in any number of simulators which involve two parties. For equally strong parties, the …

Software Development gaming python
0
395
Member Avatar for vivosmith

Hey there, I am getting used to Java, but here is something that is stumping me: // Fig. 3.10: GradeBook.java // GradeBook class with a constructor to initialize the course name. public class GradeBook { private String courseName; // course name for this GradeBook // constructor initializes courseName with String …

Software Development java oop
Member Avatar for stultuske
0
247
Member Avatar for Afi83

Hello all, I have defined 3 classes with their attributes including their unique ID. The relationship between these objcts are hirarchical. For example, I have school, class, and students. At the begining of the simulation I create the school and number of classes and put students in the classes and …

Software Development java
Member Avatar for JamesCherrill
0
148
Member Avatar for farhan mallick

using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Data.Sql; using System.Data.SqlClient; using System.Data; using System.Web.UI.WebControls; public partial class Buyer_BuyerCreateUserWizard : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } protected void btn_CreatingUserAccount_Click(object sender, EventArgs e) { InsertInfo(); } private void InsertInfo() { SqlConnection conn = new …

Software Development open-source visual-studio
Member Avatar for Momerath
0
106
Member Avatar for gmwass

hi guys am a kenyan and i just got started learning the c++. its awesome. i have a question i wuld like to ask for answers soon. help me in making a program that will allow the computer to choose any number between one and a hundred then the user …

Software Development c++
Member Avatar for tinstaafl
0
150
Member Avatar for mesbahuk

In the conversion process of a java to c# project, i have come to java's ***indexOf()*** function in ***string.java*** class, which takes in two integers (int ch, int fromIndex) and return some integer value for a char (i'm guessing its an ASCII value). I need to know if there is …

Software Development c c# c++ java
Member Avatar for mesbahuk
0
665
Member Avatar for kazekagerandy

i am working on a room locator program, the feature includes the room location and the path that the searchee can take to locate the room. is there a way to move a control in a vb application just like what we see in flash applications? thanks for the ideas …

Software Development vb.net visual-basic
Member Avatar for Eternal Newbie
0
301
Member Avatar for Papa_Don

Group, I've found code that will format a number found in a TextBox to display it with two decimal places. It looks like this: Private Sub txbStateTaxPcnt_Leave(sender As System.Object, e As System.EventArgs) Handles txbStateTaxPcnt.Leave stateSlsTax = Convert.ToInt32(txbStateTaxPcnt.Text) txbStateTaxPcnt.Text = stateSlsTax.ToString("n2") End Sub This works great when a whole number is …

Software Development vb.net
Member Avatar for nashy13
0
12K
Member Avatar for mr.unknown

i want an output and i have tried but can't get this... #include <cstdlib> #include <iostream> #include <iomanip> using namespace std; int main(int argc, char *argv[]) { int r,c,s; for(s=15,r=6;r>=1;r--,s++) { cout<<setw(s); for(c=1;c<=r;c++) cout<<"X"<<endl; } system("PAUSE"); return EXIT_SUCCESS; } OUTPUT: X X X X X X X X X X …

Software Development c++
Member Avatar for rubberman
0
415
Member Avatar for simbarashe.tandi

I need to knw hw I can make a gui for aa prograaaam written in C++ ,m using the codeblocks IDE

Software Development c++ gui ide
Member Avatar for rubberman
0
98
Member Avatar for roy.tarabay

Hey guys , well i have the Tic Tac Toe project , i wrote some codes, but i don't know why isn't working . Hopefully you can help me my project contain 9 labels , 2 texboxs ( first player , second player ) , button ( new game ), …

Software Development vb.net
Member Avatar for Reverend Jim
0
199
Member Avatar for game06

does any knows how to set a delay in japple - timmer? before running test method i want to set one sec dalay. public void test() { //some code here } i tried this but didnt work. public void test() { int i = 10000; while(i >= 0){ i--; } …

Software Development
Member Avatar for Dani
0
110
Member Avatar for bibiki

Ok, I am trying to build a jar file and I cannot seem to find my way around. I have attached an image to this thread to show my directory structure. Now, I am navigating to my MultiProjectManagement directory and creating my manifest.txt file with: echo Main-Class: multi.project.management.panels.ProjectListPanel > manifest.txt …

Software Development file-system java
Member Avatar for bibiki
0
185
Member Avatar for soche123

I'm asked to write a program that takes as input a char value and returns true if the character is uppercase; otherwise, it returns false.. so far I've made the definition of the function but I don't know how to get it's output on the screen through int main..could you …

Software Development c++
Member Avatar for phorce
0
146
Member Avatar for soche123

I was solving this problem and I'm struck in some problem..could you guys help me out?thanks Problem: Write the definition of a function that takes as input three numbers and returns the sum of the first two numbers multiplied by the third number. solution: #include <iostream> #include <conio.h> #include <math.h> …

Software Development c++
Member Avatar for mike_2000_17
0
157
Member Avatar for sanyam.mishra

I am doveloping a game brain champ. This is its version 3. In this version I want to use mouse in addition with keyboard for input. I have successfully tested its standalone keyboard version as well as mouse version. I have used int86() function for mouse with 0x33 interrupt number. …

Software Development c++
Member Avatar for sanyam.mishra
0
688
Member Avatar for Nebil

Hello guys, I have a problem with data type.I want to store a field with a currency format in access with vb.net.i did it by using the format built-in function in vb.net but it only stores the field in access if it's only in text data-type.If the field is in …

Software Development display vb.net
Member Avatar for tinstaafl
0
543
Member Avatar for tony75

Hi Need help with my python functions Where or How can I put def get_startupapps_path(): function in def install(): ? so that when program copy it self to windows homdir,it will be start my ipScript every time at windows startup.Becuse my machine has dynamisk IP-adress. import sys import os import …

Software Development microsoft-windows python
Member Avatar for woooee
0
294
Member Avatar for Llama098

Maybe some one can help, to make a programm, who show after some seconds random 30 numbers in massive, then they disappears and you must guess as many numbers as you can.

Software Development pascal
Member Avatar for riki.kavadarci
0
132
Member Avatar for tunisia

Hello, I'm trying to look at elements of an xml file. I have one on hand but i'm trying to write a utility for extracting info about the MessageId and KeyID, Serialnumber along with a host of other information. Basically, when I've got all of my ducks in a row …

Software Development algorithm python xml
0
133
Member Avatar for ktsangop

Hello everyone! Just as the title suggests, i would like to know if it's possible to set the position of a dialog box. The default behaviour, is to appear in the center of the screen I use it this way : public static int confirmationBox(String infoMessage, String location) { int …

Software Development display html-css java
Member Avatar for ktsangop
0
3K
Member Avatar for charlybones

Ok so I'm a total noob with VB.NET and I so far I've read about a thousand forums and I've yet to get a straight answer. I've read that VB treats anonymous types differently than C# (the why, beats me). I have a DataTable, and I want to return a …

Software Development asp.net vb.net
Member Avatar for Begginnerdev
0
3K
Member Avatar for DevonParsons

Hi all, I'm following [this](http://msdn.microsoft.com/en-us/library/dd492149.aspx) tutorial and I'm encountering strange behaviour with the program. My finishLabel *ought* to be calling finishLabel_MouseEnter() when the mouse hovers over it, but it's calling wall_MouseEnter() instead - the location of the mouse resets and the congratulations box doesn't show up. In the properties/events box …

Software Development c# ide microsoft visual-studio
Member Avatar for DevonParsons
0
252
Member Avatar for rash_13

I am reading from a file which has words like: connecting classes feeds I need to convert each character to lowercase and then call a function to remove suffix from each word. Say, first on connecting, then on classes... I am done with rest of the part but have a …

Software Development c++
Member Avatar for Lucaci Andrew
0
319
Member Avatar for eos.paks

Good Day, I would like to ask some Information. Is is possible to Conenct my Login to Active Directory? Im gonna use the AD Credential as a Login for my Application? Your Response is Highly Appreciated. Eos

Software Development vb.net
Member Avatar for eos.paks
0
170
Member Avatar for cobaltfive

I have been working on this for two weeks now and it has been progressing slowly. I am currently working on getting the the remove function of my program to 1. first check to see if there is a product 2. list the products 3. allow the user to select …

Software Development c++
Member Avatar for triumphost
0
238

The End.