43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for Brown_2

what is programming

Software Development c c# c++
0
96
Member Avatar for Tycellent

Hey everyone, Got 2 questions here that i'm hoping will be answered. Say i have 2 variables int iValue; int iValueArray[300]; and later on init. them in the constructor Banana::Banana(): ival(0), ivalArray() {} 1. What would the ivalArray() indicate? Would it be the same as initializing every element to null/empty? …

Software Development c++ oop
Member Avatar for Tycellent
0
335
Member Avatar for joshuawilson11

Hi,so I am supposed to encrypt a text file chosen by a user at the moment I have completed most of it (offset factor/shift), I have got each separate character from the text file and put it into a list and converted it into ASCII, I am wondering how you …

Software Development apple encryption python
Member Avatar for joshuawilson11
0
510
Member Avatar for Quast

[Click Here](http://www.imageupload.co.uk/images/2015/03/15/rtb.png) what i want is that when i write any thing on the richtextbox it appear on cell Text. I have found some codes on the internet but i don't know whats wrong: for (int i = 0; i < richTextBox1.Lines.Length; i++) { ListViewItem lvi = new ListViewItem(i.ToString()); lvi.SubItems.Add(richTextBox1.Lines[i]); …

Software Development listview
Member Avatar for Quast
0
299
Member Avatar for Kenneth_3

I have just finished a merge and sort code for two seperate files. My two inputs are: File 1 Adams C Benton A Jones D Haley A King B Margaret F File 2 Barnes A Charles B Johnson C William D and it keeps doing this for my out put …

Software Development c++
Member Avatar for Kenneth_3
0
379
Member Avatar for kayleigh0411

I am trying to implement a test program to describe what this function does: int mystery( const char *s1, const char *s2 ) { for( ; *s1 != '\0' && *s2 != '\0'; s1++, s2++ ) { if( *s1 != *s2 ) { return 0; }//end if }//end for return …

Software Development c perl
Member Avatar for rubberman
0
303
Member Avatar for vivekH

I want convert the .csv file to .arff file can someone suggest what to do? my code is: package csvtoarff; import java.io.File; import weka.core.Instances; import weka.core.converters.ArffSaver; import weka.core.converters.CSVLoader; public class CsvToArff { public static void main(String[] args) { try{ String f1 = "C://Users//user//Desktop//testfold//test.csv"; String f2 = "C://Users//user//Desktop//testfold//output.arff"; // load the …

Software Development file-system java
Member Avatar for vivekH
1
4K
Member Avatar for Vahid_1

Hello, I'm just started to study malloc and realloc, so i just wrote this program to copy two string from user input and consenterate them. then ofcource print it. #include <stdio.h> #include <stdlib.h> #include <string.h> int main() { char *str = malloc(3) gets(str); int sl = strlen(str); str = realloc(str, …

Software Development c c# c++
Member Avatar for sepp2k
0
219
Member Avatar for Tigr@
Member Avatar for Suzie999
-2
94
Member Avatar for Habib_7

what is ungetch?and what this exactly do?

Software Development c
Member Avatar for rubberman
0
128
Member Avatar for bernardine

declaration error appearing on/after `{` below void order() please help what is my error? #include<stdio.h> #include<time.h> #include<process.h> #include<string.h> #include<conio.h> #include<dos.h> /*Placement*/ void order(); void lo(); char *date; /*header*/ char hdr[]="\t\t\t\t Pizza Hut\n\t\t\t\t Billing System\n\t\t\t Philippines Food Corporation\n"; /*opening*/ void main() { clrscr(); int choice; printf(" === \n"); printf(" ======== \n"); …

Software Development c++
Member Avatar for helmi_1
0
188
Member Avatar for Ant695

/*Additional selection structures 16/3/2015 Programme to display weight on a given planet*/ import java.util.*; public class planets { public static void main (String []args) { Scanner keyboardIn = new Scanner (System.in); int weight; char planet; double planet_weight; System.out.print ("Enter your weight"); weight = keyboardIn.nextInt (); System.out.print ("Enter your planet of …

Software Development java
Member Avatar for JamesCherrill
0
187
Member Avatar for redtribal23

InputFile.txt Bea Sanchez Junior Math OPS HIGH 17 90 Nicole Sanchez Freshman Science OCC HIGH 13 98 Billy Cruz Senior English OPS HIGH 17 80 #include <iostream> #include <string>; #include <fstream> using namespace std; struct StudentNode{ string firstName; string lastName; string gradeYear; string subject; string schoolName; int age; int grade; …

Software Development c++ data-science linked-list
Member Avatar for deceptikon
0
166
Member Avatar for negru

Hi. I need help with this program: Example input: 2 4 6 -1 7 3 -2 1 Output: 3 3 (longest series of even is 3, longest series of positive is 3) Here is the code: #include <stdio.h> int even(int x) { return x % 2 == 0; } int …

Software Development c c# c++
0
95
Member Avatar for myk45

Hi All, I saw some code where a `sem_init` was called with a value of 0. I didn't quite understand what this meant. I understand that semaphores can be used to protect shared data, in that we allow just one thread to access the data. And, the way to do …

Software Development c++
Member Avatar for myk45
0
5K
Member Avatar for naz1234

Hi guys, I want to change the width of a line chart When I run with this code: Private Sub Chart1_Click(sender As Object, e As EventArgs) Handles Chart1.Click chart1.Series["Series1"].BorderWidth = 3; Chart1.DataBind() Chart1.Update() End Sub I got this [error](http://i.imgur.com/bGix59l.png). : Property access must assign to the property or use its …

Software Development vb.net
Member Avatar for cgeier
0
354
Member Avatar for michael.james.90475

double fileSizeKB = (fileByteArray.length) / 1024; double transferTime = timer.getTimeElapsed() / 1000; double fileSizeMB = fileSizeKB/1000; double throughput = fileSizeMB/transferTime; System.out.println("The size of the File was "+fileSizeMB+ " MegaBytes"); System.out.println("Time for transfer was " +timer.getTimeElapsed()/1000+ " Seconds"); System.out.printf("Throughput was %.2f MB Per Second\n",+throughput); System.out.println("Number of retransmissions: " + retransmissionCounter); byte[] …

Software Development java
Member Avatar for JamesCherrill
0
233
Member Avatar for hannahaddad

Hi, i was working on corba project using java, now i want to do it on c++. but i don't know how to compile the idl file in c++. I'm using dev-c++ for c++. So what software should i have do compile the idl file?

Software Development c++
Member Avatar for Hector73
0
453
Member Avatar for Mr.M

Hi Dw I'm creating a program in Visual Basic 5.0 and what I want is to listen to keyboard keys the main form that I will be using to listen to the keys will be hidden so that is my problem to detect the keys while the form is hidden. …

Software Development visual-basic
Member Avatar for Mr.M
0
375
Member Avatar for Papa_Don

Hello Group! I've written an app that saves the updated info into a network file folder based on the property number (I'm in the hotel industry). Currently I have a text file with the individual folder names that I've hand written so the app knows where to store the data. …

Software Development app-store vb.net
Member Avatar for cgeier
0
337
Member Avatar for Doogledude123

So I know in a Tile Based game its more effecient to have static final instances of each tile, then populate your array with those instances. But what about Rendering? You have to pass the position that tile should be rendered into your method you use for rendering. Is there …

Software Development gaming java
Member Avatar for JamesCherrill
0
178
Member Avatar for Niloofar24

Hello my friends. Look at this please: >>> from bs4 import BeautifulSoup >>> import urllib2 >>> url = urllib2.urlopen('https://duckduckgo.com/?q=3D&t=canonical&ia=meanings') >>> soup = BeautifulSoup(url) >>> links = soup('a') >>> print links [<a class="header__logo-wrap" href="/?t=canonical" tabindex="-1"><span class="header__logo">DuckDuckGo</span></a>, <a class="search__dropdown" href="javascript:;" id="search_dropdown" tabindex="4"></a>, <a href="https://duckduckgo.com/html/?q=3D">here</a>] >>> I used this `https://duckduckgo.com/?q=3D&t=canonical&ia=meanings` as the url, …

Software Development python seo
Member Avatar for vegaseat
0
597
Member Avatar for Niloofar24

Hello! How can ask my scipt to print **every word** in a url page that starts with the letter "A" in this case? This is my code: from bs4 import BeautifulSoup import urllib2 url = 'http://www.thefamouspeople.com/singers.php' html = urllib2.urlopen(url).read() soup = BeautifulSoup(html) for word in soup.text: if soup.text.startswith('A'): print soup.text …

Software Development python
Member Avatar for vegaseat
0
491
Member Avatar for negru

I need to create dynamic string by given format(%d,%s,%f,%lf,%c) using variable number of arguments in function. This code gives me an error(main.exe has stopped working): #include<stdio.h> #include<stdarg.h> #include<string.h> #include<stdlib.h> char *form(char *format,...); char *form(char *format,...) { char *res=(char *)calloc(1,1),val_int[12],*pos_int,*val_str,*pos_str,*val_float,*pos_float,*val_lf,*pos_lf,*val_char,*pos_char; va_list args; va_start(args,format); do { pos_int=strstr(format,"%d");pos_str=strstr(format,"%s");pos_float=strstr(format,"%f");pos_lf=strstr(format,"%lf");pos_char=strstr(format,"%c"); if(pos_int && (!pos_str || pos_int …

Software Development c c# c++
0
153
Member Avatar for CodeWarrior14

I have written a simple message encoded that encodes messages into words of 4 characters each. It generates a key that will later be used to decode the message. The key is a list of numbers. The numbers are the original whitespace positions before the encoding started. The problem: My …

Software Development python
Member Avatar for vegaseat
0
352
Member Avatar for gahhon

I have facing few problems with my lab questions. and i am using BlueJ software for my lab work. 1. Are two objects equal if their state is the same? And i answered No, however they are still different objects with the same state. But how can i explain it? …

Software Development java
Member Avatar for gahhon
0
206
Member Avatar for tgreiner

When reading any beginning manual on C++ an array is introduced as follows: float A[10]; That format is valid, in that it compiles and seems to work just fine -- for a while. Later on in the manual we learn to allocate/release memory using the new and delete keywords. So, …

Software Development algorithm c++
Member Avatar for tgreiner
0
228
Member Avatar for CodeWarrior14

Hello. I am was doing research on cryptography and found a simple algorithm (One time pad algorithm) that interests me. I was able to create a simple version of this that only works with capital letters. The problem however is that the encrypted contents doesn't only contain capital letters. It …

Software Development algorithm encryption python
Member Avatar for vegaseat
0
374
Member Avatar for mohamed_49

Write a c++ program to compute Number of visits for salesman per month, where he takes 60 minutes in each visit and 15 minutes to move from visit to other. Then compute the total profit for this salesman if you know that the return profit for each visit is 500 …

Software Development c++
Member Avatar for AkumaJack
0
232
Member Avatar for lyca

im a complete newbie in visual basic and im currently working on my first project which is the book borrowing system. the project is almost done except with this error. Syntax error(missing operator) in query expression 'Title like %Mathew Henry's Commentary:GEnesis to Revelation%"

Software Development visual-basic
Member Avatar for lyca
0
282
Member Avatar for CodeWarrior14

I need to allocate memory to a pointer variable passed by parameter. #include <stdio.h> #include <stdlib.h> typedef int* PTR_VALUE; int initialize(PTR_VALUE value_array) { value_array = (PTR_VALUE)malloc(sizeof(PTR_VALUE) * 94); return 0; } int main() { PTR_VALUE pValue; initialize(*pValue); printf("%d", pValue); gets(""); return 0; } but I get an error when I …

Software Development c
Member Avatar for CodeWarrior14
0
225
Member Avatar for Liwons

SELECT BANK ACCOUNT.*FROM BANK ACCOUNT ORDER BY ACCOUNT NAME What is the missing operator here? In sql statement, pls I need help

Software Development visual-basic
Member Avatar for Liwons
0
134
Member Avatar for linus72982

I have a layout for an app that has a panel that places 3 static boxes (nodes) per row, and then keeps going until the dictionary of nodes is out. I figured out the flex grid sizer to do so (wrapped by regular boxsizers to add padding above and on …

Software Development python
Member Avatar for vegaseat
0
257
Member Avatar for naz1234

Hi guys, I want to create a window application from VB, so that a user can enter the **OLD Power** value in table. Then **line chart** will be created in that windows application. My **Old Power** data already obtained and recorded in Excel. So, in that window application, 1) The …

Software Development microsoft-office vb.net
Member Avatar for naz1234
0
5K
Member Avatar for Liwons

Dim searchvar As String Dim sbookmark As String searchvar = Text1 searchvar = Trim$(searchvar) If searchvar <> " " Then With Data1.Recordset sbookmark = .Bookmark .FindFirst "ACCOUNT NO like'" + searchvar + "*'" If .NoMatch Then MsgBox " No Record Found " .Bookmark = sbookmark End If End With End …

Software Development seo visual-basic
Member Avatar for djjeavons
0
292
Member Avatar for genie_ps

Hi, I am a new member in this site. I am also just learning VB6. I made some progress in programming a report generator for my farm. However, after having designed a report using Data Report designer, I keep getting the same result or reports repeatedly although I have changed …

Software Development visual-basic
Member Avatar for borge438
0
3K
Member Avatar for jnneson

Hello Sir/Ma I am a self learning buddy, I recently finish a book "Programming in C" language. I will like to know how I can develop mt skill and learn more... please help

Software Development c
Member Avatar for jnneson
0
133
Member Avatar for Search_not

I am currently busy working on an instant messenger program using the UDP `DatagramSocket` and `DatagramPacket` instead of the usual connection-based `Socket` and `ServerSocket`. I need the server-side of the application to check the online status of its clients. I have attempted doing this by connecting to the server using …

Software Development java
Member Avatar for Search_not
0
254
Member Avatar for rvndrdahiya

I declared two different char * and initialised them to the same string. but i thought they would be pointing to the different addresses , but they pointed to the same addresses.. How come this happens? char* arr = "abcdefgh"; char* brr = "abcdefgh"; cout<<arr<<endl; cout<<brr<<endl; the values printed out …

Software Development c++
Member Avatar for rvndrdahiya
0
286
Member Avatar for Papa_Don

Group, You've helped me write a routine that merges and formats a text file when multiple files exist. The code is as follows: If fileCount = 3 Then RestranName = getRestranName(0) RestranName2 = getRestranName(1) RestranName3 = getRestranName(2) Dim readtxt() As String = File.ReadAllLines(RestranName) 'Deleted the actual file. File.Delete(RestranName) 'Now time …

Software Development user-interface vb.net
Member Avatar for Santanu.Das
0
970
Member Avatar for dashawk

Hi guys, I want to multiply or add the values of two or more cells in a datagridview control in a row and and should also be auto-saved in the database after entering datas in the cell. I am using SQL Server 2008 for my database. Please do take a …

Software Development sql vb.net
Member Avatar for Santanu.Das
0
5K
Member Avatar for shifiya

A super-intelligent species of coconut-eating tropical bird has decided to develop a scenic ight path roughly following the perimeter of the island that they inhabit. Owing to the impressive energy con- sumption of their overdeveloped brains, these birds can only afford to y in straight lines from one coconut tree …

Software Development c
Member Avatar for iamthwee
-1
150
Member Avatar for Matt_15

//This is an example, coding not complete. Say main runs the function add, int add adds two random numbers and int random gets a random number from the array. By keeping 3 functions, how would I pass b and c to int add? Right now b and c are undeclared …

Software Development c
Member Avatar for deceptikon
0
257
Member Avatar for Igor_1

I am trying to make a small dice roll program. By using after(), I would like to make a small "image animation". that displays an other image every ... ms. Unfortunatly sofar only the final image(of the dice roll outcome) is shown and not the visual animation. Does any one …

Software Development python tkinter
Member Avatar for vegaseat
0
1K
Member Avatar for Johnny Blaz

import tkinter from tkinter import ttk top=tkinter.Tk() top.title("Scoreboard") top.configure(background="black") w=ttk.Scrollbar(top,orient='vertical') l1=tkinter.Label(top,height=2,width=67,bd=4,text="Welcome To Cricket World Cup 2015",font=("Purisa",15),fg="white",bg="red",relief="ridge") l1.grid(row=0,column=0,columnspan=67) l2=tkinter.Label(top,height=2,width=25,font=("Purisa",15),text="India",fg="white",bg="red",relief="ridge") l2.grid(row=1,column=0) l3=tkinter.Label(top,height=2,width=15,font=("Purisa",12),text="VS",fg="white",bg="black") l3.grid(row=1,column=1) l4=tkinter.Label(top,height=2,width=25,font=("Purisa",15),text="Australia",fg="white",bg="red",relief="ridge") l4.grid(row=1,column=2) l5=tkinter.Label(top,height=9,width=67,bd=4,font=("Purisa",15),bg="red",relief="ridge") l5.grid(row=3,column=0,columnspan=67) l6=tkinter.Label(top,height=2,width=15,font=("Purisa",12),text="India",fg="white",bg="Black",relief="ridge") l6.grid(row=3,column=0,rowspan=1,sticky="NW") l7=tkinter.Label(top,height=3,width=14,font=("Purisa",20),text="183/2",fg="white",bg="Black",relief="ridge") l7.grid(row=3,column=0) l8=tkinter.Label(top,height=3,width=14,font=("Purisa",20),text="45.1",fg="white",bg="Black",relief="ridge") l8.grid(row=3,column=2) l9=tkinter.Label(top,height=3,width=20,font=("Purisa",12),text="RR = 4.057 ",fg="white",bg="Black",relief="ridge") l9.grid(row=3,column=1,rowspan=1) l10=tkinter.Label(top,height=2,width=15,font=("Purisa",12),text="Toss = Australia",fg="white",bg="Black",relief="ridge") l10.grid(row=3,column=2,rowspan=1,sticky="NE") l11=tkinter.Label(top,height=7,width=67,bd=4,font=("Purisa",15),bg="red",relief="ridge") l11.grid(row=6,column=0,columnspan=67) l12=tkinter.Label(top,height=2,width=13,font=("Purisa",20),text="Player name",fg="white",bg="Black",relief="ridge") l12.grid(row=6,column=0,sticky="NWE") l13=tkinter.Label(top,height=2,width=12,font=("Purisa",20),text="Balls",fg="white",bg="Black",relief="ridge") l13.grid(row=6,column=2,sticky="NEW") l14=tkinter.Label(top,height=2,width=11,font=("Purisa",20),text="Runs",fg="white",bg="Black",relief="ridge") l14.grid(row=6,column=1,sticky="NWE") l15=tkinter.Label(top,height=1,width=10,font=("Purisa",14),text="44",fg="white",bg="Black",relief="ridge") …

Software Development python tkinter
Member Avatar for vegaseat
0
4K
Member Avatar for sameer.a.awan1

import java.util.ArrayList; import java.util.Collections; public class PersonMaker { public static void main(String[] args) { ArrayList<Person> personAL = new ArrayList<Person>(); ArrayList<Address> addressList = new ArrayList<Address>(); Address c0 = new Address("2100 Pleasant Hill road", "duluth", "GA", "30096"); Address c1 = new Address("3392 fairway oaks", "lawrenceville", "Georgia", "30044"); Address c2 = new Address("4493 …

Software Development java
Member Avatar for stultuske
0
194
Member Avatar for fantyfiz

Hi. I am working on vb.net and i want ot link a form with a button so when i click on button the form show but it contain error kindly guide code is this: Dim myform As New Form1 myform.Show() and the compiler show error on myform.show()

Software Development vb.net
Member Avatar for fantyfiz
0
152
Member Avatar for davidbr

Hello, I have this code which is working import Tkinter as tk from Tkinter import * LARGE_FONT= ("Verdana", 12) class ChangePages(tk.Tk): def __init__(self, *args, **kwargs): tk.Tk.__init__(self, *args, **kwargs) container = tk.Frame(self) container.pack() container.grid_rowconfigure(0, weight=1) container.grid_columnconfigure(0, weight=1) self.frames = {} for F in (MainPage, Page01, Page02): frame = F(container, self) self.frames[F] …

Software Development python tkinter
Member Avatar for davidbr
0
4K
Member Avatar for Niloofar24

Hi friends! I want to create a countdown program. Here is my code: from kivy.app import App from kivy.uix.boxlayout import BoxLayout from kivy.uix.label import Label import datetime class CountdownApp(App): def build(self): delta = datetime.datetime(2015, 3, 21, 2, 15, 11) - datetime.datetime.now() days = delta.days days = str(days) self.label_days = Label(text=days …

Software Development python
Member Avatar for ms95
0
3K
Member Avatar for anandhachandru

can anyone say best way to convert java class file into java file appreciate for your help thanks

Software Development java
Member Avatar for anandhachandru
0
626

The End.