132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for SnowFall

Hi! Im looking for the best way to describe a flow chart with xml where blocks have multiple inputs and output. Blocks are placed in "folders" here in my xml I called them blockgroup. Each block has a name that must be unique within a blockgroup. Inputs and outputs must …

Software Development xml
0
182
Member Avatar for np complete

So I was writing a program that would take a string from clipboard, do some stuff and put the new string back to clipboard. My code so far is posted below. The problem is I want my program to wait for me until I 'ctrl+C' something. I know that `GetClipboardData()` …

Software Development c
Member Avatar for BobS0327
0
250
Member Avatar for general2012

#include<conio.h> #include<stdio.h> #include<stdlib.h> #include<math.h> int k,i=0,m=0,flag=0; int coef[10]={0}; float x1=0,x2=0,t=0; float fx1=0,fdx1=0; what is the benefits if the variables are defined outside of the function ,just after #include thanks!!

Software Development c
Member Avatar for general2012
0
131
Member Avatar for MichaelCJ10

I'm having a problem where i am making a simple combo box program that when it runs shows a pic, you can have a drop down box to select a different pic, very simple. I have an array for the file name of each, and a second array to store …

Software Development gui java java-swing
Member Avatar for MichaelCJ10
0
198
Member Avatar for farmwife

Which of these is the best practice for executable Linux scripts: #! usr/bin/env python #! usr/bin/python #! usr/bin/env python3 #! usr/bin/python3 All four of them work just fine on my system, so I'm looking for the best practice. Thanks.

Software Development python
Member Avatar for james.lu.75491856
0
244
Member Avatar for farmwife

I had a function all by itself in the file [filename].py, and the file was properly executable. This is how people advised me to call it externally: import func func.[filename]() But I was getting errors all over the place. So I contacted Python help and they told me something different, …

Software Development python
Member Avatar for farmwife
0
180
Member Avatar for aVar++

First of all, yes this is a homework question however I am not asking you to do it for me I just need something clarified :) My homework is create a truth table for: Q = NOT (X OR Y) AND Z Now, is the 'AND Z' also included in …

Software Development
Member Avatar for deceptikon
0
174
Member Avatar for general2012

for the codes under for loop this error massage is showing 19:37 C:\Users\azr\Desktop\Untitled1.c invalid suffix "xy" on integer constant #include<stdio.h> #include<conio.h> #define func(x,y) 3xy int main() { int x0,y0,n,y1,k1,k2,k3,k4,h; printf("enter the values"); printf("enter x0:"); scanf("enter x0:%d",&x0); printf("enter number of x values:"); scanf("no. of x values:%d",&n); printf("value of hight h"); scanf("value …

Software Development c
Member Avatar for general2012
0
230
Member Avatar for shiva.shrestha.393

i have a problem with how to use c programming keywords while doing programming can you post me some solutions with these keywords as with their uses and meanings.

Software Development c seo
Member Avatar for deceptikon
0
283
Member Avatar for Taruna_1

Hi, I want to replace all the character in my string with 'aaaa' as many number of times as there are occurence of the character. For eg. if my string is "cat", output should be "aaa" and if its "hello" output should be "aaaaa". As of now, I am using …

Software Development python regex
Member Avatar for vegaseat
0
323
Member Avatar for gcardonav

Hello guys: I am certain if I was not trying slef-teaching C++, that this question would have been answer before. What is the use of [inlinecode]using namespace std;[/inlinecode] ? I am not certain, I just know that when I use [inlinecode]#include<iostream>[/inlinecode] I have to appended. Simple question, but a matter …

Software Development c++
Member Avatar for StanleyLau
0
4K
Member Avatar for maxpowr

Before i proceed with my question, lets give you the detail about the project: Am developing on inventory + accounting software in VB.NET and using MYSQL as database! now my question as below: 1.How to make a single setup package which include MYSQL server installation setup within it 2.while user …

Software Development mysql vb.net
Member Avatar for Begginnerdev
0
330
Member Avatar for np complete

