199,113 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 …

Member Avatar for Schol-R-LEA
0
421
Member Avatar for riahc3

Hello Sometimes I get a duplicate key which I want to ignore or discard. This is a example and has nothing to do with the actual query. I simple want to state columns/values insert into table(Time_Stamp,Time_Stamp_ms,p1) values (time,timems,'1') Where the first two are my PK. I see that insert into …

Member Avatar for riahc3
0
184
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; …

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 …

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 …

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 …

Member Avatar for Anna123
0
228
Member Avatar for nadiam

hey guys so im trying to insert data from my contact form into database depending on radio button. as u can c i have 2 radio button both under "spouse ?" and another under "child ?" now when user clicks on "yes" another form pops up for each title respectively(form …

Member Avatar for pzuurveen
0
602
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 …

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?

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 = …

Member Avatar for slate
0
389
Member Avatar for Siberian

I'm in the process of creating the following; when a class anchor is clicked, it triggers an ID that is scaled which was hidden before the anchor was clicked with a little bounce before it rests into place, I hope that made sense ? Here is what I have so …

Member Avatar for Siberian
0
168
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 …

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 …

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(); …

Member Avatar for BobS0327
0
341
Member Avatar for smutolo

I found a php class that seems to help me achieve my objective of doing an advanced search of my database <?php class search { var $table; var $field1; var $field2; function queryRow($query){ //define database settings define("host", "xxxxxxxx"); define("login", "xxxxxx"); define("senha", "xxxxxxx"); //define database name define("data", "xxxxx"); //conection routine try{ …

Member Avatar for diafol
0
2K
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 …

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. // // // …

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 …

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 …

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" …

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

Member Avatar for slate
0
855
Member Avatar for hsakapandit

I have arrays and variables in JQuery and I want to know that Can I POST both arrays and variables from single $ajax jquery request to my php page. If yes then How will I post data from Jquery and how will i handle in PHP page. var get_id = …

Member Avatar for hsakapandit
0
793
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 …

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 …

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.

Member Avatar for Schol-R-LEA
0
177
Member Avatar for imktz
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 …

Member Avatar for pezza
0
320
Member Avatar for chaitu11

<form> Select Project:* <select name="project_id" id="project_id" > <option value="0">Select Project</option> <option value="1">a</option> <option value="2">b</option> <option value="3">c</option> </select> Select Week*: <select name="week" id="week_id"> <option value="0">Select Week</option> <option value="1">This Week</option> <option value="2">Last Week</option> <option value="3">2 Weeks back</option> </select> </form> <script type="text/javascript" src="js/jquery-latest.js"></script> <script> function showValues() { var str = $( "form" ).serialize(); …

Member Avatar for pzuurveen
0
359
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] …

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 …

Member Avatar for abaddon2031
0
242
Member Avatar for MICHAEL DENNIS

**Need assistance in using PHP to connect to webservice using SoapClient (I am kinda new to SOAP)** Here is the WSDL URL: https://uat.fiadmin.com/scs.webservice/ScsAutoService.asmx Here is the SOAP request from SoapUI with correct data in the fields: <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:scs="http://www.natinc.com/SCSAutoService/"> <soapenv:Header/> <soapenv:Body> <scs:GetRates> <scs:objGetRatesRequest> <scs:UserId>VPP</scs:UserId> <scs:Password>jBH5Mspc</scs:Password> <scs:TpaCode>DEMO</scs:TpaCode> <scs:ErrorMessage>0</scs:ErrorMessage> <scs:ErrorCode>0</scs:ErrorCode> <scs:RequestGroup>0</scs:RequestGroup> <scs:Trim>0</scs:Trim> …

Member Avatar for pritaeas
0
285
Member Avatar for Maideen

Hi I have one issue. I do not know how to solve and also no idea. It is my scenario. I have Product table with details,selling price, purchase price and so on. I want to invoice to clients. Clients can buy lots of item in single invoice. If I select …

Member Avatar for diafol
0
302
Member Avatar for Tallapalli

i have database with catogiries like education,food,health how can i describe fields and inter connect the tables

Member Avatar for pzuurveen
0
111
Member Avatar for Tinnin

I am running this on my local: <script> $(document).ready(function() { $("#validateButton").click(function() { var forename = $("#Name").val(); var surname = $("#Surname").val(); var dob = $("#DOB").val(); var flatNumber = $("#FlatNumber").val(); var houseName = $("#HouseName").val(); var houseNumber = $("#HouseNumber").val(); var street = $("#Street").val(); var townCity = $("#TownCity").val(); var county = $("#County").val(); var postcode …

Member Avatar for Tinnin
0
365
Member Avatar for diafol

Hi all. Have been racking my brains about how to go about creating a multidimensional array dynamically from an array of keys. Something like... $keys = array('key1', 'key2', 'key3'); $value = 'some value'; // $md = ...???!!!... I need the $md multidimensional array to have the keys thus... $md['key1']['key2']['key3'] = …

Member Avatar for Webville312
0
9K
Member Avatar for Webville312

Dear all, I have been thinking of this task, but I have no idea where to start from. I am retrieving login logs from the database, which is cool. Now, the challenge is that in case a user has logged in more than once in the same day, I want …

Member Avatar for Webville312
0
5K
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, …

Member Avatar for Steve_O
0
245
Member Avatar for RikTelner

Let's say my website heavily depends on JavaScript. I found this: http://www.w3schools.com/tags/tryit.asp?filename=tryhtml_noscript What I understand is. If JavaScript is enabled, it displays "Hello World". If JavaScript is disabled it displays everything within `<noscript>` as normal div. The clue is. I have "NoScript" Firefox addon. That blocks JavaScripts, disables flashes and …

Member Avatar for pritaeas
0
917
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 …

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: …

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

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 …

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 …

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); …

Member Avatar for JamesCherrill
0
234
Member Avatar for hiiiiii@

hi im a student and im doing a project for university exam my project include online payment .i there any payment gateway for only testing purpose .

Member Avatar for hiiiiii@
0
157
Member Avatar for Mian Sahib Jan

i have a repeater in one page to which me load the data from database now i want to click a button and i get the value of a repeater specific row data and kept data in session and access that data an another page.plz help me any one have …

0
204
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

Member Avatar for elie.karkafy
0
102
Member Avatar for nadiam

i have a contact form. html is done. php is done as well. but the submit button doesnt seem to read my php code. sorry if my coding is too long but i just had to post the whole thing incase i missed something. any help is very much appreciated. …

Member Avatar for nadiam
0
395
Member Avatar for Borzoi

I tend to use XHTML due to browser compatibility. In almost all cases where I've worked with XHTML, the content has displayed in every browser the same and the times it didn't was due to certain browsers *cough*IE*cough* not supporting the CSS styles I was using. When HTML 5 was …

Member Avatar for Borzoi
0
196

The End.