132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for markdean1989

I have an issue with the random generator. I use the code; myNumber = rand() % 100; //for numbers 1 - 100; My problem is, the numbers getting generated have a pattern. Such that the first output is 33, 43, 62, 29, 0, 8 ... Why is this so? I …

Software Development c++
Member Avatar for rubberman
0
637
Member Avatar for J.C. SolvoTerra

I was wondering if there was an existing method within the .Net frame work which will copy every nth element of an array to a differant array with an initial offset e.g. Original Source Array (Bytes) 11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30 Original Target Array 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00 Source Offset 1 Source Step 3 Target Offset 3 …

Software Development
Member Avatar for overwraith
0
2K
Member Avatar for imti321

I am getting this error while trying to login to my school managment software.It gives error message when i dont write anything in username and password but when i type correct login details it gives this error An unhandled exception of type 'System.Data.SqlClient.SqlException' occurred in System.Data.dll Additional information: A connection …

Software Development vb.net
Member Avatar for imti321
0
232
Member Avatar for AmrMohammed

What is the best way for blocking DLL for not publishing the code inside the library?

Software Development publishing
Member Avatar for Suzie999
0
191
Member Avatar for Yuki_1

Hi,I would like to do a sorting when i had add new record,the new record must shown on the top of datagridview.It will always show latest record on top of the others old records.I had try several method that found from website but still cannot work!!! **code for load database …

Software Development c# vb.net
Member Avatar for djjeavons
0
304
Member Avatar for Quazy

Hello I am creating a little application, using VB.net, and Access database. I want to count the number of records whitch have more than 6 hours difference between records. Is it possible to have a query to count the number of recordset where the "Time End" and "Time Start" of …

Software Development sql vb.net
Member Avatar for Quazy
0
226
Member Avatar for Goldfinch

** I was building a program that is supposed to paint an image in a JPanel. I should be able to select an image (such as a JPEG) from the Open item in the File drop down menu and then it should be visible in a new window. However, the …

Software Development gui image java java-swing
Member Avatar for Goldfinch
0
201
Member Avatar for Fernando_7

Hey guys I need a push in the right direction im confused on how to iterate through this string "feeenhpoorilumayngtumseatsdmepotositnsfrlerruepsrennurdaorantiedbeunrtioradarahe" frontwords and backwards a push in the right would be pleasent if anyone can help

Software Development c++
Member Avatar for Petcheco
0
106
Member Avatar for cypherscouter13

