132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for tom.scott.73113

Hi Im working on a program at the moment and seem to be having issue with this section when trying to get section 3 i get section 2 Ive pasted code below any help or suggestions would be great. Thanks if(gps=='Y'||gps=='y'&&childseat=='N'||childseat=='n') { if(stoi(daysamount)<=3) { extra=stoi(daysamount)*5; } else { extra=15; } …

Software Development c++
Member Avatar for tom.scott.73113
0
134
Member Avatar for ezra.kim.98

import java.io.*; import java.net.*; import java.util.*; public class UselessHTTPServer04 { public static void main(String args[]) throws Exception { int port = Integer.parseInt(args[0]); ServerSocket serverSock=new ServerSocket(port); while(true) { Socket conn = serverSock.accept(); Scanner scanin = new Scanner(conn.getInputStream()); String line=null; int nlines=0; while (true) { line = scanin.nextLine(); if(line.length()==0) break; nlines = …

Software Development java socket-programming web-server
Member Avatar for ObSys
0
314
Member Avatar for Abdul_19

Hi dear all i am new in java i don't know how identify the background and foreground color of image if any have idea please help thanks in advance

Software Development html-css image java
Member Avatar for ObSys
0
345
Member Avatar for dhingra

plese anyone can tell me about storage classes and their use in progg. >>>>>>

Software Development c storage
Member Avatar for salil_ag
0
170
Member Avatar for yann.bohbot.9

Hi there everyone, I'm a bit new to see and I need your help please. I'm stuck with a merge sort problem where it's support to sort my nodes in lexicographical order. Can you please have a look on my code because i've posted everywhere and i'm not getting the …

Software Development c linked-list
0
246
Member Avatar for srinu_1

text1.txt: line1 hdfbghasbfas line2 jdsbvbsf line3 <match name="item1" rhs="domain.com"></match> line4 <match name="item2" rhs="domainn.com"></match> line5 <match name="item2" rhs="1010data.com"></match> need to retrive domain.com,domainn.com,1010data.com to "result.txt" `` import re f1 = open("C:/Users/Netskope/Desktop/m/test1.txt", "r") f2 = open("C:/Users/Netskope/Desktop/m/result.txt", "w") d1 = f1.readlines() for line in d1: match = re.findall('<match name="item1" rhs="(\w.+")', line) if match in …

Software Development python regex
Member Avatar for srinu_1
0
381
Member Avatar for gbhs

Hi Experts my excel data is copied successfully to the listview. But on importing to database, I get this error. InvalidArgument=Value of '5' is not valid for 'index' ParameterName:Index ================= I have 2 problems ================= Problem 1: What should be the problem when I importing from listview(I think it is …

Member Avatar for ling_tj
0
1K
Member Avatar for yann.bohbot.9

Hi there, I made a linked list program to add, delete, add in the middle and delete from anywhere. I'm searching to make a function to sort the string data that I have in lexicographic order. Here's my struct: struct node { char data[100]; struct node *previous; // Points to …

Software Development c linked-list
Member Avatar for Ancient Dragon
0
237
Member Avatar for Webbsta

Hi guys, I currently have a custom network protocol I have written that uses the NetworkStream class. Within my protocol I have implemented a way to detect data that also works as a timeout. This seemed to be working fine until my client uploads an image of approx 24kb+ and …

Software Development
Member Avatar for KushMishra
0
398
Member Avatar for johmolan

I have earlier created the databases in the sql management studio. but a friend of mine said it would be possible to dreate the tables directly in visual studio and update to the database. I have tried to do it but I can't seem to make the tableadapters etc. because …

Software Development vb.net visual-studio
Member Avatar for kRod
0
194
Member Avatar for Frank15

Hi there, I'm not a developer. I'm a graphics designer. I would like to learn about web development. For that I'm doing research in different languages. Most of them suggested PHP and Python. I know little about PHP. But Python I don't rightly know. Tell which one I can go …

Software Development php python
Member Avatar for kindo
0
324
Member Avatar for aplh_ucsc

if __name__ == "__main__": args = parse_args() install_path = os.getcwd() if os.getuid() != 0 and args.create_user and not args.no_install_prequisites: While compiling the above source code in windows i get this error > module' object has no attribute 'geteuid' windows can any one resolve this.

Software Development python
Member Avatar for Gribouillis
0
4K
Member Avatar for glenn_boy13

Hello, I have a listview1 in my form. And my form has the ability to fullscreen itself. In the meantime, I have this code: ListView1.AutoResizeColumns(ColumnHeaderAutoResizeStyle.HeaderSize) But that would only depend on the listview's headersize. or the column's header width. I would like my all columns to share equal width. For …

Software Development listview vb.net
Member Avatar for deceptikon
0
537
Member Avatar for Labdabeta

I need to know which of these three copies of code is considered best. I also need to which one is more efficient memory wise and which is more efficient time wise. Thanks: enums [CODE]enum MyEnum{EnumTypeOne=1,EnumTypeTwo=2,EnumTypeThree=4,EnumTypeFour=8};[/CODE] macros [CODE]#define EnumTypeOne 1 #define EnumTypeTwo 2 #define EnumTypeThree 4 #define EnumTypeFour 8 typedef …

Software Development c++
Member Avatar for Ancient Dragon
0
1K
Member Avatar for sam7777777

hi friends ... this is my 1st post I'm sure it gonna be beneficial to me.. Well I'm facing problem in this assignment.As I'm not that good in c++ programming. Please help me out .We have to use doubly linked list. **Assignment requirements Overview** You are expected to write a …

Software Development c++ linked-list
Member Avatar for Moschops
0
950
Member Avatar for Alya_1

the given question is 2x+3y-z=5 x-y+z=1 3x+2y+2z=6 i'm supposed to get the values of x,y,z from this coding. #include <iostream> #include <cmath> using namespace std; void GetMat (float A[10][11], int numrow, int numcol); // to enter elements in a 2 dimension matrix void DispMat (float A[10][11], int numrow, int numcol); …

Software Development c++
Member Avatar for Alya_1
0
291
Member Avatar for anastasia_1

Hello guys, i'm having this project where i must create a server that communicates with a browser.I must write something like this in the browser: http://localhost:11880/path and the message printed in the server will be: GET /path HTTP/1.1 Host: localhost:11880 User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.12) Gecko/20101027 Ubuntu/10.04 …

Software Development c client-server http-protocol
Member Avatar for cool_zephyr
0
338
Member Avatar for glenn_boy13

HELLO! I've been debugging my code for an hour now. seriously. So I have this string: SQLString = "UPDATE `etmsystem`.`main` SET `timeIn` = '22:00' WHERE `main`.`serialNo` = '70002B4A8F9E'" actually the TIME and the SERIAL NO. here is to be represented by a variable. But I changed the code into that …

Software Development mysql vb.net
Member Avatar for Assembly Guy
0
422
Member Avatar for nicholas.f.fortino

im a newbie in c++ i want to ask whats bitmask ?

Software Development c++
Member Avatar for mike_2000_17
0
160
Member Avatar for mussdroid

Hello Guys , I am having an error message with javafx scene builder integration on netbeans kindly help me ! ![e0bfe397024238042e0c0a4b0776f3f0](/attachments/large/4/e0bfe397024238042e0c0a4b0776f3f0.PNG "e0bfe397024238042e0c0a4b0776f3f0") Thanks

Software Development java
Member Avatar for peter_budo
0
121
Member Avatar for BuilderSoft

Please help. I have array. Debit Site Credit Site Line Voucher ArrData(0) 306 335 2 33500024 ArrData(1) 320 335 1 33500024 ArrData(2) 809 335 3 33500025 ArrData(3) 809 555 3 55500010 ArrData(4) 809 555 3 55500011 ArrData(5) 810 335 1 33500025 ArrData(6) 810 555 1 55500011 ArrData(7) 810 555 1 …

Software Development visual-basic
Member Avatar for Minimalist
0
136
Member Avatar for safoin
Member Avatar for mike_2000_17
0
93
Member Avatar for ponsy

hi why does this prompt a wrong pass? plss help. :( Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click If TextBox1.Text = "Username" And TextBox2.Text = "Password Then" Then Me.Hide() Form2.Show() Else MsgBox("Wrong Username of Password.", vbExclamation, "Wrong") End If

Software Development visual-basic
Member Avatar for Deep Modi
0
138
Member Avatar for ponsy

Good Day, how can i put a username and password in form? in Visual Basic 2008

Software Development vb.net visual-basic
Member Avatar for Deep Modi
0
199
Member Avatar for jmProg

I receive this error ![4f39dda7d2306f99bd623d1011e6cf34](/attachments/large/4/4f39dda7d2306f99bd623d1011e6cf34.png "4f39dda7d2306f99bd623d1011e6cf34") when I have this code: Private Sub EditUsers() Try Dim dt As New DataTable dt = ExecuteQuery("UPDATE tblUsers SET UserID = " & txtUserID.Text & ", UserName = '" & txtPassword.Text & "', Password = " & txtPassword.Text & ", LastName = '" & …

Software Development sql vb.net
Member Avatar for Reverend Jim
0
171
Member Avatar for Deep Modi

hi, I am using the Rich Text Box, Now I want to open the Word File, (It may be of 2013 or 2007) How Can i do This? !!! Important Thing !!! No matter if I have to import any of the Word addon or else.... But That should Work. …

Software Development vb.net
Member Avatar for deceptikon
0
338
Member Avatar for rmsh92

Write a C++ program that reads data from a data file called “temp.dat”. The data file contains a maximum of 31 daily integer temperature values for a city. Your program should continue displaying the following menu until the user selects exit (option No. 6). Head of the data Tail of …

Software Development algorithm c++
Member Avatar for dresha
0
213
Member Avatar for pandeysk_13

Hello all, It’s a problem which is giving me pain. I have a table agent_registration which have following structure: agentID agentname patentID 001 a NONE 002 b 001 003 c 001 004 d 002 005 e 003 So, whenever we register a customer whose agentID is ‘005’ then how can …

Software Development vb.net
Member Avatar for pandeysk_13
0
114
Member Avatar for SreeJo

hi , we have a requirement to get grand parent,parent and child nodes display in treemodel.At the moment we have the parent ,child display of Tree Model .Could you please advise what need to be done to get this hierarchy -Grand Parent - Parent -children Thanks in advance for your …

Software Development display java java-swing
Member Avatar for mKorbel
0
159
Member Avatar for Ghost

Hi, Is it possible to create a Java compiler? Could you make a Notepad-like application, save the code as a .java file, compile it into a .class file, and run it? Basically, I want to combine Notepad and Command Prompt. I just need help on the compiling part (and listing …

Software Development java
Member Avatar for stultuske
0
867
Member Avatar for tiverton

I am writing a DOS screen football game(No graphics), I have reached 61,283 lines any bigger than this I get a error that says linker warning, exceeded memory limit for block line cache in module. Old compiler version 4.0.

Software Development c c# c++
Member Avatar for tiverton
0
264
Member Avatar for Khoo

How to stretch PictureBox into Maximized screen size ? Currently the size of picturebox is exactly the size of the image, I want to stretch to the resolution screen size excluding taskbar. private void Form2_Load(object sender, EventArgs e) { Form2 f2 = new Form2(); pictureBox1.Size = new System.Drawing.Size(Screen.PrimaryScreen.Bounds.Width, Screen.PrimaryScreen.Bounds.Height); }

Software Development
Member Avatar for ddanbe
0
366
Member Avatar for Begginnerdev

This is a module that can be used to save tiff images pass in from a file dialog. This module was translated from C# to VB.net, and the original project can be found [URL="http://www.codeproject.com/Articles/16904/Save-images-into-a-multi-page-TIFF-file-or-add-ima"]here[/URL]. I do not claim rights to this code. You can copy this code straight down into …

Software Development image vb.net
Member Avatar for Lolatorres
0
287
Member Avatar for sadia.rasheed.9231

plz help me , need a code that search a word for file saved in note pad in show the out put as is this wrd exsist in file or not n if yes how many time appear....

Software Development c++ seo
Member Avatar for Moschops
0
339
Member Avatar for RASHA_T

Hello everybody! I need some help in my program it is about Guess number game. the program is working but not that I have expected, when i enter guess 76 the output gives me that 76 is Too small :( instead of Too big .Even I type any number 64,99 …

Software Development c++
Member Avatar for RASHA_T
0
238
Member Avatar for mussdroid

Hi Guys , I know this looks like quite funny question during the holiday season , but i developed small netbeans application called helloworld , which is kind of pressing button and displaying helloworld , i pressbuild the application and press run , but my application is not runnig even …

Software Development java java-netbeans
Member Avatar for mussdroid
0
205
Member Avatar for sarthak25
Member Avatar for JamesCherrill
0
198
Member Avatar for SHE.RE

give example of a C++ program that sorts list of integers. The list should have a size of power of two. Example: list size = 2, 4, 8, 16… Algorithm 1. Divide the array into two lists until a single element remains in any list While merging given two sorted …

Software Development algorithm c++
Member Avatar for ddanbe
0
102
Member Avatar for mohd.nasrul.iwan.fajaruddin

I have created a form , with a working coding , but i need an extra assistance. Somewhat , i am stuck on trying to figure out how to let the 3rd combobox value , determined by the first and second. and what i wanted is , something like , …

Software Development seo sql vb.net
Member Avatar for ddanbe
0
224
Member Avatar for brightline

Dear all, I want to develop a webservice that returns a json like the following: http://niceq8i.tv/mobile/api/cat/get_sounds How to make the functions has a direct link like that and return the json code without any xml code Thanks in advance...

Software Development api json vb.net
Member Avatar for M.Waqas Aslam
0
212
Member Avatar for Zahra_1

how to create a loop that will make sure that my dice can be rolled as many times as required? here's my code as a start off. import random dice=random.randrange(1,5) dice2=random.randrange(1,7) dice3=random.randrange(1,13) sim=input (“Which sided dice would you like to roll? You can choose a 4-sided dice, a 6-sided dice …

Software Development python
Member Avatar for sneekula
0
3K
Member Avatar for eeeraser

My question is clear ^^ How to clear keyboard buffer?

Software Development assembly
Member Avatar for Erfan_1
0
3K
Member Avatar for Deep Modi

I am working on a small application in VB.NET. The program needs administrator privilege for doing some tasks. Is there a way to ask for administrator privileges during the execution if the program? What is the general way of changing the user account under which the application is running? Actually …

Software Development audio vb.net
Member Avatar for Deep Modi
0
795
Member Avatar for mussdroid

Hello Guys , I am new to NetBeans , any idea what is the meaning of these icons ? Thanks

Software Development java java-netbeans
Member Avatar for mussdroid
0
237
Member Avatar for Vaggelis

Hello everybody, Ι want to make an application that does multiple mathematical actions such as solving second degree equations and indentities I've created all the forms I need for it work but I cant create the main form that the user will use to choose what action will be executed, …

Software Development vb.net visual-basic
Member Avatar for Vaggelis
0
365
Member Avatar for mussdroid

Hello Guys , When I checkout code from svn i get this error message any idea to fix this issue ? I use netbeans 7.3.1 , plugin subversion. ![38e5e181fb4f014e1a9cac948390b20a](/attachments/small/4/38e5e181fb4f014e1a9cac948390b20a.PNG "align-left")

Software Development java java-netbeans
Member Avatar for JamesCherrill
0
261
Member Avatar for Smartboy33

Can anyone please tell me how to use the built in graphics in c++.Is there any tutorial on this?Which graphics will be suitable for using in c++?If there is any tutorial on this,please give the link. Thanks in advance.

Software Development c c# c++ image
Member Avatar for Moschops
0
546
Member Avatar for 2384443

I have just started to learn java..!! I'm trying to implement some C++ programs in java.. Some of them are working perfectely. But this is the only program which is not working.. It's showing 2 errors at br.readLine().. I don't know what to do.. Kindly please have a look on …

Software Development java
Member Avatar for JamesCherrill
0
212
Member Avatar for nguyenyen

Hi all, I'm using vb6. I'd like to get number of copies when user printing. It means that after I adjust all information in vslexgrid and print it by vslexgrid.printgrid "",true,10,20 after that print preview dialog appear and number of copies can be entered by users. I want to get …

Software Development visual-basic
Member Avatar for Minimalist
0
308
Member Avatar for Labdabeta

Hello, I have used taylor polynomials to approximate floating-point values before. I am wondering whether there is a way to still apply them to functions with complex arguments, and if there is a way what its constraints would be. For example, to calculate the sine of a floating-point number to …

Software Development mathematics
Member Avatar for ddanbe
0
257

The End.