874 Recommended Topics

Remove Filter
Member Avatar for
Member Avatar for pdk123

Hello, I want to call the function from a python file. By googling, it looks like I need to use the following function. I added a "Sample.py" in the same place where the exe is stored for the c++ . int main() { Py_Initialize(); // Create some Python objects that …

Software Development c++ python visual-studio
Member Avatar for pdk123
1
854
Member Avatar for WolfShield

Hello everyone, I am writing a program that has a part where the user can type in notes, and I would like the program to insert the date and time into the beginning of the note. I have the time and date part figured out: [CODE] import datetime now = …

Software Development python
Member Avatar for Ajeet_8
0
10K
Member Avatar for Hope_9

(a) Create a class named LivestockProject with fields that hold a membership number, the name of the member, surname, date of birth, gender, location and initial number of livestock (cattle) turned in. Include a constructor that initializes each field to appropriate default values. Also include methods to set and get …

Software Development c c++ java python visual-basic
Member Avatar for rproffitt
0
147
Member Avatar for Błkèęš
Member Avatar for JamesCherrill
0
45
Member Avatar for geetajlo

Hi every1 i have a form with a textboxid, buttonAdd, ButtonSave on it , when i click on the btnAdd it must show the id and when i click update it must really Save . I want to auto generate the id through codes ... can any1 help... I don't …

Software Development vb.net
Member Avatar for Ravi_79
-1
9K
Member Avatar for zak99

Consider the following implementation of the node and doubly linked-list: Extend the class doubly_linked_list by adding the following methods: *Largest method .This method should return the largest element in a doubly linked-list. *Delete method. This method should delete the first occurrence of an element (value) from a doubly linked-list. template …

Software Development c++
Member Avatar for Dani
1
91
Member Avatar for Joslup

Hello! guys, I am developing a java game, "the rabbit, turtle, bird," I have a small problem, I do not know how to put attributes to the objects created, for example, a goal of 60 feet, the turtle walks " shift "of 4-8 meters, 6-12 rabbit, but has a 60% …

Software Development gaming java
Member Avatar for Ayesha_17
0
725
Member Avatar for Griffin_3

nlp = spacy.load("en_core_web_sm") Error found OSError Traceback (most recent call last) <ipython-input-3-8d092272a28e> in <module> ----> 1 nlp = spacy.load("en_core_web_sm") ~\anaconda3\lib\site-packages\spacy\__init__.py in load(name, disable, exclude, config) 45 RETURNS (Language): The loaded nlp object. 46 """ ---> 47 return util.load_model(name, disable=disable, exclude=exclude, config=config) 48 49 ~\anaconda3\lib\site-packages\spacy\util.py in load_model(name, vocab, disable, exclude, config) …

Software Development python vb.net visual-basic xml
Member Avatar for Dani
0
175
Member Avatar for John Elbert

So far I'am using this code. The problem is it loads too slow when it is loading on my textbox, is there another way around it? I was just looking for suggestions or ideas. Thank you. Function qtyCheck() query = "SELECT SUM(prdInput) AS prdInput FROM ProdOutput WHERE HELPER ='" & …

Software Development vb.net
Member Avatar for Reverend Jim
0
54
Member Avatar for Jan_102

import math import numpy as np import matplotlib.pyplot as plt print("y = a^x + b") jarda=0 while jarda<=0 or jarda==1: jarda=int(input("zadej a ")) def v() : while True: číslo=(input("zadej b ")) try : return int (číslo) except ValueError print("nebylo zadané číslo") barca=b() A = int (input("zadej počáteční hodnotu def.oboru ")) …

Software Development python
Member Avatar for Reverend Jim
0
47
Member Avatar for Claire_6

Hi! I need help with my assignment. I need to convert this one to C language. I've already changed the cout to prinf, but somehow it doesn't run. Help please. #include <stdio.h> int main(){ int order,no_deals; cout<<"Grocery"<<endl; cout<<endl; cout<<"(1) Eggs 6 pesos only."<<endl; cout<<"(2) 1 kl Rice 60 pesos only."<<endl; …

Software Development c c++ visual-basic
Member Avatar for rproffitt
0
97
Member Avatar for Aldrich_2

I have a variable called **arrayForStudents**. it has 5 columns you can see how should it be applied from line 51 to line 63 code block but I am getting trouble how should I add the value as simple as interting values in the database. I need help using System; …

Software Development c# c++
Member Avatar for rproffitt
0
90
Member Avatar for Donnolic

I have a VB.net project that queries my online database directly. Now I want to use API instead of direct connection. Please I have never done such before and all materials I got online are not learning friendly and some that are friendly didn't have relation with database. And secondly, …

Software Development asp.net microsoft mysql vb.net
Member Avatar for Dani
0
85
Member Avatar for Dan_860

I am having trouble appending an arraylist to an existing textfile, it appends but in the process clears all of the existing data inside of the file. Please can you help :) many thanks in advance Scanner myScanner = new Scanner (System.in); ArrayList<Books> details = new ArrayList<Books>(); int ISBN; String …

Software Development microsoft
Member Avatar for rproffitt
0
46
Member Avatar for Deekshitha
Member Avatar for kww228

I am trying to get my program to do a simple math problem of A*B+C*D given a set of test numbers. I have the code written out, but after I input numbers for A and B it goes into an infinite loop. My code is this: [CODE]ORG 100 Load A …

Software Development assembly
Member Avatar for Mariam_16
1
4K
Member Avatar for Yogendra_2
Member Avatar for Idestruction

Hello all! I am trying to complete a lab assignment for my computer systems class and we have to use the printf function to print changing register values (increment eax from 1 to 10, decrement ebx from 10 to 1). Here is my code: [CODE]; Purpose: To print data to …

Software Development assembly
Member Avatar for John_310
0
22K
Member Avatar for Bhoot

i am developing a visual studio solution that contains two projects. Each project has its own namespace : Project1 : namespace MainProject.Project1 Project2 : namespace MainProject.Project2 My problem is that i cannot access 2nd project's namespace in the 1st project and vice versa. I tried to add the namespace through …

Software Development
Member Avatar for V._549
0
11K
Member Avatar for collin_ola

Hi, Could somebody provide me with an example of how to display data (some text) in a combobox? Thanks Collin

Software Development vb.net
Member Avatar for Muskan_9
0
8K
Member Avatar for Debby0424

Hello All, I am submitting a inventory program that I need some help with. I had to create a product class that holds the item number, the name of the product, the number of units in stock, and the price of each unit. Then I needed to create a java …

Software Development java
Member Avatar for Batha
0
7K
Member Avatar for daledan

help!!!... i have homework to create a simple address book in Visual C++ it should Add, Delete, Modify, Display A Record using classes/class, file handling & structure... It would be a big favor doing it..

Software Development c++
Member Avatar for Mian_13
0
741
Member Avatar for Aurora51x

|Visual Studio C# Windows Form Application| I'm trying to load and save multiple comboboxes selections to a XML file or file to a specific location using diolog box to know where to save and load. Any help will be appreciated.

Software Development microsoft xml
Member Avatar for rproffitt
0
173
Member Avatar for Harvey_4

Hi, i wanted to see if someone can help me, im new on this so i dont understand very good, any way, im trying to make a pic that show de characters that recive by bluetooth, to do that im using UART and a LCD, if someone can help with …

Software Development c
Member Avatar for rproffitt
0
74
Member Avatar for Duki

Hey guys, here's the question I'm asked. **a.** *Define an enumeration type, triangleType, that has the values **scalene, isosceles, euilateral, and noTriangle**.* **b.** *Write a function, triangleShape, that takes as parameters three numbers, each of which represents the length of a side of the triangle. The function should return the …

Software Development c++
Member Avatar for Dani
1
5K
Member Avatar for foumzeur

Hi, I'm facing a problem: I've to make an undo/redo using Command's design pattern. I've succed to make one, but when I want to use my undo/redo btn in an other view, it gives me an NullPointerException. Does anyone can help me? Here's the code of the 2 view's First …

Software Development java
Member Avatar for JamesCherrill
0
207
Member Avatar for Cyril1

I have two different files, fileA contains employee data (ID and townCode) while file B contains field office data (OfficeID, Town, TownCode, officeCapacity) and a town can contain more than one office. i want to distribute these employees to the offices in the town against their names evenly What I …

Software Development asp.net mysql vb.net visual-basic
Member Avatar for Paul Norris
0
173
Member Avatar for rhea_6

package student; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); StudentA stud1 = new StudentA(); System.out.print("Please Enter Student Name:"); stud1.Name = scan.next(); System.out.print("Please Enter Student ID:"); stud1.StudentID = scan.next(); System.out.print("Please Enter Course:"); stud1.Course = scan.next(); System.out.print("Please Enter Student Section:"); stud1.Section = …

Software Development java
Member Avatar for Paul Norris
0
85
Member Avatar for Deepak_71

I have my resoruces stored in mysql DB: eg : > |IPaddress | Status| |10.x.x.x| yes| |10.1.x.x| yes| I am trying to get the available resource and after that will update DB with status No. > query = ("SELECT IPaddress from TABLE where status='yes'") cursor = mydb.cursor() cursor.execute(query) result=cursor.fetchall() query1 …

Software Development mysql python
Member Avatar for Dani
0
45
Member Avatar for Dima_5
Member Avatar for Naheedmir
0
140

The End.