Hi, I'm new to python so I'm asking a noob question. I'm given a large string from which I have to take all the digits and check if its prime or not. Then I have to take the first 25 chars of the string and append the prime digits to …

Software Development python
Member Avatar for Gribouillis
0
237
Member Avatar for frenchastro

how to connect a vb.net form to microsoft sql server database in coding?

Software Development microsoft sql vb.net
Member Avatar for Reverend Jim
0
231
Member Avatar for Himalan

For “YEAR” field, create a function to calculate the value (hint : use %)based on following categories: Year 1 : Sem 1 – Sem 3 Year 2 : Sem 4 – Sem 6 Year 3 : Sem 7 – Sem 9 so, we must convert from given semester number to …

Software Development c
Member Avatar for Himalan
0
127
Member Avatar for Taruna_1

Hi, I have a list which contains strings in each value. I want the word count of each string and then I will have to find out the string with minimum word count and max. word count in that list. Help is much appreciated.

Software Development python
Member Avatar for Taruna_1
0
787
Member Avatar for marethamogale

write a program that allows the user to enter his or her two favorite food.The program should then print out the name of a new food by joining the original food names together.

Software Development
Member Avatar for sepp2k
0
134
Member Avatar for Ahmed.C

Hi guys. I just need help with something. Bascailly I've got a combobox which has all the colors e.g. color.black, color.blue etc and what I want to do is when the user selects the combobox item e.g. selected color.Blue it should change the labels forecolor to what ever the user …

Software Development vb.net
Member Avatar for Ahmed.C
0
258
Member Avatar for Franze

Hi, I have a general question about for example a continuous while loop. If we have a while(true) loop that will keep going for 24 hours without any Thread.Sleep(), where the processor will be completely busy all the time. Is this a good or bad practise, or is it okay …

Software Development
Member Avatar for Ketsuekiame
0
226
Member Avatar for Dili1234

