43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for cool_zephyr

hey i'm trying to generate numbers from 1 to 3 in a way such that number 1 has the probability 70% being generated number 2 has the probability of 20% of being generated number 3 has the probability of 10% of being generated how do i do that?? can anyone …

Software Development java
Member Avatar for cool_zephyr
0
209
Member Avatar for joeyliew7

how do i convert this code to VB? i am new in VB.Pls help. ABC (int xyz) { If xyz==0 { return(0) } else { return (xyz + ABC(xyz-1)); } }

Software Development visual-basic
Member Avatar for joeyliew7
0
216
Member Avatar for sash_kp

While copying a code snippet from some sites and pdf,docs line numbers are also getting copied.I have to omit those line numbers in my text editor manually always. Any better way so that line numbers won't be copied?

Software Development java pdf
Member Avatar for ddanbe
-1
298
Member Avatar for furalise

Hi all. I've read allot about streams but I'm wondering if anyone can tell me why cin >> stringstream doesn't work? I'm getting there but my understanding has some floors in it. eg. stringstream Mystr; cin >> Mystr; Thanks so much.

Software Development c++
Member Avatar for furalise
0
4K
Member Avatar for Smeagel13

Take the following C structure: typedef struct dataPoint { tick * tickData; struct dataPoint * previousDataPoint; struct dataPoint * nextDataPoint; } dataPoint; Compiling on a 64-bit system with 8-byte words, this structure takes up 24 bytes (3 words) of memory. 24 % 8 = 0 ... so it is word …

Software Development c c# c++
Member Avatar for Smeagel13
0
296
Member Avatar for nathan.pavlovsky

Hello, as a project I am working on a player vs. computer game of Connect Four- where the computer has a lot of attitude. My code is below; the comments explain everything. ` // A Player vs. Computer Connect 4 game` #include <iostream> #include <vector> #include <string> #include <cstdlib> #include …

Software Development c++ os-x
Member Avatar for nathan.pavlovsky
0
1K
Member Avatar for DrEinstein

Hi everyone, Does anyone have an idea of how to skip a line in a JTextField? In System.out.println, I would normally type n but it didn't work for me when I used it in a textfield: text1.setText(**"n"**+coloumn[counter]); where the output displays well as desired excpet that it doesn't skip a …

Software Development java java-swing
Member Avatar for DrEinstein
1
676
Member Avatar for satti

Dear fellows , its a nightmare for me to set the resolutions of vb.net forms autmoaticly adjustable. I would like to know what are the suggested size of the form and what are the parameters to set to make the form screen resolution adjustable. One thing to inform you that …

Software Development vb.net
Member Avatar for Luc001
0
216
Member Avatar for soche123

output should look like this * *** ***** ******* ********* ******* ***** *** * and seond one *************** *************** *************** *************** *************** Thank you guys in advance!

Software Development c++
Member Avatar for sanjulovers
0
182
Member Avatar for satti

The problem is i want to show a default value on form load in comobo box txt5, user dont need to click on it. am using goto focus and lost focus to grab data from data base . I need your suggestion that how to populate a combo txt5 on …

Software Development vb.net
Member Avatar for satti
0
622
Member Avatar for MasterHacker110

I am primeraly a programmer in C++. Recently I started with DirectX11 in C++. The two problems I have is: 1) I get this error when I try to compile my code: 1>------ Build started: Project: t, Configuration: Debug Win32 ------ 1> t.cpp 1>t.obj : error LNK2019: unresolved external symbol …

Software Development c++ visual-studio
Member Avatar for MasterHacker110
0
413
Member Avatar for eldiablo1121

Hello, I'm new to programming and I have to write a program for a retail store. The problem I'm having is when I repeat my loop, my "total" does not revert back to zero, so it will increment the previous total from the first loop iteration which essentially shows my …

Software Development c++
Member Avatar for tinstaafl
0
400
Member Avatar for Elixir42

Hi, Please may I have your help on this one. The error is: 1>------ Build started: Project: DXTB 17, Configuration: Debug Win32 ------ 1> Main.cpp 1> _MyDebug Defined... 1> _Main Defined... 1> _CApplication Defined... 1> _CSpriteManager Defined... 1> _CSprite Defined... 1> __CStats Called... 1> _CStats Defined... 1> _CVector3F Defined... 1> …

