132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for matthew.s.thomas.14

Implement function ion() that takes a string as input and returns True if the entered string ends in 'ion' and false otherwise. ion('congratulation') True ion('marathon') False How can I start this off and Finish it?

Software Development python
Member Avatar for TrustyTony
0
133
Member Avatar for abhimanipal

Hi Guys, I am trying to teach myself templates and I keep getting lost in all these compilation errors. Here is the latest // This is the interface for the base class template<class V, class I =int> class Array{ private: vector<V> myStore; public: Array(); Array(I size); Array(I size, V value); …

Software Development c++ oop ui-ux
Member Avatar for abhimanipal
0
253
Member Avatar for lovelyv

So this is what i need to do and its not coming out right in my code. i need A function to calculate how long the balance will take to grow to a given value. This function is not part of the account class. It should take two arguments: an …

Software Development c++
Member Avatar for lovelyv
0
390
Member Avatar for sagngh8

Hi Everyone, How important is for computer programmers to learn assembly language.I am a C# programmer and i haven't program in assembly language at all.Is it really worth learning assembly language for high level language programmers. Thanks.

Software Development assembly
Member Avatar for mathematician
0
788
Member Avatar for iFrolox

Hello, I'm having trouble serilizing different classes to the same xml. Class #1 is for accounts Class #2 is for settings public static void SerializeAcc(List<Account> list) { XmlSerializer serializer = new XmlSerializer(typeof(List<Account>), new XmlRootAttribute("Settings")); using (TextWriter writer = new StreamWriter(XMLPath)) { serializer.Serialize(writer, list); } } public static void SerializeSett(List<General> list) …

Software Development
Member Avatar for iFrolox
0
134
Member Avatar for infatuate

Hey guys I'm having trouble declaring a header file so I can use multiple modules. I have files named main.c foo.h and in main.c I have a <#include foo.h> but it says that it can't find the foo.h file. Why?

Software Development c
Member Avatar for Ancient Dragon
0
262
Member Avatar for nytman

dear list, what i have to do is, i have perform some mathmatical operation in one function and using its results as input into another function, here is my code of what i had done till now : import math def Math(x1,y1): a = x1+y1 b = x1-y1 c = …

Software Development python
Member Avatar for vegaseat
0
293
Member Avatar for frankenfrank

Since I noticed that these languages are rather popular, what are the advantages and disadvantages of each over the others? and what is the need/motivation for each one of them? Why are there no C++/Java libraries to deal with those needs?

Software Development perl php python
Member Avatar for vegaseat
0
425
Member Avatar for hmx7

Use a while loop to collect a shopping list of items from the user. Then use a while or for loop to list it back to them. i have: item = int(input('How many items do you have? ')) while item > 0: input('Name of item: ') item -= 1 i …

Software Development python
Member Avatar for hmx7
0
138
Member Avatar for cobalt555

For some reason I am receiving this error , cannot find symbol, method Math random() not found . If anyone knows why it would be of great help. int digit1 = (int)(Math.random() * 10); int digit2 =(int)(Math.random()* 10); this is supposed to give me two separate random digit variables between …

Software Development java
Member Avatar for cobalt555
0
127
Member Avatar for cambalinho

i build these code. it's very cool: in test.h: class test { private: bool blVisible; int x=0,y=0; public: void Show(); bool Visible() { return blVisible; } void Visible(bool value) { blVisible=value; if (value==true) Show();//call the event } }; in main.cpp: include <iostream> #include "test.h" using namespace std; test a; void …

Software Development c++
Member Avatar for cambalinho
0
234
Member Avatar for cambalinho

using templates: how can i do a parameter for accept a function name?

Software Development c++
Member Avatar for cambalinho
0
140
Member Avatar for nadimfaz

hello, i am doing a mini project in vb.net2010...BLOOD BANK MANAGEMENT...but i dnt knw how to connect vb.net2010 with ms access 2007..and how to code for add, delete,update records...plz help me

Software Development vb.net
Member Avatar for nadimfaz
0
1K
Member Avatar for cambalinho