I have to tables 1.[Mobilization]-Primary key is [Fen_Inovoice_No] it is the forgien key is of [invovoice details] 2.[invovoice details] the primary keys are [Fen_Inovoice_No],[Item] when I tried to view the data , the all data are not loading to listview why is that? Dim intResponse As Integer intResponse = MsgBox("Please …

Software Development listview vb.net
Member Avatar for Koelald
0
278
Member Avatar for DarkLightning7

I have been trying to implement a partially Dynamically generated GUI but an having trouble with the layout not rendering properly. Simply resizing the window corrects the issue. Here is the problimatic generation code: public void setupBookTabs() { ArrayList<String> bookTabNames = Record.getBookGroups(); for (int i = 0; i < bookTabNames.size(); …

Software Development gui java java-swing
Member Avatar for DarkLightning7
0
178
Member Avatar for GeekPlease

Anyone familiar with kind of error? I'm so lost. Please help.

Software Development cybersecurity vb.net
Member Avatar for Dili1234
0
94
Member Avatar for deneuve

Here's the question. http://postimg.org/image/nmqrupznp/ And here's my program, #include <stdio.h> #include <string.h> void encrypt (char *text,char *map); void decrypt (char *text,char *map); int main() { int a,b; char c[]="abcdefghijklmnopqrstuvwxyz"; char d[]="thequickbrownfxjmpsvlazydg"; char *text; char *map; text=&c[0]; map=&d[0]; printf ("Encrypt press 1;Decrypt press 0.\n"); scanf ("%d",&b); if (b!=0&&b!=1) printf ("please enter …

Software Development c encryption
Member Avatar for shakin
0
193
Member Avatar for Darkicon

I have pretty much finished my program I'm writing. It's a program that fixes my issue with Firefox (It never deletes the saved sessions). I have the program minimize to the notification area, however, here's my dilemma: The way I'm doing it is by cancelling the formclosing event and instead …

Software Development vb.net
Member Avatar for Darkicon
0
182
Member Avatar for farmwife

Okay, so cryptography is insanely well developed and I'm not doing anything new here, but I still thought I'd monkey around with a cryptography project. Here's what I want it to do: 1) generate an encryption and decryption key that is randomly between 20 and 40 digits long and contains …

Software Development encryption python
0
106
Member Avatar for andrew.mendonca.967

CSCI-15 Assignment #1 — Functions and files review (40 points), due September 9, 2013. Write a program to read the coefficients of a series of quadratic equations from a text file and print the associated roots, or appropriate errors if there are no real roots, to another text file. The …

Software Development c++ file-stream
0
102
Member Avatar for josh2006k

Here is a program I've been working on. When it runs I get no errors, but it is still not doing quite what I need it to do. For the lines like "Console.WriteLine("{0} - Avg - {1} {2} {3} {4} {5} {6} {7} {8} {9} {10}", players[0], stats[0, 2, 0], …

Software Development
Member Avatar for lolafuertes
0
169
Member Avatar for MasterHacker110

I am mainly into system dev, writing kernels and kinda just building everything from the ground up... But I also like game dev and is interisted in the whole concept. So I am going to make this easy, seing as a lot of things can change the output. A programmer …

Software Development c++ finance gaming
Member Avatar for mike_2000_17
0
337
Member Avatar for waqar14

i want to create sms group chat software how can i create

Software Development c++
Member Avatar for deceptikon
0
91
Member Avatar for sharan_1

#include"Gradebook.h" #include<iostream> #include<conio.h> #include<string> using namespace std; Gradebook::Gradebook( int balance) { if(balance>=0) { balance=balance; Withdraw(balance); } else { cout<<"Balance can not be negative\n"; } } void Gradebook::Withdraw(int) { cout<<"Enter amount to withdraw\n"; cin>>credit; if(balance>credit) { cout<<"invalid credit greater than balance\n"; } if (balance<credit) { int total=balance-credit; cout<<"Current balance:"<<total; } getch(); …

Software Development c++
Member Avatar for richieking
0
162
Member Avatar for Eccoo

I just started to learn java, and the first program I have to create is called PizzaRun, here is description: PizzaRun is a simple program that calculates the number of pizzas to buy based on the sum of the slices entered on the command line arguments after the first argument, …

Software Development java
Member Avatar for Eccoo
0
398
Member Avatar for jhonm

I am using windows media player in my vb6 form using wmp.url = "link" But it doesnt play online url eg."www.music.com/song.mp3" i found a solution : open local windows media player software --> type same url ---> MESSAGE APPEAR ASKING TO CONNECT OR "WORK OFFLINE" --> click connect and it …

Software Development visual-basic
Member Avatar for jhonm
0
559
Member Avatar for fuhanspujisaputra

Hai everyone, i have a problem, the program just read the first entered `Quantity` value in the program and apply it to all rows in database and the value of first and second row are same, even though in the beginning, first and second row value are different. First of …

Software Development
Member Avatar for lolafuertes
0
146
Member Avatar for andrew.mendonca.967

CSCI-15 Assignment #1 — Functions and files review (40 points), due September 9, 2013. Write a program to read the coefficients of a series of quadratic equations from a text file and print the associated roots, or appropriate errors if there are no real roots, to another text file. The …

Software Development c++ file-stream
0
83
Member Avatar for Jed_1

So, I've been through a class in java so I know a little bit of what I'm doing... The assignment I have is to create a program that takes a string and converts the letters four away in the alphabet (ie: a becomes e and so forth). I've gotten most …

Software Development c++ encryption
Member Avatar for Jed_1
0
667
Member Avatar for farmwife

Suppose you have this file named func.py: def func(x): y = raw_input(x) return y func(z) And then you have this calling code: z = raw_input('Type a request for input and hit enter: ') omega = execfile('func.py') print(omega) Why does the output always end up being "None?"

Software Development python
Member Avatar for farmwife
0
1K
Member Avatar for christinetom

Hello everyone.. Would anyone know why I can't do the below. I'm not the best programmer in the world so I'm wondering why the below won't work. I get an error 'A template declaration cannot appear in block scope' No doubt it's due to my lack of understanding of the …

Software Development c++
Member Avatar for Kenney_1
0
3K
Member Avatar for lloydsbackyard

i am given this topic array - object oriented programming for report. i just some of your advise do i need to discuss OOP? including like inheritance, encapsulation, polymorphism ..etc.. or should i discuss only concepts of arrays definition etc... any addition to my outline: definition of arrays types (single-multi) …

Software Development c++ oop
Member Avatar for Kenney_1
0
257
Member Avatar for Pinku Deb

I am getting Wrong Answer on submission. Problem link:http://www.lightoj.com/volume_showproblem.php?problem=1039 Code:http://ideone.com/1iMkOX I implemented the BFS inside the main function instead of coding it in a seperate function.

Software Development c++
Member Avatar for Pinku Deb
0
279
Member Avatar for TechSupportGeek

I don't know if the title is clear enough, but what I'm basically asking is help with the organization of Resources in an application. Like, how do you go about doing that in YOUR applications? So, when a project is created in Visual Studio, we got like a bunch of …

Software Development visual-studio
Member Avatar for Ketsuekiame
0
182
Member Avatar for chris.kelley.5015

Hello, I am trying to create a script that will compare one word at a time from one file to every word in a second file. I know how to design nested for loops to read the first entry in file1 and compare it to every entry in file2, so …

Software Development regex shell-scripting
Member Avatar for Watael
0
272
Member Avatar for Ken1234

Display 100 random integers in [10, 25] 14 14 18 24 12 25 16 12 18 16 15 16 16 15 17 19 10 21 14 25 21 24 10 19 25 17 19 13 25 24 23 25 15 25 18 23 18 14 24 11 21 12 20 …

Software Development display java
Member Avatar for Ken1234
0
330
Member Avatar for JD69

Is there code in visual basic 2008 where i can set my program to expire every 30 days ? Thank You

Software Development vb.net visual-basic
Member Avatar for anand.mahato1
0
4K
Member Avatar for TrustyTony

Here is exercise in error handling, while looping and for looping with itertools.chain. It is also exercise of functions not letting user to go without giving proper input. I call them to myself 'jail functions'. Here you could add as an exercise breaking out of loop and continuing until user …

Software Development python
Member Avatar for farmwife
0
1K
Member Avatar for Birol

I have some questions regarding design pattern (DP) usage, in particular for Java developers. i) Which DPs have you used, as far as you can remember, and how often? ii) How much have they helped your development work? iii) If you work in a project group, are there group standards …

