132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for oh.m.song.1

How to do this? :Write a program to draw a face of a clock that looks as close to the below as possible. (Note that the clock tick-marks are thicker than your usual lines!) Include comments to explain to the reader what you’re doing. Would appreciate very much thank you. …

Software Development python
Member Avatar for slate
0
145
Member Avatar for y0yie_333

what's the problem with this ? any 1 can help me out..tnx in advance Dim filePath As String Try filePath = Application.StartupPath() & "\" & DBFile connection = New OleDb.OleDbConnection(ConnectionString & filePath) connection.Open() Dim command As OleDb.OleDbCommand = New OleDb.OleDbCommand command.Connection = connection '---set the user's particulars in the table--- …

Software Development vb.net
Member Avatar for y0yie_333
0
162
Member Avatar for salwa.kh.9

Hi, I've a webform that has five fields,, the first four fields has textboxes and the fifth one is a checkbox list. All the data of textboxes has to be saved in a table tbl_Workshop. the checkbox list has list of trainers, a user can select for that particular wokrshop.. …

Software Development
Member Avatar for george4986
0
227
Member Avatar for anoniya ze

an int function cube () that returns the cube of its single int formal parameter please attach in my emile bmekixavi@gmail.com

Software Development c++
Member Avatar for Learner010
0
137
Member Avatar for klika

The part for(int i=1; i<n; i++) { x[i]=sqrt(y[i]*i); cout<<"x"<<i<<": "<<x[i]<<endl; } isn't working wll, for some elements the result is non, i thought that i because the numbers are complex, but not with include complex i get the same resut.. can anyone help me #include<iostream> #include<math.h> #include <complex> using namespace …

Software Development c c# c++
Member Avatar for ddanbe
0
139
Member Avatar for ruwaldl

hey guys how i display datagridview cell values in a listbox once i click on it heres what i have so far but it doesnt work private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { listBox1.Text = dataGridView1.Rows[e.RowIndex].Cells["Description"].Value.ToString(); } please help thanks in advanced

Software Development display
Member Avatar for Fenrir()
0
528
Member Avatar for jenifer.jenn

Hi, I have developed windows application on windows 7, when I deployed it to windows vista it has stopped working but it run smoothly on windows 7. Can anyone help me? Thanks.

Software Development c c# c++ windows-vista
Member Avatar for Fenrir()
0
246
Member Avatar for mahabelg

public static String DecBin(int nbr) String resultat=""; String decbin=""; //String temp; int rest; //temp=""; while(n/2>0) { rest=n%2; //temp=temprest; String rest1=Integer.toString(rest); resultat=resultat+rest1; } for (int i=resultat.length();i<resultat.length()-1;i--) decbin=String.valueOf(resultat.charAt(i)); return resultat;

Software Development java
Member Avatar for stultuske
0
194
Member Avatar for isralruval

how would i write a function that parses a hex number as a string into a decimal integer. I have the following done i just need help finishing it. any help will be appreciated[code]#include <iostream> #include <string> using namespace std; int parseHex(const string &hexString) int main() { cout << "Enter …

Software Development c++
Member Avatar for sheetal Phapale
0
4K
Member Avatar for Doogledude123

Alright, so I have been coding a Ceasar Cipher in Java and I have the encrypting working, However, I cannot seem to find my problem decrypting. Here is the code, I thought just by revearsing all the operations it would decode it, but that doesnt seem to be the case. …

Software Development encryption java
0
122
Member Avatar for itsnauman

Hey, I have previously programmed in C, PHP & Javascript and I have recently started out with Python but the syntax of the functions is quite different and confusing? Like if we call `len(abc)` we enter the param inside the function unlike the function `abc.upper()` where we use enter the …

Software Development python
Member Avatar for snippsat
0
389
Member Avatar for kbear23

I am new to CPPUnit testing and have written test for login authentication function with various test cases. But it only accepts return value zero. The first test case should return 1 if expected and actual are the same but it only works when I change to zero. Any advice …

Software Development c++
Member Avatar for Ancient Dragon
0
247
Member Avatar for sohail.butt.144