the Visual Studio 2010 have 1 way for build properties, in class's. but isn't a portable code:( i'm using GNU\GCC\G++. so don't belive that isn't possible do it in C++;) so anyone can advice me? i was testing these code, but i get problems with char* and i can't use …

Software Development c++ visual-studio
Member Avatar for cambalinho
0
334
Member Avatar for DM Galaxy

I want to know that How I can Add the table in VB? As for wxample we see in IDM: ![a43a3a52847803516eab225b30abb76f](/attachments/small/4/a43a3a52847803516eab225b30abb76f.png "align-right") As You can see here: there were partition in th listbox. Same I want to create: I try to use multicolumn: checked = true and also adjust width …

Software Development vb.net
Member Avatar for DM Galaxy
0
312
Member Avatar for markdean.expres

Why is it that the icon of my form appears only when I am running it in my IDE. When I publish my program and running it in Windows, the icon does not appear at the taskbar, what appears is a default icon instead. Can help me how to deal …

Software Development ide vb.net
Member Avatar for Ronald_2
0
169
Member Avatar for Payal Gupta

Hello to all I am new in c# and has just started learning it. Can anyone provide me some examples which I can practice to improve my coding skills. I have some but that are not enough. Thanks in advance. I have done arrays, accessspecifiers, methods. Regards Payal

Software Development
Member Avatar for ddanbe
0
109
Member Avatar for daksh1998

I have made a program for hotel management. It has a problem that: In the Accounts function, it should reset all the flags of the registered members through the program. But there is a error that it does NOT. I have spent a lot of months, trying to debug this …

Software Development c data-structure
Member Avatar for shibblez
0
396
Member Avatar for castajiz_2

1.code -------------------------------------------------------------------------------------------------------------------- static void Main(string[] args) { SqlConnection sc = new SqlConnection("Data Source=pc3490ierf43;Initial Catalog=Persons;Integrated Security=True"); sc.Open(); SqlCommand command=new SqlCommand("Select Name from Persontable",sc); SqlDataReader reader= command.ExecuteReader(); while (reader.Read()) { Console.WriteLine("{0}", reader.GetString(0)); } Console.ReadLine(); } --------------------------------------------------------------------------------------------------------------------- ** 2.code** static void Main(string[] args) { using (SqlConnection sc = new SqlConnection("Data Source=pc3490ierf43;Initial Catalog=Persons;Integrated Security=True")) …

Software Development c c# c++ open-source sql
Member Avatar for deceptikon
0
255
Member Avatar for abhimanipal

Hi Guys, I am trying to teach myself templates in C++. My current assignment is to create a matrix class by using vector of vectors. I have got most of it done but my code is crashing when I try to overload the random access operator in my matrix class. …

Software Development c++ matrix-multiplication ui-ux
Member Avatar for deceptikon
0
444
Member Avatar for mandyCheong

is it possible to move the picturebox inside a panel in vb windows form? if yes can i know what is the code? thx and i appreciate ur help :)

Software Development vb.net
Member Avatar for APG1
0
282
Member Avatar for Lloyd_2

Im kinda still new at java and with help, developed a java file that will take numbers from a text file and calculate a invoice that will format like this: Invoice -------------------------- Account Amount Due 10011 $12.25 10033 $11.70 -------------------------- Total $23.95 I got it to print out to console …

Software Development file-stream java
Member Avatar for stultuske
0
861
Member Avatar for Bakondaonline

hi every one I have this msg: run-time error '380' invalid property value the error showing in this pic http://im33.gulfup.com/yuIaW.jpg

Software Development visual-basic
Member Avatar for Bakondaonline
0
73
Member Avatar for qew.brown

Hi, This is my first post, forgive me for not being immediately familiar with any forum protocols. I am trying to read in a txt file and store the data in my class. I keep running into this error Exception in thread "main" java.lang.NumberFormatException: For input string: "./src.Chance" at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) …

Software Development java
Member Avatar for qew.brown
0
260
Member Avatar for vividiah

I will make the process of looping the data to save data into SQL Server database, but field data that must be stored is retrieved from the database access, data taken later not only a record, but a lot of records, so it takes a process of looping in it, …

Software Development open-source visual-basic
Member Avatar for vividiah
0
121
Member Avatar for parth2911
Member Avatar for parth2911
0
373
Member Avatar for skyyadav

Write a minimal terminal emulator which will basically just transmit all characters typed on the keyboard to the serial port and display all characters received via the serial port. Include a set of menu items that will allow a user to:  Select, modify or set the communication parameters such …