I have the following code int main() { compute(); return 0; } void compute() { double Ptr; vector <double> Vector; for (int u=0; u<N; u++) { computeFor(u, Vector, Ptr); Vector.push_back(EnergyPtr); } } void computeFor(int i, vector<double> &List, int u, vector<double> &Vector, double &Ptr) { int Num = List.size(); int pos[2][Num]; …

Software Development c++
Member Avatar for rubberman
0
325
Member Avatar for Asira18

Hi guys am writing a program for a restuarnt and its about their menu. am in need of corrections,ideas and anything that will make the program excellent thanks..below is the code. #include <cstdlib> #include <iostream> #include <cstring> using namespace std; int main(int argc, char *argv[]) { int num1,num2,num3,num4,num5,num6; cout<< "WELCOME …

Software Development c++
Member Avatar for Asira18
0
228
Member Avatar for samasif

Amazon is famous e-commerce company and one of the biggest Internet based retailer. Amazon is also a great river in South America, largest river by discharge of water in the world. You are provided two text files completely taken from Wikipedia, one file is the description of Amazon the company …

Software Development c
Member Avatar for samasif
0
202
Member Avatar for tgreiner

I am reading a data set where each data line contains a value that I want to read over and then ignore. So, I create three variables as: int number1, number3; float number2; and read them in. I use the data in number1 and number3, but never use number2 (other …

Software Development c++
Member Avatar for rubberman
0
4K
Member Avatar for Satyam_1

HI I have vb.net with ms access database application. I want to create log in form Here is my code but when enter the details and hit Login button it says"datatype mismatch error" Dim con As New OleDbConnection Dim cmd As New OleDbCommand Dim rd As OleDbDataReader con.ConnectionString = "Provider=Microsoft.ACE.OLEDB.12.0;Data …

Software Development microsoft-access open-source vb.net
Member Avatar for altjen
0
253
Member Avatar for My_1

I know the following sound a homework problem but it not it a study guild I to study but i am stuck. I really need help. I dont want to fail the test tomorrow The following C code defines Fibonacci function int fib (int n) { if (n == 0) …

Software Development c++
Member Avatar for My_1
0
341
Member Avatar for BustACode

Recently I started teaching teens programming. I use Python for them. An adult approached me and asked if I would teach her. The problem is that she's in her 40s, and hasn't had to think logically or algorithmically since high school, if ever. Scratch/Snap is too basic, and Python, in …

Software Development microsoft programming-construct
Member Avatar for vegaseat
0
237
Member Avatar for Dom_1

write a program in Q basic programming language that will produce and calculate the average of five numbers.

Software Development
Member Avatar for vegaseat
0
113
Member Avatar for chotep

Hi.. I have this problem in vb 2008 with this MDI parent form.. I know that you can't put any imageBackground for this, so I've just put a pictureBox the size of the MDIparent form to make it look like its background. But when I'm opening another form(it is just …

Software Development image vb.net
Member Avatar for melvinbelo
0
2K
Member Avatar for Gà_1

*I wrote these problems last night (except 19th problem), and code them at the morning, so, hope you all enjoy coding. This is ordiginal post of these 20 problems. Any question about the clarity of problems please post on below or contact me via pm, and your solutions too.* *If …

Software Development c github
Member Avatar for Gà_1
0
382
Member Avatar for jez9

ive got a table: code, stocksretail, stocksws and numexpected for example code: 0001, stocksretail : 24, stocksws: 1, numexpected :24 (numexpected = 1wholesale that contains 24pcs in retail) code: 0002, stocksretail : 24, stocksws: 1, numexpected :24 my problem is when i buy the two items above, the stocksretail should …

Software Development vb.net
Member Avatar for jez9
0
511
Member Avatar for jatin24

I'm facing this strange problem while working with DataGridView. In my application that i'm building, there is a form with some tabs, and im using the dataGridView Controls in some of the tabs. These dataGridView controls have already been configured, with a number of columns already added, and has been …

Software Development vb.net
Member Avatar for sebbu
0
2K
Member Avatar for ddanbe

This is just for fun. You know how old you are(I hope), but do you know how many days you are walking around on this planet? The two routines presented here could be used more practically in an ever present employee application.

Software Development
Member Avatar for ddanbe
0
731
Member Avatar for jamesjohnson25

header : [u'ID', u'Hindi', u'Telugu'] 1 .[u'hhd1', u'\u0924\u093e\u091c\u093e\\JJ \u0938\u093e\u0901\u0938\u0947\u0902\\N_NN \u0914\u0930\\CC_CCD \u091a\u092e\u091a\u092e\u093e\u0924\u0947\\JJ \u0926\u093e\u0901\u0924\\N_NN \u0906\u092a\u0915\u0947\\PR_PRP \u0935\u094d\u092f\u0915\u094d\u0924\u093f\u0924\u094d\u0935\\N_NN \u0915\u094b\\PSP \u0928\u093f\u0916\u093e\u0930\u0924\u0947\\V_VM \u0939\u0948\u0902\\V_VAUX \u0964\\RD_PUNC', u'\u0c24\u0c3e\u0c1c\u0c3e\u0c36\u0c4d\u0c35\u0c3e\u0c38\\JJ \u0c2e\u0c30\u0c3f\u0c2f\u0c41\\CC_CCD \u0c2e\u0c3f\u0c32\u0c2e\u0c3f\u0c32\\JJ \u0c2e\u0c46\u0c30\u0c3f\u0c38\u0c47\\V_VM_VNF \u0c26\u0c66\u0c24\u0c3e\u0c32\u0c41\\N_NN \u0c2e\u0c40\\PR_PRP \u0c35\u0c4d\u0c2f\u0c15\u0c4d\u0c24\u0c3f\u0c24\u0c4d\u0c35\u0c3e\u0c28\u0c4d\u0c28\u0c3f\\N_NN \u0c35\u0c3f\u0c15\u0c38\u0c3f\u0c66\u0c2a\u0c1c\u0c47\u0c38\u0c4d\u0c24\u0c3e\u0c2f\u0c3f\\V_VM_VF .\\RD_PUNC'] Data explanation The first column is the id of the sentence The second column is the sentence in hindi language The third column …

Software Development python
Member Avatar for rubberman
0
267
Member Avatar for James_44

I can't figure out how to get my functions to work. I have to use void functions but I'm lost. I have to bring data in. An array of numbers. 8 27 33 14 81 146 305 249 412 71 226 4 144 55 97 493 133 265 788 240 …

Software Development c++
Member Avatar for tinstaafl
0
209
Member Avatar for marktwo

Hi, When I run it Dim A As Single A = 12.345 Debug.Print Round(12.345, 2) Debug.Print Round(A, 2) I got different results: 12.34 12.35 Can you tell me why?

Software Development visual-basic
Member Avatar for Reverend Jim
0
231
Member Avatar for m-soft

Hello, I am trying to learn c# and sql server and I am not sure how should I proceed in the following situation: I have a database with 2 tables: Clients and OrdersFromClients I am trying to make a form with a listbox in which I will display all the …

Software Development dataset sql
Member Avatar for djjeavons
0
229
Member Avatar for Mayukh_1

Please explain when this error occurs.. duplicate symbol _Firstdata in: list.o main.o ld: 1 duplicate symbol for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

Software Development c
Member Avatar for Mayukh_1
0
131
Member Avatar for london-G

Hi! Basically I am trying to add the graph inside the Jpanel which already exists. I am getting the erorr "adding a window to a container" Here is my code public void displayGraph(){ try{ String sql = "Select pressure, ventilage from statstbl"; DBCon conn = new DBCon(); JDBCCategoryDataset dataset = …

Software Development dataset java
Member Avatar for JamesCherrill
0
353
Member Avatar for hadisur_rahman

#include<iostream> using namespace std; class B { int a; public: int b; void get_ab(); int get_a(); void show_a(); }; class D :public B { int c; public: void mul(); void display(); }; void B::get_ab() { a=5;b=10; } int B::get_a() { return a; } void B::show_a() { cout<<"a="<<a<<"\n"; } void D::mul() …

Software Development c++
Member Avatar for Hassan_12
0
252
Member Avatar for m andrew

i need a c++ code which explain insertion and deletion of nodes from any position

Software Development c c# c++
Member Avatar for Hassan_12
0
250
Member Avatar for Nuruhee

import java.util.*; import Jama.Matrix; import java.util.*; import Jama.Matrix; public class Suceses { public static void main(String[] args) { System.out.println("회전할 각도를 입력하시오 :"); Scanner a = new Scanner(System.in); int kakdo = a.nextInt(); System.out.println(a); double rad = (kakdo*Math.PI)/180; int x= 50; int y= 30; Matrix A = new Matrix(new double[][] { {Math.cos(rad),Math.sin(rad)}, …

Software Development java
Member Avatar for Markland
0
389
Member Avatar for Rohith_1

Hi, i am developing an application in C#,i have create database1.mdf by right clicking on my project,add item then creating a database. my intial problem was,i was able to execute query correctly but those modification wasn't reflected in main database finally after lot of surfing i changed copy to output …

Software Development c# file-system
Member Avatar for hericles
0
271
Member Avatar for jamesjohnson25

How to seperate two languages(English,Hindi) in python This is my Sample data 1 . wikiner2013inflected 1-1 1.000 Sharaabi शराबी 2 . ted 1-1 1.0 politicians do not have permission to do what needs to be done. राजनीतिज्ञों के पास जो कार्य करना चाहिए, वह करने कि अनुमति नहीं है . …

Software Development python
Member Avatar for jamesjohnson25
0
440
Member Avatar for hadisur_rahman

``***Help*** me to add more code using c/c++ given bellow program that means (( you can input a password and the output checking the password is valid or not and also the password is hard or weak)) the program,s output show....the given password is too strong or strong or weak …

Software Development c
Member Avatar for Moschops
0
4K
Member Avatar for Petcheco

Hello, guys. I've wrote the following code #include <iostream> #include <string.h> #include <string> #include <locale> #include <stdio.h> #include <stdlib.h> #include <limits> #include <vector> #include <windows.h> using namespace std; string Numero_de_Matricula = ""; string Nome = ""; int Numero_de_Materias = 0; int Numero_de_Creditos = 0; vector<double> creditos (10); vector<double> Coeficientes(10); double …

Software Development c++
Member Avatar for Petcheco
0
134
Member Avatar for seriy

need help with the above same discussion

Software Development
Member Avatar for Stuugie
0
62
Member Avatar for Bartosz

I am having problem to implement maxOccurs in my XML Schema: error I am getting is Repeating sequence type at line 17 has more than one child My Schema: xs:simpleType name="nameType"> <xs:restriction base="string"> <xs:minLength value="1" /> <xs:maxLength value="20" /> </xs:restriction> </xs:simpleType> <xs:element name="information"> <xs:complexType> <xs:sequence> <xs:element name="personal" maxOccurs="10"> <xs:complexType> <xs:sequence> …

Software Development c xml
Member Avatar for rubberman
0
216
Member Avatar for Bartosz

I am having problem with maxOccurs in my code.. it is cauisng an error. Could anyone could aid me to avoid having error? <xs:simpleType name="nameType"> <xs:restriction base="string"> <xs:minLength value="1" /> <xs:maxLength value="20" /> </xs:restriction> </xs:simpleType> <xs:element name="information"> <xs:complexType> <xs:sequence> <xs:element name="personal" maxOccurs="10"> <xs:complexType> <xs:sequence> <xs:element type="nameType" name="name"/> <xs:element type="nameType" name="surname"/> …

Software Development xml
Member Avatar for rubberman
0
233
Member Avatar for Mya:)

Im writing a program that keeps track of a bussiness/banks loans and also shows results of the payments recieved and payments not recieved. basicly it's just a program for loans. i need a name and logo for it, any ideas?

Software Development delphi pascal
Member Avatar for Mya:)
0
403
Member Avatar for Alikhan094

Find Degree for each Node of given graph by Pthread library. The size of graph can be very large, so you need to parallelize program to multiple threads. Number of threads to use should be given from command line. INPUT(graph.txt): first line contains N, number of cities. Next N lines …

Software Development c
Member Avatar for Stuugie
0
318
Member Avatar for Krysis

Hey all, This is my first time posting on GoExpert, so I'm excited to see what the community here has to offer! Anyway, I am currently working on creating a compiler (using Flex and Bison) in C for a subset of the Pascal programming language in my Compilers course... and …

Software Development c file-system web-design
Member Avatar for Schol-R-LEA
0
1K
Member Avatar for kayleigh0411

Everything is working fine in my program with no compliling errors. However, when I go to list the data, it writes it twice. I can't figure out what is wrong in my code. #include <stdio.h> #include <string.h> struct inventory { int number; char toolName[15]; int quantity; double price; }; int …

Software Development c
Member Avatar for kayleigh0411
0
163
Member Avatar for Yuki_1

Hi, in my project i need to update the attn_dateTimeOut in database.After i updated it will automatic delete the specific row record that had been updated. I had two question: 1) in my database there are a few table is assign not null."attn_dateTimeOut" is a table that haven insert any …

Software Development c c# c++ vb.net
0
107
Member Avatar for moe11223

I am new to OOP, i am not sure if this is the correct approach or not. Need some insight. Assignment 3 Write a class named CreditCard that has (at least) the following member variables: name. A String that holds the card holder’s name. cardNumber. A field that holds the …

Software Development java oop
Member Avatar for stultuske
0
4K
Member Avatar for TKLightening

Hello well I always wanted to make a videogame i just didnt know how so I read up on some books and kinda learned a little bit but what would be the best programming language for making a game that would do well and not a game that is just …

Software Development
Member Avatar for TKLightening
0
219
Member Avatar for Petcheco

Hello, guys. I wrote the code to a Quadratic Equations Solver and I'd like for you to run the program and read the source code and give me tips on what I can improve, what is good and what is bad, suggestions, etc. . #include <iostream> #include <locale.h> #include <math.h> …

Software Development c++
Member Avatar for Petcheco
0
280
Member Avatar for AndroidUser

When launching exe file, I am getting the following error, 'The registry refers to a nonexistent Java Runtime Environment installation or the runtime is corrupted. The system cannot find the path specified'. No issues with Environment settings. Can you please help on this. This is really very urgent issue. Kindly …

Software Development java
Member Avatar for AndroidUser
0
2K
Member Avatar for jez9

Really need help please this is my code: Sub updteWS() Dim sql = "select Count(*) from ItemProduct where Code= ?" Dim cmd = New OleDbCommand(sql, conn) cmd.Parameters.AddWithValue("@Code", LVCart.Items(0).SubItems(0).Text) Dim result As Integer = Convert.ToInt32(cmd.ExecuteScalar()) cmd.Parameters.Clear() cmd.Dispose() If result > 0 Then For Each x As ListViewItem In LVCart.Items Dim Stocks_WS1 …

Software Development vb.net
Member Avatar for jez9
0
218
Member Avatar for bthorat22

I want to reload my form in Vb6 without closing it. I am sending a data through serial comm and receiving it. Now i want the repeat the procedure again without closing the Form. The problem is , I don't want to unload the form.It should get reloaded automatically

Software Development visual-basic
Member Avatar for bthorat22
0
4K
Member Avatar for NOVICE3

I have object names in a ListBox. When a name(line) is clicked, I need to know which line (by number) has been selected. Using that number, I can then do various operations including inserting text into 7 different text boxes. The line number would be the determining number for a …

Software Development
Member Avatar for JerrimePatient
0
250
Member Avatar for nikki_2

can you pls help me for this , " write a program that will accept 3 row and 1 column integer number compare the value of x,y,z.

Software Development c c# c++
Member Avatar for Schol-R-LEA
0
132

The End.