i need help to make this program please help me Problem Statement: Write a program using class(constructor, destructor, other member functions) to find the frequency of letters (small and capital alphabet or digit) from your student id character string. For example, frequency of letter ‘4’ in the string of a …

Software Development c c# c++
Member Avatar for lala56565
0
187
Member Avatar for Perry_1

Hi, I have recently started sharing resources that I've found useful with the rest of the software development community. This week's is a Microsoft video on how best to do Agile under waterfall management. I hope you enjoy :) http://perrygollo.azurewebsites.net/?p=301

Software Development agile-development
Member Avatar for Perry_1
0
139
Member Avatar for hahahanz

not sure where to post this but anyways I wrote this code to calculate the max profit from a 5 kg max weight. heres the code. there is an error with the price. when I use small values below 20 its all normal but when I input large values there …

Software Development c++
Member Avatar for iamthwee
0
117
Member Avatar for james.lu.75491856

import web,re,traceback urls=( "/","displaythreads" "/viewthread","displaythreads", "/viewthread/(.*)","displaythread", "/viewthread/(.*)/Vote/(Up|Down)","vote", "/newthread/(.*)","newthread", "/newthread","newthread" ) entries={}###{entryname:{property:value}} entrylength=0 class displaythreads: pass class newthread: template=web.template.frender("newthread.html") default=template("DEFAULT",0) def initialize(): pass def GET(): return default def POST(): data = web.input() try: username,threadname = data.username,data.threadname except: return template(mode) if threadname in entries: return template("Exists") entries[threadname]={"creator":username,"points":0,"totvotes":0} class displaythread: template=web.template.frender('Thread Viewer Template.html') …

Software Development client-server python
Member Avatar for james.lu.75491856
0
2K
Member Avatar for aaronernest.borres

Good day Can you please help me with my codes. My teacher tasked us to make a program that will accept a password from the input box then will show form1. Otherwise, it will repeat on asking for the correct password. the program will stop asking if you gave the …

Software Development vb.net
Member Avatar for aaronernest.borres
0
211
Member Avatar for wallet123

I am planning to create a table where everytime i add a row, a checkbox inside the table will also be created, will that be possible? And i am using window builder. If it is possible, can you give me some instructions how to do it? I did my research …

Software Development java
Member Avatar for JamesCherrill
0
345
Member Avatar for castajiz_2

I have read pretty much about xml. I know that it is good to save data inside but i just can t get it why wouldn t I save my data into a .txt file once finished with my program tasks. Is it because xml offers a structural and more …

Software Development xml
Member Avatar for deceptikon
0
224
Member Avatar for 2concussions

Hello!! So I just started moving over from Java to C++ and am having problems. All I am trying to do is make a simple MessageBox and when I try to run this code: #include <windows.h> int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd){ MessageBox(NULL, L"Hello World!", L"Hello …

Software Development c++
Member Avatar for rubberman
0
273
Member Avatar for christan

Greetings, can someone please give me an idea on how to make a stored procedure with foreign key. Here's what i want to happen. 1) I have 1 button for Adding patient. 2) On the add patient button, i want to Add the patient information on the tblPatient and insert …

Software Development vb.net
Member Avatar for christan
0
172
Member Avatar for zawpai

Hi all, Can I protect my exe file not to copy from one PC to another? I think it can be done, but I don't know how to do this. Could anyone please give me some guide lines? Best Regards, zawpai

Software Development visual-basic
Member Avatar for aamir.tiwari.9
0
1K
Member Avatar for supra

Hello Everybody, I want to do a project on Linux Shell Programming for my final yr.Can any one give me some idea about what kind of projects I should choose (do) which have industrial relevance and certainly helps in campusing. Thaking you, Supra

Software Development shell-scripting
Member Avatar for peter_14
0
802
Member Avatar for java786

Write a program that simluates a game of dice. In this game, players take alternate turns rolling two dice. On each turn, they record the sum of the two dice and add this to their total. If a player rolls a doublet (both dice have the same value), then the …

Software Development gaming java
Member Avatar for mathijs
0
4K
Member Avatar for mohamed.talaat.1217

**I have a struct of students that written to a file all what i want is intial the array with values from the file using any method , the aim is to put the struct values into array to help sorting process the code gives me punch an kick any …

