132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for mystycs

Is there a way to sort a vector with a class that has an int variable? I want to have my vector sorted and printed in console. I want to be able to sort the vectors. Say i create a bunch of vectors here on user input `vector<PCB> Disks2[DiskDevices];` Basically …

Software Development c++ queue
Member Avatar for Schol-R-LEA
0
421
Member Avatar for settu

if (con.State == ConnectionState.Open) con.Close(); con.Open(); SqlCommand c = new SqlCommand("select word,category from unwanted", con); //SqlCommand c = new SqlCommand("select word,category from unwanted where word ='"+txtWhatsOnYourHeart.Text+"' ", con); SqlDataReader r = c.ExecuteReader(); // if (r.Read()) while(r.Read()) { al.Add(r[0].ToString()); //a = r[0].ToString(); b = r[1].ToString(); } a = txtWhatsOnYourHeart.Text; int cnt=0; …

Software Development algorithm session
Member Avatar for ameerbatcha
0
154
Member Avatar for Twee Nguyen

I have a problem with the error "cannot convert from 'int' to char[][] ". I check it for many times but I do not know how to fix. I just start with C. Could you help me, please? The error in the lines 23, 25, 28, 32, 64. I would …

Software Development c web-design
Member Avatar for Stavros_1
0
1K
Member Avatar for bejfake

Hi, I need to link a library you can download from producer's site (http://www.dahuasecurity.com/download_3.html) to my c++ project. The library is named General_NetSDK_Eng_Windows64_IS_V3.40.2.R.130321.7z. I tried to: * Linker->Input : added to addidiontal dependencies lines: dhnetsdk.lib dhconfigsdk.lib * Linked->General : added to additional library directories a "D:\dahua\" directory which includes files …

Software Development c++
Member Avatar for bejfake
0
546
Member Avatar for Anna123

Dear All, I have two files first file looks like this, ENSG00000000003.10 0 and the second one like this, ENSG00000000460.12 24chr1 HAVANA 11869 14412 . + . + . gene_id "ENSG00000223972.4"; transcript_id "ENSG00000223972.4"; gene_type "pseudogene"; gene_status "KNOWN"; gene_name "DDX11L1"; transcript_type "pseudogene"; transcript_status "KNOWN"; As you see I nee dto comapre …

Software Development perl
Member Avatar for Anna123
0
228
Member Avatar for dedon4

