132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for manel1989

Hi everyone I'd like to know how I can fill a matrix [n] [m] from a vector of size n * m Thank you very much every one

Software Development java matrix-multiplication
Member Avatar for jackmaverick1
0
253
Member Avatar for joester007

These are the instructions for the assignment. I have done everything but I'm stuck on number 8. 1.Write a function that takes in a string of numbers and returns the corresponding array of those numbers in the Single data type. 2.Write another function that takes an array of Single and …

Software Development vb.net
Member Avatar for JennyV143
0
256
Member Avatar for jackmaverick1

How do Vim and Emacs allow the whole console to be used, even after an enter has been recieved? (this can be Windows-specific) I've got unbuffered input, and I have methods for output to print to anywhere in the console. What methods do Vim/Emacs employ to make the entire screen …

Software Development c++
Member Avatar for mike_2000_17
0
263
Member Avatar for Labdabeta

Hello, Unfortunately I learnt OpenGL from NeHe tutorials, which means that all of my current methods for OpenGL-ing are extremely deprecated. I tried to find a more up-to-date tutorial, but all they seem to do is teach how to get really complicated stuff out of OpenGL. I just want to …

Software Development c++ image opengl
0
197
Member Avatar for aditya369

you need to give the input text files in the command line...

Software Development python
Member Avatar for Nils_1
0
267
Member Avatar for ChPravin

Hello All, Is there any way to add a text file while creating an executable jar file in eclipse? Regards

Software Development java
Member Avatar for devin.mcknight.102
0
8K
Member Avatar for anestistsoukalis

I would like to make clearly that i do not ask somebody to write the code for me. This is useless for me and also annoying for you: I have to do the following task. Create a Java Frame for some functions in my java project. So here is the …

Software Development gui java oracle wordpress
Member Avatar for JamesCherrill
0
268
Member Avatar for klfrancisco

I am in introduction to c++ and I have a homework problem that I am trying to do. The problem states display the average high temperature and average low temperature. The program should also display the highest temperature stored in the first column in the array and the lowest temperature …

Software Development c++
Member Avatar for klfrancisco
0
121
Member Avatar for turbo22

Ok, i've gotten pretty far on a code but keep getting an error. I know it's something simple but i just can't put my finger on it please help. import os import pickle class Student(object): def _init_(self): self._students = {} def addStudent(self, name): self._students[name] = [0, 0, 0] def editStuData(self): …

Software Development python
Member Avatar for BearofNH
0
1K
Member Avatar for sasikrishnasamy