Software Development c
Member Avatar for mohamed.talaat.1217
0
295
Member Avatar for tessa.burkhalterblackmon

Below is my code so far that ask user for how many numbers they want to input. This program can calculate average based on the numbers that the user input but I also need it to find the product or multiplication of all the numbers entered. I know how to …

Software Development c++
Member Avatar for tessa.burkhalterblackmon
0
381
Member Avatar for Dadi_2

I have recently shifted from c# to try Javafx2. I am also new to this forum. I have been stuck trying to implement internal frames in Javafx. I stumbled upon this link: http://stackoverflow.com/questions/17673292/internal-frames-in-javafx I have managed to add jfxtras 8 jar file to my project as well as in scene …

Software Development java
0
188
Member Avatar for nhrnjic6

How do I add second element ? right now it works and I get output of 13, but lets say I want list of 2 elements, how do I do that ? here's my code : #include <iostream> using namespace std; struct Vagon{ int num; Vagon *p_next_num; }; int main() …

Software Development c++ linked-list
Member Avatar for AndrisP
0
169
Member Avatar for Bilal gulbaz

My Question on File streaming Sound record Using C#

Software Development file-system
Member Avatar for Ancient Dragon
0
122
Member Avatar for Ankit_8

import java.awt.*; import java.applet.*; public class Neko extends Applet implements Runnable { public static void main (String args[]) { Image nekopics[] = new Image[9]; Image currentimg; Thread runner; int xpos; int ypos = 50; public void init() { String nekosrc[] = {"right1.gif" , "right2.gif" , "stop.gif" , "yawn.gif" , "scratch1.gif" …

Software Development java
Member Avatar for Ankit_8
0
191
Member Avatar for aliashiq

Sir i am new to webservices and my scenario is that i want to display records from database against email and password. but when i debug webservices i recieved error. Here is my code [WebMethod] public bool CheckLogin(string Email, string Password) { return getEmail(Email, Password); } public bool getEmail(String Email, …

Software Development
Member Avatar for aliashiq
0
247
Member Avatar for ram619

Hi, I have a device connected to the USB port of the laptop. This device pumps data to the port which is read by the python script. As per the baudrate of the board I use folowing configuration to open the port. Serial(options.port,921600,timeout=0.2,xonxoff=0,rtscts=1) But when I analyse the collected LOG …

Software Development python
Member Avatar for Ewald Horn
0
2K
Member Avatar for August AlieN

Is email encryption method had disadvantages? emails are encrypt by secret key, cryptograph the messages and secret key is encrypt by the receiver's public key. receiver's private key decrypt the secret key. so, secret key decrypt the messages body. * but i can't find weak points. if you know plz …

Software Development email encryption
Member Avatar for rubberman
0
176
Member Avatar for pspwxp fan

I am using NetNeans I have a JPanel that is supposed to show some already input data along with a progress bar while the remainder of the program carries out some lengthy processing (about 1 minute long). Once the processing is done, this same JPanel is supposed to be updated …

Software Development java
Member Avatar for JamesCherrill
0
576
Member Avatar for dlmagers

I think I have a cluster of a mess here and was wondering if someone could help me in the right direction. I am trying to write a small program that will calculate the gain and/or loss of the sale of stock. The program will ask the user for the …

Software Development java
Member Avatar for stultuske
0
441
Member Avatar for raliot

File does not work.Does not record information.Please help! -Enter of a keyboard and a file into an array (by adding) data to 30 girls #include <iostream> #include<fstream> #include <stdio.h> #include <stdlib.h> #include <string> using namespace std; #define N 30 FILE *fp; struct girl { char number[10]; int age; int bust …

Software Development c++
Member Avatar for cherrymae.calma
0
332
Member Avatar for folabidowu

write a C++ program which inputs litre consumption given in miles/gallon and which translates these figures into the litres/kilometre format which is more common in Europe.Use the following conversion factors: 1 mile=1.609km and 1 gallon= 3.785litres

Software Development c c# c++
Member Avatar for cherrymae.calma
0
276
Member Avatar for phorce

Assume that I have a vector: x = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14] What I need to do is split this vector into block sizes of `blocksize` with an `overlap` `blocksize = 4` `overlap = 2` The result, would be a …

Software Development c++
Member Avatar for vmanes
0
188
Member Avatar for ryan.jay.ong

Hi, I'm now studying Bachelor of Science in Information Technology. I want to ask everyone if I can count on you if I ever bump into some problems coding. I'm new to programming. Thank you.

Software Development c++
Member Avatar for ryan.jay.ong
0
96
Member Avatar for thomas_14

I am using c++ with sqlite3 I have a database(test.db) with a table of testTable inside the testTable it has the following attribute _id|randomText I tried inserting a randomText into the database after my input but it's not inserting into the database. my code http://pastebin.com/TvuNqFsF need help. thanks

Software Development c c# c++
Member Avatar for thomas_14
0
325
Member Avatar for catpoints

Hi. I am trying to perform a TranslateTransform on an Image using this code: double to; int increment = 2; TranslateTransform tt = new TranslateTransform(); background.RenderTransform = tt; to = Canvas.GetTop(background) + increment; DoubleAnimation da = new DoubleAnimation(to, TimeSpan.FromSeconds(0)); Canvas.SetTop(background, to); tt.BeginAnimation(TranslateTransform.YProperty, da); This works when the Image exists in …

Software Development
Member Avatar for catpoints
0
459
Member Avatar for suela

can anyone help me to create a program that alows me to make a regular conversation with the computer?

Software Development c++
Member Avatar for Ancient Dragon
0
178
Member Avatar for Stefce

Hello, im trying to get the answers from the secound array but it takes just the last question and answer hers is the code: search.setOnClickListener(new View.OnClickListener() { String[] questions = { "http", "arp", "asd" }; String[] answers = { "HyperText Transfer Protocol", "Advanced Research Project", "asdasdasdasdasdasdasdasd." }; @Override public void …

Software Development http-protocol java
Member Avatar for stultuske
0
143
Member Avatar for lara_

i just want to whether there is a replacement for getch() in C++. my friend said getch() is C function. thanks!

Software Development c++
Member Avatar for nootan.ghimire_1
0
7K
Member Avatar for nhrnjic6

so if I have const int SIZE = 4; and a while loop const int SIZE = 4; int counter = 0; while(true) { // do something ... if(SIZE == counter+1) {cout << "Hello world"} } why is this not working? and how is the right way to do it?

Software Development c++
Member Avatar for nhrnjic6
0
128
Member Avatar for princessophia

This is the problem: Write a class whose constructor takes a vector of Student objects, where each Student has a name of type string and a score of type int. The class internally stores the data passed to it in its constructor. The class should have an overloaded output operator …

Software Development c++ html-css
Member Avatar for dabotoshkundu.bappa
0
305
Member Avatar for np complete

I want this program to wait untill I copy some text into my clipboard. This is what I have done so far char text[500] ; HANDLE clip ; if ( OpenClipboard (NULL) ) cout << "\nClipboard opened" ; EmptyClipboard () ; cout << "\nStart" ; while ( true ) { …

Software Development c++
Member Avatar for Ancient Dragon
0
313
Member Avatar for vishalonne

Hello Every body My question is very simple for you all experts, as I am learning how to write C++ program. I need a code for summing up the 4 corner of 2D array in turbo C++. Thank you all with regards

Software Development c++
Member Avatar for Ancient Dragon
0
1K
Member Avatar for CoolAtt

Hi All, I got this code from a forum & tried it on g++/Linux. In the code below i put NULL to a pointer variable but didnt get any errors. #include <iostream> using namespace std; class A { private: int _dmember; public: void func() { cout<<"Inside A!! "<<endl; cout<<_dmember; // …

Software Development c++
Member Avatar for CoolAtt
0
320
Member Avatar for pwolf

I have just started trying to learn Java, and i am currently following a tutorial series on youtube([Java tutorial by Derek Banas](http://www.youtube.com/watch?v=rGlJiUO-dZA)) it seems like a good series so far! but i have been going along with him and typing it out, then afterwards replacing my copied code with his …

Software Development ide java
Member Avatar for Ewald Horn
0
286

The End.