Software Development java software-architecture
Member Avatar for prakash.kadam.5851127
0
301
Member Avatar for vikkox7

can someone write a javaprogram to create a class that store objects with an inventory when the size was 20 and then expands to 100. print from 100-120

Software Development java
Member Avatar for JamesCherrill
0
92
Member Avatar for Ken1234

Write a Java program that generates and displays 100 random integers in the range of [10, 25] inclusively. The program then displays the number of occurrences for each number in that range. Next, the program displays the maximum, minimum and average (with exactly 2 digits after the decimal) value of …

Software Development java
Member Avatar for JamesCherrill
0
167
Member Avatar for Chinthanie

I have introduced an algebra for a new memory model. Now I need to implement this using Java. Basic step of my program is: Once we need to execute an application program (exe file), My program should accept that and classify it according to its functioning. do you have any …

Software Development java
Member Avatar for Chinthanie
0
238
Member Avatar for aks227

Hi guys, I am trying to change color of the existing items in my listbox. Can somebody please help?

Software Development
Member Avatar for aks227
0
286
Member Avatar for andrew.mendonca.967

CSCI-15 Assignment #1 — Functions and files review (40 points), due September 9, 2013. Write a program to read the coefficients of a series of quadratic equations from a text file and print the associated roots, or appropriate errors if there are no real roots, to another text file. The …

Software Development c++ file-stream
Member Avatar for andrew.mendonca.967
0
571

The End.