Software Development c++ windows-api
Member Avatar for Ancient Dragon
0
231
Member Avatar for roy.vincent.56

Guys i need help it says there is a data mismatch in criteria expression need help fast!! Dim statement2 As New OleDbCommand("select * from Student_registration where Student_code = '" & studentnotextbox.Text & "'", conn) Dim statement2 As New OleDbCommand("select * from Student_registration where Student_code = '" & studentnotextbox.Text & "'", …

Software Development dataset visual-basic
0
126
Member Avatar for Thundermax

is there any function to add a character at the end of a string? or algorithm?

Software Development algorithm c
Member Avatar for Thundermax
0
614
Member Avatar for younes.keraressi

![![hi, im wondring why i get this error here my code: #include <iostream> #include "Stuff.cpp" using namespace std; int main() { //... } //Stuff.cpp #include <iostream> #include <string> using namespace std; bool Correct_Parent(string x) { int p_Left_Counter = 0; int p_Right_Counter = 0; for(unsigned int c = 0; c < …

Software Development c++
Member Avatar for younes.keraressi
0
217
Member Avatar for Quazy

Hello, I would appreciate some help to import data from a text file to a datagridview. If anyone could give me a hint to get started... The textfiles have the column name in the "[ ]" I would like to read the data after the [wp], [pos], [rad] blocks, the …

Software Development vb.net
Member Avatar for Quazy
0
337
Member Avatar for coolsasuke

Hey daniweb users, I've come by a code in my project where it says "Resource identifier " has already been used in this assembly". May i know what are the possible causes of it? Also, i've already checked the project file (.csproj) extension; there are no duplications of the same …

Software Development assembly
Member Avatar for coolsasuke
0
645
Member Avatar for MrNoobieCoder

I am currently in need of help on a piece of homework, I'm using python 3.3 and i need to set a delay on a times table program that i created heres the code: def get_int(prompt="Enter an integer: "): """this function will loop until an integer is entered""" while True: …

Software Development python
Member Avatar for MrNoobieCoder
0
236
Member Avatar for k88joshi

Hi all, I am fairly new to C++, but i am having trouble declaring a 2D dynamic array. Any help will be appreciated. Thanks

Software Development c++
Member Avatar for cambalinho
0
744
Member Avatar for gneisler

The code on lines 44-53 is suppose to check see if the user enter a negative and produce a message, however, when the use enters a positive code produces the display again. #include<iostream> #include<cctype> using namespace std; int main() { char carType; int A, B, C; char keepgoing; char condition; …

Software Development c++ ios
Member Avatar for cambalinho
0
143
Member Avatar for cambalinho

i'm trying doing a static clas, but i, always get errors... now i have head pain:( class Pessoa2 { private: static string strnome; public: Pessoa2() { strnome="ana"; } void setnome(string value) { strnome=value; } static string getnome() { return strnome; } }; just seen these static class, what i'm doing …

Software Development c++
Member Avatar for cambalinho
0
214
Member Avatar for cambalinho

i read several time about Bitwise Right Shift Operator (>>\<<) but i continue without understand them:( can anyone explain to me? i don't undertand what will be the next results:( Half = 25 >> 1; Half = 25 << 1;

Software Development c++
Member Avatar for cambalinho
0
391
Member Avatar for anga08628

Define a 5 x10 2-dimensional array of integers (5 rows of 10 columns), randomly generate 50 numbers between 1 and 100, assign them to the array elements and display all the numbers on 5 lines of 10 integers each. [code=cpp] #include <iostream> #include <ctime> // For time() #include <cstdlib> // …

Software Development c++
Member Avatar for irum.nageen.3
0
11K
Member Avatar for Thermalnuke

Hey Guys Im working on an assignment dealing with arrays. I have to Delete the duplicates in the array and re-display the array with the duplicates deleted. I Have code that I written up that is able to step throgh the process and will display the duplicated elements in the …

Software Development java
Member Avatar for JamesCherrill
0
478
Member Avatar for weathermans

Hi, looking for help on how to get data from an xml file, or txt file and then automaticly send it over the serial port. I am looking to program a sports score ticker

Software Development c++ xml
Member Avatar for Ancient Dragon
0
262
Member Avatar for Programmer629

Hey guys. I want to learn how to make a speech recognition program. I don't want it to be JUST commands. I don't want it to be JUST dictating either. I want it to be commands, dictation, and I want it to be kind of like talking to a real …

Software Development open-source vb.net
Member Avatar for Mr.M
0
261
Member Avatar for sam.escott4

Hi, im writing a type of password generator, you insert a keyword and it gaves back a password by substituting letters and adding numbers/symbols to the string. Is there a way to split the text from one textbox into several strings every few letters? I´m new to programming, and have …

Software Development vb.net
Member Avatar for Mr.M
0
216
Member Avatar for gmmorpheus

Private Sub Load_Faculty() Dim con As New OleDbConnection Dim cmd As New OleDbCommand Dim dr As OleDbDataReader Dim arrImage() As Byte Dim myMS As New IO.MemoryStream Dim sSQL As String = String.Empty Try sSQL = "SELECT b.FacultyID, b.Image, b.Course, a.Course" sSQL = sSQL & " FROM studentsrecords as a left …

Software Development vb.net
Member Avatar for Mr.M
0
164
Member Avatar for debrah.rutherford

procedure TMSDE2005Fm.ButtonInstallClick(Sender: TObject); Var txt: TextFile; aFileName, s: String; begin aFileName := GetTempDir + '\PROD_Name.bat'; AssignFile(txt, aFileName); ReWrite(txt); s := GetSetupString; WriteLn(txt, s); CloseFile(txt); MessageDlg('Setup will now begin for SQL Server 2005 Express.', mtInformation, [mbOk], 0); ShellExecute(0,'open',PChar(aFileName),nil,nil,SW_SHOW); ButtonCancel.Caption := '&Finish'; end; function TMSDE2005Fm.GetSetupString: String; begin Result := '"' + Trim(wwDBEditSetup.Text) …

Software Development vb.net
Member Avatar for oussama_1
0
256
Member Avatar for joester007

I'm making a random number game. The user only gets three chances to guess. If the user guesses wrong all three times, a message box should appear asking if he/she wants to restart, if yes then reset the game and it's controls. I'm not sure if i'm suppose to use …

Software Development vb.net
Member Avatar for Mr.M
0
214
Member Avatar for Mr.M

Hi DW I'm creating an application in VB.Net which is using the command to complete the tasks the reason why I'm doing this on VB.Net is that I have an interface where the user will be able to type in and also choose the prefered options, the vapplication will then …

Software Development user-interface vb.net
Member Avatar for Mr.M
0
170
Member Avatar for muhammadwaqar.siddiqui.3

Hi everyone!! i have a problem here. i am writing a database program in C in which i used files and structures to store data. but my code is not running :/ here is my code:: #include<stdio.h> #include<conio.h> #include<stdlib.h> struct std_info { char name[15]; char seatno[9]; float ssc; float hsc; …

Software Development c
Member Avatar for Ancient Dragon
0
408
Member Avatar for sonunclejalil

Private Sub cmdfind_Click() Dim search As String search = txtfind.Text Con.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & App.Path & "\HOSTEL STUDENT.mdb;Persist Security Info=False" Rs.Open "SELECT * FROM STUDENTS WHERE [REG] LIKE" & "'" & search & "'", Con, adOpenStatic, adLockOptimistic Do Until Rs.EOF Rs.MoveNext Loop If Rs.EOF = True Or Rs.BOF = True …

Software Development gui seo visual-basic
Member Avatar for sonunclejalil
0
3K
Member Avatar for Yna Aurielle

i am making a reservation system and i am having a a problem with time conflicts(the system must not accept a reservation where in there is already an event reserved art that time. . my table looks like this ![0fac31edf20c874089f52ed4a0be4fb6](/attachments/small/4/0fac31edf20c874089f52ed4a0be4fb6.png "align-left")

Software Development mysql vb.net
Member Avatar for Reverend Jim
0
382
Member Avatar for nitin1

I am doing a course in recommender systems on coursera.org. I have got an assignment in that. They have told us to use IntelliJ IDE and Lenskit to use. I am very good at C, C++, but not that well in Java. So finding it difficiult to get up these …

Software Development ide java
Member Avatar for pritaeas
0
121

The End.