hi,please i need help in the thorough explanation of this program, madlip.py """String Substitution for a Mad Lib Adapted from code by Kirby Urner""" storyFormat = """ Once upon a time, deep in an ancient jungle, there lived a {animal}. This {animal} liked to eat {food}, but the jungle had …

Software Development python
Member Avatar for slate
0
328
Member Avatar for mystycs

Is there a way to mimic creating multiple queues like this but with priority queue? This is what i have but i want to now use a priority queue. queue<PCB> Disks[DiskDevices]; I tried this but it doesnt work. priority_queue<PCB> DisksTest[DiskDevices]; It wont compile? What am i doing wrong?

Software Development c++ queue
Member Avatar for mystycs
0
493
Member Avatar for Hüsnü

How can I reach to source code of a web page with python ? I use these code block but it doesn't work perfectly. If I open the html file(site.html) on a web browser, some characters disapper. import urllib.request req = urllib.request.Request('https://www.google.com') response = urllib.request.urlopen(req) the_page = response.read() a = …

Software Development open-source python web-browser
Member Avatar for slate
0
389
Member Avatar for Yimeng

I've learned the hello.c using FUSE. It can create a hello file under mountfile. But I've no idea about how to create a folder under the mountfile and then create hello under mountfile/folderIcreate. then I can use cat mountfile/folderIcreate/hello the code is similar to the simple hello.c. #define FUSE_USE_VERSION 30 …

Software Development c
Member Avatar for Yimeng
0
360
Member Avatar for Emma_3

I'm trying to store the contents of a file containing names of herbs and spices (items) in a 2D array called PantryContents. Then I'm trying to add an item to that array. It seems like only one item is being stored at a time, but the output is correct but …

Software Development c++
Member Avatar for Emma_3
0
265
Member Avatar for Firstgamefreak

I would like to know what you as a community think of my code in terms of database connection and SQL statements. How I do it physically. Let me know if there are any improvements I could make and if there are, point me in the direction on what i …

Member Avatar for Firstgamefreak
0
305
Member Avatar for learner_new

Here is my code. #include <iostream> #include <math.h> #include <winsock.h> #include <windows.h> #include<stdio.h> #include<stdlib.h> #include<string.h> using namespace std; int main() { SOCKET s; WSADATA wsadata; int error = WSAStartup(0x0202, &wsadata); //Did something happen? if (error) return false; //Did we get the right Winsock version? if (wsadata.wVersion != 0x0202) { WSACleanup(); …

Software Development c++ socket-programming
Member Avatar for BobS0327
0
341
Member Avatar for nekoleon64

My Name is Leonard E. Norwood Jr. I'm Undergraduate student from Norfolk State University in Norfolk Virginia. Getting down to the point, my program is supposed to print out a list of pre-set numbers in reversal. I used pointers for this, however, something went wrong so I'm trying my best …

Software Development c c# c++
Member Avatar for iamthwee
0
375
Member Avatar for phony

I get an error when I try to compile my code. I can't figure it out. It says it's not declared but I think it is declared. // // // This menu-driven program is used to allow the user to choose // an application to be executed. // // // …

Software Development c++ mathematics
Member Avatar for phony
0
760
Member Avatar for JCSOW

import java.util.*; import java.lang.*; import java.io.*; class EncodeThePhase { public static void main (String[] args) { //set up keyboard input Scanner scan = new Scanner(System.in); //Ask for string from keyboard System.out.println("Please input your phase:"); String input = scan.nextLine(); //Ask for an offset number System.out.println("Please input your offset integer:"); int x …

Software Development java
Member Avatar for Doogledude123
0
217
Member Avatar for pspwxp fan

Hi Daniweb, I'm new to Assembly level programming and have been given an assignment in MIPS. Having started to plan the assignment, I have come to a rather open ended question that I want your opinion on: given that one has only so many registers to work with on Assembly …

Software Development assembly
Member Avatar for Schol-R-LEA
0
287
Member Avatar for Doogledude123

The "Invalid Property" Error is thrown at Line 20, which is for the TextField. No idea as to why it is being thrown. <?xml version="1.0" encoding="UTF-8"?> <?import java.lang.*?> <?import javafx.scene.control.*?> <?import javafx.scene.layout.*?> <?import javafx.scene.text.*?> <VBox prefHeight="400.0" prefWidth="284.0" xmlns="http://javafx.com/javafx/8" xmlns:fx="http://javafx.com/fxml/1"> <children> <AnchorPane maxHeight="-1.0" maxWidth="-1.0" prefHeight="375.0" prefWidth="285.0" VBox.vgrow="ALWAYS"> <children><Button fx:id="zero" layoutX="14.0" layoutY="321.0" …

Software Development java xml
Member Avatar for Doogledude123
0
999
Member Avatar for tony75

Hi I would like to learn how to code System Programming for windows via python(Python System Programming) Any tip or suggestion?where can I begin! Any recommend books,links and video tutorial? I appreciate your help

Software Development python seo video
Member Avatar for slate
0
855
Member Avatar for PerplexedB

Please consider my ondrawitem methods of my derived checkedListBox class. At this stage I put "-->" in front of he selected item and " " in front of the others. I would like to replace that with a checked box (square) and an empty box respectively, very much as in …

Software Development vb.net
Member Avatar for xrjf
0
462
Member Avatar for Curious Gorge

I need to know if AV software would interfere with my programming hobby. I'm asking this not because I'm writing some kind of malicious code but because I've noticed strange errors when doing things with my programming. For example I'm interested in modding a game with Lua, but after downloading …

Software Development
Member Avatar for Curious Gorge
0
136
Member Avatar for moaz.amin.37

i need some information about the Assembly instruction in processor iapx 8088. if there is any link of any articles that can help me then plz send me this is my assignment. And i want good grades in my assignment.

Software Development assembly
Member Avatar for Schol-R-LEA
0
177
Member Avatar for pezza

Hi All, Having a few issues with some DB functions in my code at the moment. This code was developed by another user who kindly helped me out, and I know for sure it was working. The difference being that after having some compatability issues when upgrading to a new …

Software Development vb.net
Member Avatar for pezza
0
320
Member Avatar for Sarkurd

Hi i was following a tutorial but i stuck at something i don't understand it This is to find out how many times a number appeered inside an array sorry for my English #include <iostream> #include <conio.h> using namespace std; int main() { const int size = 5; int arr[size] …

Software Development c++
Member Avatar for Sarkurd
0
309
Member Avatar for abaddon2031

So i am trying to take some code that i had working before and turn it into a function but every time i run my code it kicks it to line 9 in my code which is a continue statement and says the its not properly in the loop. I …

Software Development python
Member Avatar for abaddon2031
0
242
Member Avatar for brittney_2

I need to print out the titles for family members being stored in an array, but I am having issues with the report. It prints out all the stored names, instead of the ones that belong to each family member and one line for each. I'm new with arrays so, …

Software Development java
Member Avatar for Steve_O
0
245
Member Avatar for Doogledude123

Alright, so I have seen `<<` and `>>` in a few different Java Programs and I have an idea of what they do, but I have no idea what you would use them for. I haven't ran into a problem where I need to use them, so if someone could …

Software Development java
Member Avatar for Doogledude123
0
186
Member Avatar for DGULLIVER

Hi Everyone, I need my application to loop through all unread items and action depending who send the email. This I can do with no issues. The problem I'm having is when I mark the message as read the Items Count decreased in real time. Here is my full code: …

Software Development vb.net
Member Avatar for PerplexedB
0
2K
Member Avatar for anand01

Hi all, If we implementing an interface then is that should be inheritance? Kindly any one clarify my doubt

Software Development java
Member Avatar for jwenting
0
184
Member Avatar for ADETUNJI_1

I am new to java programming and I just created a simple program that connects to a mysql database to update a Jtable right on my laptop. Now I want to install the program on my friends laptop and we want to share the same database. Do I have to …

Software Development java mysql
Member Avatar for jwenting
0
887
Member Avatar for sasikrishnasamy

Hi, I have got a doubt In String. String objects are Immutable and StringBulider/StringBuffer objects are mutable. Almost we can do all the String functionality in StringBulider. Then why we need to use String instead of String builder/StringBuffer. Is there any specific reason available for using String? kindly clarify my …

Software Development java
Member Avatar for jwenting
0
123
Member Avatar for anand01

hi all, As of my understanding hash set will not allow duplicates. But when I add two different object of same class with same value it is accepting, at the same time same object with different values are not accepting.Kindly clarify me Senario-1 TestBean testBean = new TestBean(); testBean.setId(1); testBean.setId(100); …

Software Development java
Member Avatar for JamesCherrill
0
234
Member Avatar for elie.karkafy

i need to copy my data from access database to sql database through coding in vb.net , and taking into consideration the duplicates each time i select from access database to copy to sql , any help thx

Software Development microsoft-access sql vb.net
Member Avatar for elie.karkafy
0
102
Member Avatar for ahmadzina85

I have timer in my code and every 10 second one result appear I need to make GUI and when I push the Button I want to have every time the result. I tried to use Button but it only shows me the final result. Please help me Private Sub …

Software Development gui vb.net
Member Avatar for Reverend Jim
0
200
Member Avatar for nitish.mohiputlall

Here is the question: Write a program that creates a queue of Strings and allows the input of an integer value n, followed by n names to be placed in the queue. Then the program should execute a loop that performs the following: 1 It displays the name in the …

Software Development c++ queue
Member Avatar for Moschops
0
139
Member Avatar for Netcode

#include <stdlib.h> #include <string.h> int main(int argc, char *argv[]) { char *first, *second, *third; first = malloc(888); second = malloc(22); third = malloc(22); strcpy(first, argv[1]); strcpy(second, argv[2]); free(first); free(second); free(third); return(0); } Like I said before, I need help learning C and trying to figure out my errors. With this …

Software Development c
Member Avatar for deceptikon
0
206
Member Avatar for abaddon2031

I am working on a python code that is supose to search a directory and see if a file in the directory has a _add_ or a _update_ and to change a few fields in my code that call the add and updata and change the directory name to match …

Software Development file-system python
Member Avatar for abaddon2031
0
224
Member Avatar for krystosan

I havent done this before, but I want to make a window that plots a graph looking at file structure on different server locations, and in that UI I want to add control like if i want to copy the remote the file to local if missing or if outdated, …

Software Development python
Member Avatar for woooee
0
463
Member Avatar for Netcode

Am trying to write a c program to do the following; • Write on the screen: ``Please enter a positive number: ''. • Accept a number from the user. • Keep prompting for more numbers until -1 is entered • Output the sum of all entered numbers excluding -1. • …

Software Development c
Member Avatar for Ancient Dragon
0
168
Member Avatar for Fighter01

I am asking a question about file handling within python. I am capable of creating a text file which can then be read via python. However, i am trying to create a python Recipe storer and therefore i would need to be able to store recipes (entered through python) with …

Software Development python
Member Avatar for Fighter01
0
536
Member Avatar for Netcode

Hi all, trying to read up on C to get acquainted with the language. Got an exercise am trying to answer and i may need your help to know if am right. I have this code as below, and am asked, what lines have buffer length checking errors. int main( …

Software Development c
Member Avatar for Netcode
0
299
Member Avatar for gxs100

Hi there, Im currently designing a Dots and Boxes Game and ive run into a snag,where my Minimax Algorithm will go 4-1 against the AI but not make the next move to win.Any help with this would be great package players; import interfaces.GameState; import java.util.List; import data.Line; public class MiniMax …

Software Development algorithm java
Member Avatar for iamthwee
0
2K
Member Avatar for LegendX

I need help with this problem, if someone can help me with this it would be appreciated. Part 1: Write a program that uses a while loop to loop 5 times. Each time it should prompt the user to input an integer and should add it onto a sum. After …

Software Development java
Member Avatar for JamesCherrill
0
144
Member Avatar for samatha.kilaru
Member Avatar for Sindhu_1
0
1K
Member Avatar for amt_muk

Hello, Please help me to overcome the following confussion. Suppose I have created an array of pointers like, A** l_aAPtr = new A*[l_iTotal]; for(int i = 0; i<l_iTotal;i++) { l_aAPtr[i] = new A(); } Now I want to delete this array. Please advise which of the following way is correct …

Software Development c++
Member Avatar for amt_muk
0
237
Member Avatar for chubbyy.putto

I dont no how to fix. Can someone help me out plz. (Please see the picture) [IMG]http://i61.tinypic.com/2r2cfnq.png[/IMG] #ifndef DYNINTSTACK_H #define DYNINTSTACK_H class DynIntStack { private: // Structure for stack nodes struct StackNode { int value; // Value in the node StackNode *next; // Pointer to the next node }; StackNode …

Software Development c++
Member Avatar for Schol-R-LEA
0
167
Member Avatar for Jephthah_1

i need a C program to enter user info. and calculate cost ... a program like a point of sale (POS) system

Software Development c
Member Avatar for rubberman
0
77
Member Avatar for mxood

ok i am very sorry if this comes off as irritating to some, but i need someone to reassure or direct me. i have learned some programming, very very basic to be exact and i have learned some c# and some C++. the problem is, I like c# because it …

Software Development c++
Member Avatar for rubberman
0
245
Member Avatar for ravi_14

IplImage *in; CvMemStorage *storage = cvCreateMemStorage (20506); CvSeq *contours=NULL; CvPoint *PointArray=NULL; for() { //image processing and feature extraction code here cvClearMemStorage (storage); //clear memory area free (PointArray); cvReleaseImage (&in); } At the end of each iteration i ma releasing memory but still i get memory shortage error after # processing …

Software Development c c# c++ motherboards-cpu-ram storage
Member Avatar for rubberman
0
334
Member Avatar for vishalonne

Hello All Tell me who is correct I or my friend void main() { int GuessMe[4]={100, 50, 200, 20}; int Taker=random(2)+2; for(int Chance=0;Chance<Taker;Chance++) cout<<GuessMe[Chance]<<"#"; } I am testing random() in Turbo C++ 3.5 By this code I am always getting answer 100#50# whenever I am executing this code. My argument …

Software Development c++
Member Avatar for vishalonne
0
272
Member Avatar for romdan94

I know I asked this before, so I appologize but I just need to write this program for an extra credit assignment and frankly I don't know a thing about arrays and don't have time to learn since I have another final coming up so if anyone could be so …

Software Development java
Member Avatar for JamesCherrill
0
256

The End.