Hi, I would like to know which closing and which if statement is more advisable and why below mentioned conditions. Condition1: while(iterator.hasNext()) { roDetailsVO = (RODetailsVO) iterator.next(); callableStatement = connection.prepareCall("{call testpac.test(?,?)}"); callableStatement.setInt(1, roDetailsVO.getInboxHdrId()); callableStatement.setInt(2, roDetailsVO.getUserId()); callableStatement.close(); } OR Condition2: while(iterator.hasNext()) { roDetailsVO = (RODetailsVO) iterator.next(); callableStatement = connection.prepareCall("{call testpac.test(?,?)}"); callableStatement.setInt(1, …

Software Development java
Member Avatar for aruru49
0
123
Member Avatar for chophouse

Need help understanding this error, and how to eliminate it. Using Python 3.3. I'm trying to define a function that takes two arguments and then constructs the proper arguments for a call to the ftblib.storbinary method. Here's my code: from ftplib import FTP_TLS ftps = FTP_TLS('xxxxxx', user='xxxx', passwd='xxxx') ftps.prot_p() ftps.set_pasv(False) …

Software Development python
Member Avatar for chophouse
0
9K
Member Avatar for Hanyouslayer

Ok, before everyone gets mad at me for not looking around the board for these topics, I have, but they weren't my problem. My problem I am having is calling the Polynomial class. I know how to call classes in a different class, but this is a bit different. I …

Software Development java
Member Avatar for JamesCherrill
0
1K
Member Avatar for AmrMohammed

Greetings, I urgently need a book/books for digital image processing can any ne help with books names or books URLs.

Software Development c++ image
Member Avatar for AmrMohammed
0
84
Member Avatar for daino

As naive as this is going to sound, I have to ask it. I have a stream compressed in LZW encoding. I can decompress a stream provided it is in a numerical format. The below I have extracted from a pdf file stream compressed in LZW. I'm assuming the below …

Software Development algorithm c++ file-stream ios pdf
Member Avatar for daino
0
196
Member Avatar for Builder_1
Member Avatar for malkani.ji.73

Please help to create a driver file of the given code becoz i dont know what should i do to create a driver file. import javax.swing.*; class Product{ private String PId; private String PName; private String PPrice; private String Pcategory; private String PQuantity; private String PDescription; public Product(){ PId=null; PName=null; …

Software Development java java-swing
0
213
Member Avatar for daProgramma

Hello, I need to export some functions in my C++ dll to a client that can dynamically load dlls. That all works, but I am not able to stop the name mangling.I have extern "C" __declspec(dllexport) int __stdcall add( int a, int b ); but the dll exports _add@8 - …

Software Development c++
Member Avatar for daProgramma
0
342
Member Avatar for prikshit.choudhary.12

#include <iostream> #include <cmath> using namespace std; int main() { char flag; float emp_no,basic,da ,hra,pf,tax,net_salary,total_salary; cout<<"enter the basic salary & employee no."; cin>>basic>>emp_no; if(basic<=5000) flag=0; else if(basic>5000&&basic<=15000) flag=1; else if(basic>1500 && basic<=25000) flag=2; switch(flag) { case '0': tax=0; da=(25/100)*basic; hra=(20/100)*basic; pf=(5/100)*basic; break; case '1': tax=(10/100)*basic; da=(25/100)*basic; hra=(20/100)*basic; pf=(10/100)*basic; break; case …

Software Development c++
Member Avatar for Moschops
0
133
Member Avatar for nathaniel23456

Here is my code import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) { String[] name= new String[10]; int[] mark=new int[10]; int n=0; System.out.print("#Number of students: "); try{ BufferedReader bufferRead = new BufferedReader(new InputStreamReader(System.in)); n = Integer.parseInt(bufferRead.readLine()); } catch(IOException e) { e.printStackTrace(); } for(int …

Software Development java
Member Avatar for stultuske
0
219
Member Avatar for enakta13

Hello, I am currently struck! I need a way to stop an already ongoing process by a button, using another button. Explanation:- 1st Button Action private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) { . . some actions which is a ongoing running (for ex: timer countdown) . . } 2nd Button Action private …

Software Development java
Member Avatar for stultuske
0
383
Member Avatar for nasaha

please help me as i m new to java i want to write a java code for Caesar cipher. the instuctions Cryptic This class h0as only class methods that encrypt and decrypt a String with a Key. The encryption and decrypting is done by using the encode and decode method …

Software Development encryption java
Member Avatar for stultuske
0
144
Member Avatar for prettyknitty

I have been working on this for awhile, but I was hoping to get input from someone with more experience. I have to stick with the structure and enum format for the assignment, but I was wondering if anyone had any opinions on the way the high/low temperature sections should …

Software Development c++
Member Avatar for kal_crazy
0
749
Member Avatar for moh2013

Hi im creating a linked list with these data types etc int account_number char firstName[10] char lastName[10] float total_Balance would anyone give a simple instruction to input/output these. i have tried everything but still doesnt work so far i have done this. #include<iostream> using namespace std; struct account_query { int …

Software Development c++ linked-list
Member Avatar for saeidzamani
0
135
Member Avatar for vampersie

Now, i input 1.5, obviously, it will show 1. But how can the program check that i just input 1.5 so that it will show an error for non integer input? #include<iostream> using namespace std; int main(){ int k; cout<<"Input: "; cin>>k; cout<< k ; }

Software Development c++
Member Avatar for saeidzamani
0
151
Member Avatar for Ahsanali1603

how I can modify the ofile object of fstream library, and the remaining data remain save as it was. e.g ofile: hello world name class this is the data ofile have and in modification i want to replace the name with "roll number". after modification ofile became ofile: hello world …

Software Development c++
Member Avatar for Ahsanali1603
0
129
Member Avatar for daniel1977

I have uninstalled and reinstalled Microsoft Visual about 3 times. I am unable to link or locate the folder #include. This is preventing me from utilizing Visual because it keeps giving me errors and doesn't let me execute the program. I have researched online for various solutions and have re-downloaded …

Software Development c++
Member Avatar for mike_2000_17
0
153
Member Avatar for kruschev

#include <iostream> using namespace std; int f(int i) { if(i == 1) { return (1); } else { return 2*f(i-1); } } int main() { cout << f(5) << endl; //<--- I don't understand why this is 16. return 0; } I am having trouble understanding why f(5) = 16 …

Software Development c++
Member Avatar for kruschev
0
216
Member Avatar for ranar

i have a file that list all the names and destinations to move the file. so for example a file that looks like this def.txt /names/new/ person.obj /media/people/ panel.jpg /random/pictures/ so as you can see here there are three files that need to be moved in a specific destination. How …

Software Development c++
Member Avatar for ranar
0
390
Member Avatar for lewashby

(Linux) `output = os.listdir()` In the above line of code I'm getting the name of the file(s) in a given directory, but how can I also get the permissions? This is what I want to see. -rwxr-xr-x 1 garrett garrett 158 Nov 23 10:49 dirlist.py drwxr-xr-x 2 garrett garrett 4096 …

Software Development os-x python
Member Avatar for lewashby
0
149
Member Avatar for COKEDUDE

I am trying to print a char array on separate line for each element. This is what I have tried and neither way is working. I would like the output to look something like. The array length is c c The array length is o o The array length is …

Software Development c c# c++
Member Avatar for Ancient Dragon
0
2K
Member Avatar for chophouse

I'm writing a script to automatically up load a file from Server A to FTP server B. I'm getting stuck at the connecting part. I can connect with a python script using regular FTP, and have done so, but when trying to implement a SSL connection, I keep getting a …

Software Development cybersecurity python
Member Avatar for chophouse
0
3K
Member Avatar for Learner010

i write code for something , now i want to have a printed copy of the softcopy output.How can i get hardcopy output using c++. i think i have to use to include some libraries to the program but i don't know where to get these library or if there …

Software Development c++
Member Avatar for Ancient Dragon
0
229
Member Avatar for weeraa

I have datatable and it has two columns named "RegNo", "Name" RegNo is a string field. This is an example "RegNo" "Name" ====== ===== 55 name1 10 name2 5555 name3 75 name4 10A name5 i used this code for sort datatable.DefaultView.Sort = "RegNo ASC" But after sort the RegNo column …

Software Development vb.net
Member Avatar for Ancient Dragon
0
441
Member Avatar for Crazyscript77

Hi all, just wondering if someone could help me out with a small loop question. If I had an input field in a GUI which writes to variable "counter" (a numerical value), how would I be able to use this value to control the amount of times a loop is …

Software Development gui python
Member Avatar for Crazyscript77
0
187
Member Avatar for Nastik

Hi. I want to develop a software to automatically send congratulatory messages to people on their birthday. I don't know how to go about it. Please, I need your advice. Thank you.

Software Development
Member Avatar for meziamus
0
129
Member Avatar for Frank_5

//Description: Binary Search Tree with array implementation, it has inorder, postorder and pre order traversals. //Note: it is not advisable to use array in binary search tree because it consumes a lot of memory in the long run // instead use linked list this is just a reference to understand …

Software Development c c# c++ linked-list
Member Avatar for surajsokasane
0
10K
Member Avatar for new_developer

Hi there, I know this question is very common but I still didn't understand that why we can't check if array is not initialized. Isn't there a way to check an array is initialzed by any values(int, double). I am working on array based program, in which I have to …

Software Development c++
Member Avatar for deceptikon
0
1K
Member Avatar for Layki

Hello everyone , I'm trying to update an existing Excel file(.xls) and add some rows in it . I already can open an xls and display it in a jTable, but i want to add rows to a specific sheet that i choose in a combobox . My xls have …

Software Development java
Member Avatar for JamesCherrill
0
344
Member Avatar for hhenali

#include<iostream.h> #include<conio.h> #include<string.h> #include<stdlib.h> // define maximum number of patients in a queue #define MAXPATIENTS 100 // define structure for patient data struct patient { char FirstName[50]; char LastName[50]; char ID[20]; }; // define class for queue class queue { public: queue (void); int AddPatientAtEnd (patient p); int AddPatientAtBeginning (patient …

Software Development c++ data-structure java queue user-interface
Member Avatar for kal_crazy
0
1K
Member Avatar for ghfeyn

Hi everyone, I am having trouble with getting output from the console onto a file, for example a .TXT. I suspect that I have to make use of the System.out function, but I can't quite figure out how I might use it. Thanks for the help

Software Development java
Member Avatar for JamesCherrill
0
6K
Member Avatar for OWSOME.GUY

.model large .stack 100h .DATA STR1 DB "ENTER YOUR NAME HERE : $" STR2 DB "JABBAR$" INSTR1 DB 20 DUP("$") INSTR2 DB 20 DUP("$") N DB ? S DB ? NEWLINE DB 10,13,"$" MSG1 DB "HAPPY BIRTHDAY BRO MAY BLESSINGS OF ALLAH BE UPON YOU (^_^)$" MSG2 DB "SORRY It'S …

Software Development assembly
Member Avatar for OWSOME.GUY
0
232
Member Avatar for gategold

public Matran Hieu2MT(Matran a, Matran b) { Matran c = new Matran(this.So_Hang, this.So_Cot); if (a.So_Hang == b.So_Hang && a.So_Cot == b.So_Cot) { for (int i = 0; i < this.So_Hang; i++) { for (int j = 0; j < this.So_Cot; j++) c.MT[i, j] = a.MT[i, j] - b.MT[i, j]; } …

Software Development
Member Avatar for ddanbe
0
129
Member Avatar for laleh.97

 We estimate pi.  We assume as in Figure 10 is a side of the square.  The first type, which defines a function IsInCircle Quadrant is the point or not.  intIsInCircle (floatx, floaty);  The number of random points that are inside the square, the Number of …

Software Development c mathematics
Member Avatar for rubberman
0
228
Member Avatar for natekelsey

I'm coming up with this error: Unhandled exception at 0x013c4218 in Hash_Table.exe: 0xC0000005: Access violation reading location 0x0000001c. Here's my driver: #pragma once #include <cctype> // Provides toupper #include <cstdlib> // Provides EXIT_SUCCESS #include <cstring> // Provides strchr #include <fstream> #include <iostream> #include <string> #include <sstream> // Operate on strings …

Software Development c++ open-source
Member Avatar for natekelsey
0
217
Member Avatar for Py New BB

Hello all, by using Python, i want to pickup the news titles on http://www.boston.com/yourtown/ and save them into a .txt file. i have 2 questions: 1. how can i have the codes run every 2 hours? 2. how can i have the outputs write into a .txt file? thanks. from …

Software Development python
Member Avatar for snippsat
0
165
Member Avatar for carbonfinger

// A program to use a run-time loaded DLL.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include <Windows.h> #include <iostream> using namespace std; //Creates a new type of variable which is a function pounter called, cryptFunPointer. typedef void (*cryptFunPointer) (int key , char inString, char …

Software Development c++ encryption
Member Avatar for mike_2000_17
0
298
Member Avatar for VUEKID

This function reads a text file and shows how many times a words appears in the text file, how do I save it to a different text file after running this function? std::ifstream f("test.txt"); std::istream_iterator<std::string> eof; std::multiset<std::string> words( std::istream_iterator<std::string>(f) , eof); for( std::multiset<std::string>::iterator i = words.begin(); i!=words.end(); i = words.upper_bound(*i) …

Software Development c++
Member Avatar for VUEKID
0
421
Member Avatar for FHUGE

hi good am, i just want to know how to make a simple anti virus using visual basic 6.0, i just want to ask the code for scan delete to detect a virus to automatic play the anti virus program thank you

Software Development visual-basic
Member Avatar for Ventor
0
210
Member Avatar for Lee_2

Hi basically I have been trying to set up the irrlicht engine with Visual Studio 2010 and after adding in the inlcude and library file paths it seems as though Visual Studio no longer recognises "stdafx.h" as a valid precompiler?? I know this has something to do with not being …

Software Development c c# c++ visual-studio
Member Avatar for Lee_2
0
272
Member Avatar for alon4963

How to set rand command, an integer from 3 to 50 (inclusive), but save it as a decimal number

Software Development c
Member Avatar for deceptikon
0
201

The End.