Software Development c++
Member Avatar for Elixir42
0
247
Member Avatar for intes77

im having problems with my input. i want the output to look like this [CODE] Enter first string: first <- user input Enter second string: second <- user input The contents are first and second[/CODE] but the output doesnt look like that and the input is messed up. what seems …

Software Development java
Member Avatar for mr_bit
0
174
Member Avatar for triumphost

template<typename T> void Transpose(T** Data, std::size_t Size) { for (int I = 0; I < Size; ++I) { for (int J = 0; J < I; ++J) { std::swap(Data[I][J], Data[J][I]); } } } int main() { int A[4][4] = { {1, 2, 3, 4}, {5, 6, 7, 8}, {9, 10, …

Software Development c++
Member Avatar for mike_2000_17
0
115
Member Avatar for ganges

hi have a nice time, I want to be an expert in Hibernate and decided to do certification in hibernate if there is any good books and links for hibernate projects kindly sugggest me, thanks in advance

Software Development java
Member Avatar for stultuske
0
125
Member Avatar for krystosan

I have a source code that opens a csv file and sets up a header to value association. The source code is given below: def ParseCsvFile(source): """Parse the csv file. Args: source: file to be parsed. Returns: the list of dictionary entities; each dictionary contains attribute to value mapping or …

Software Development open-source python
Member Avatar for chriswelborn
0
556
Member Avatar for vinnitro

class test { public static void main(String []vinnitro) { int n=5; for(int i=1;i<=n;i++) { if(i<=n/2+1) { for(int j=1;j<=i;j++) { System.out.print("*"); } } else { for(int k=n/2+2;k>=i-1;k--) { System.out.print("*"); } } System.out.println(); } } } It works as i expected but it is still very difficult to understand for me even …

Software Development java
Member Avatar for vinnitro
0
150
Member Avatar for Ancient Dragon

I have the code below in VS 2012. It dynamically allocates a DataGridView and an Update button, then it binds the grid to MS Access database table. That all works well. When I click the Update button btnUpdate_Click() is called, which calls the DataAdapter's Update() method. That produces the syntax …

Software Development dataset microsoft-access vb.net
Member Avatar for Ancient Dragon
0
953
Member Avatar for london-G

Hello, I don't know if I am posting this in the right section, I have a Java Database application(mysql). I have used netbeans to develop it. I have one table product_tbl which stores the stock level. I want to send an email notification to a specific email when the stock …

Software Development email java java-netbeans
Member Avatar for london-G
0
164
Member Avatar for daino

I'm trying to use std::ofstream to create a file but I'm getting an error. I'm using a string variable instead of a string. example below. std::ofstream Myfile("C:\\testfile.html"); // This works fine //but the below doesn't string mystring = "C:\\testfile.html"; std::ofstream Myfile(mystring); //doesn't work. Not sure why. Any clues?

Software Development c++
Member Avatar for Moschops
0
491
Member Avatar for Pobunjenik

Hi everyone! So, I hereby hope to show that I've made progress in coding java (largely due to the help of this great community). I want to thank everyone for dealing with me (especially James). :) The goal: The code below is supposed to seed a layout of boats into …

Software Development java programming-construct
Member Avatar for JamesCherrill
0
2K
Member Avatar for eos.paks

Good Day, I would like to ask some Help regarding on my Textfield that will not be allowed SPACES WITH NO CHARACTER, SPACES CHARACTER only be allowed is Characted Spaces Characted. Your Response is Highly Appreciated. Thank You.

Software Development vb.net
Member Avatar for eos.paks
0
2K
Member Avatar for DarrelMan

Making a command line interpreter for my Operating systems class The following line is giving me a problem if (strcmp(argv[0], "ren") == 0) { return RENAME; } For whatever reason it does not return anything. However if I change "ren" to "darrel" it returns the proper value of RENAME and …

Software Development c++ operating-system
Member Avatar for DarrelMan
0
196
Member Avatar for GregXaiver

Good Morning, My name is Greg and I am trying to teach myself to write code. But I have a question I wrote a program that compares a range of numbers and tells you the grade. The program works and dose what it is supposed to do but I have …

Software Development c++
Member Avatar for GregXaiver
0
172
Member Avatar for m_ishwar

Hello Guys I am trying to make a game with Tkinter. It involves selecting different options from a set of buttons. I created a root for the window, and am done with all the basic game programming. Its a football league simulator allowing players to select a team and choose …

Software Development python tkinter
Member Avatar for Schol-R-LEA
0
223
Member Avatar for Jake.20

Greetings everyone, Can someone help me please on this error, you can also point to me where the converstion of the data type happen. If Not ListView1.Items.Count = 0 Then Do Until iLoop = ListView1.Items.Count lvitem = ListView1.Items.Item(iLoop) With lvitem query3.Connection.Open() query3.CommandText = String.Format("INSERT INTO workout_title_tbl VALUES((Select customer_Id From registered_cust_tbl),@workout_Title,@customer_Workout,@workoutType,@workoutInstruct,@date_Created,@time_Created)") …

Software Development vb.net
Member Avatar for Jake.20
0
533
Member Avatar for daino

This is going to look like a very basic question to allot of you but for the life of me I can't find how to do this anywhere on the web. Allot of convoluted solutionsn out there. I simply want to save a textfile as a .html file. Having seriouse …

Software Development c++ html-css
Member Avatar for daino
0
1K
Member Avatar for shadyreal

Hi Im a student and just started 3D programming 2 weeks ago. I have this problem: I got a working collision detection against models created in Maya. But: The collision is only inside the model, with the normals on the model pointing out as it should be. If I revers …

Software Development c c# c++
Member Avatar for shadyreal
0
269
Member Avatar for pbj.codez

Howdy; I am currently working on a program to review what I have learned so far, in the PCASM book written by Dr. Paul Carter. I have accomplished 3/4ths of my overall goal, however; my program doesn't seem to like me especially the division part of it. The goal of …

Software Development assembly
Member Avatar for Assembly Guy
0
258
Member Avatar for GeekPlease

Good day folks, lines = IO.File.ReadAllLines(txt_Source.Text) I have here a line of code which reads a text file and save it to an array, It works well. But I wanna ask if there is anything like this code that can be use to read a excel file? Something like this …

Software Development microsoft-office vb.net
Member Avatar for GeekPlease
0
691
Member Avatar for Jacklittle01

How do I use pylunch? Step by Step would be awesome!

Software Development python
Member Avatar for JeoSaurus
0
144
Member Avatar for Jacklittle01

Can one turn a python file into a standalone executable for windows via a gui program? Thanks

Software Development gui python
Member Avatar for vegaseat
0
370
Member Avatar for abra_ka_dabra

I am trying to read a CSV file having no. of rows=row and no. of columns=col by the following method: public static String[][] FileIntoArray(int row, int col, String FileName){ int Filerow=0; int Filecol=0; String line; String[][] FileArray= new String[row][col]; File file = new File(FileName); try{ BufferedReader bf = new BufferedReader(new …

Software Development file-system java
Member Avatar for JamesCherrill
0
257
Member Avatar for london-G

Hello Daniwebers, I have my login form inwhich I read the value in mysql table to identify whether the password match with the role. I have on combobox with different roles(director, assistant...) which I have filled in manually. It does the work but I would like to do something else …

Software Development java
Member Avatar for JamesCherrill
0
160
Member Avatar for game06

i can some one help me with jframe and panel. i want to create button using jpanel. i look online but they seem to have different ways to do it and i have no idea which is the best way to do this. ex some people extends jframe at top. …

Software Development java
Member Avatar for pbj.codez
0
256
Member Avatar for otengkwaku

Hi guys i will like to know how to reprecate fseek(fp, -1) in C to python. Thus send the read head a charactor back

Software Development python
Member Avatar for TrustyTony
0
160
Member Avatar for new_developer

Hi there, Is there a way to check a variable if it is not initialzed by value ? I need a check for all datatypes. int num; if(!(numIsNotInitialized)) num = 12; else cout<<"num : " <<num <<endl;

Software Development c++
Member Avatar for mike_2000_17
0
357
Member Avatar for JOSheaIV

Hey guys, maybe you could help shed some light on an issue I ran into while running a program of mine tonight. I have built countless programs around downloading webpage data and parsing it to retrieve data, but during a running of one of my programs tonight I got an …

Software Development
Member Avatar for JOSheaIV
0
292
Member Avatar for MasterHacker110

I am have been programming in C++ for a few years now. Now I would like to also learn assembly language. I have tried NASM, but I dont like it, it works better on linux and my main development platform is windows. I have also tried FASM, its better but …

Software Development assembly
Member Avatar for pbj.codez
0
380
Member Avatar for LeNenne

Hi I have a lstdata3 with 4 emails in it and I will that thoose shall come up in a textbox seperated with ; at the end of each. the lstdata3 list is with the checkbox enabled so I can choose wich I will use. a commandbutton is used to …

Software Development visual-basic
Member Avatar for LeNenne
0
127
Member Avatar for jrosh

I am using StingBuilder.append("Address : {0}, {1}, {2} {3} \n", Street1, Street2, PostalCode, City); Problem is if Street1 or street2 is null String builder returns , ,code,city. I want to remove those commas(,) as well. how can i do that? Thank you in advance.

Software Development
Member Avatar for gusano79
0
164
Member Avatar for Mr.M

Hi DW I'm developing an ATM service and now I want to call the dispensor to dispence the amount enetered by the user after his/her balance has been validated, you don't worry about writing the validation balance code I wrote it so now I'm stuck here anyone who can help …

Software Development
0
100
Member Avatar for new_developer

Hi there, I am implementing the concept of polymorphism and write following program of shapes. #include <iostream> using namespace std; class Shape { protected: double width, height; public: void set(double w, double h) { width = w; height = h; } virtual double get() { return 0; } }; class …

Software Development c++
Member Avatar for new_developer
0
184
Member Avatar for P.manidas

How to return multiple value from a function in VB 6.0 Any suggestion sir/madam?

Software Development visual-basic
Member Avatar for P.manidas
0
3K
Member Avatar for sanyam.mishra

I got some source code on net for displaying 256 bit bmp in turbo c++ which is using some assembly codes (actually using asm---about which I don't know anything). Unfortunately during compilation it give an error saying "286/287 instructions not enabled". Help me troubleshooting this problem.

Software Development assembly c++
Member Avatar for sanyam.mishra
0
727
Member Avatar for dilbert_here00

Hi All, I was wondering if any one of you observed the time taken to download or upload a file over ftp using python "ftplib" is very large as compared to performing FTP get/put over windows command prompt or using perl's "Net::FTP" module. I created a simple FTP client similar …

Software Development perl python
Member Avatar for dilbert_here00
0
541
Member Avatar for CoilFyzx

Hello Good day. Here is the problem I am trying to solve. I have a table as seen below. ![232465554203149acd8363d3a4a127ae](/attachments/large/3/232465554203149acd8363d3a4a127ae.jpg "232465554203149acd8363d3a4a127ae") My GOAL: Columns A through G are going to be filled with integers. (I have already created an integer model so that these cells only take integers). As the …

Software Development java
Member Avatar for CoilFyzx
0
452
Member Avatar for poopuh

I've been asked to edit the code in this post http://www.daniweb.com/software-development/java/threads/455560/java-recursion-brute-force-sim so that it "Runs the function as a thread which wouldn’t then hang the program whilst it’s waiting for the result". I've looked it up, but I'm struggling to apply it to this program, any tips?

Software Development java multithreading
Member Avatar for JamesCherrill
0
645
Member Avatar for Ancient Dragon

I'm using VS 2012 and coding a try/catch block in an MS Access database project, but VS says OleDbException is not defined (see line 3 in the code). Anyone know why? I got some of this code from [here](http://social.msdn.microsoft.com/Forums/en-US/Vsexpressvb/thread/c822d48c-fd90-44a1-a186-a15e16966233/), and according to MSDN OleDbException is valid in vb.net Try data_adapter.Update(CType(binding_source.DataSource, …

Member Avatar for Ancient Dragon
0
240

The End.