199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Brian1983

How would I go about modifying this code to accept characters instead of integers? #include <iostream> #include <cstdlib> using namespace std; struct node { int key; node *next;}; int main(int argc, char* argv[]){ if(argc >2) { int i, N = atoi(argv[1]), M = atoi(argv[2]); node *t, *x; t = new …

Member Avatar for Brian1983
0
188
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?

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

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 …

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.

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

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?

Member Avatar for Ancient Dragon
0
262
Member Avatar for gahhon

I was unable to go previous month and next month by clicking the next and previous. And i also unable to display another color when i selected a date. <asp:Calendar ID="cldDOB" runat="server" BackColor="#FFFFCC" BorderColor="#FFCC66" BorderWidth="1px" DayNameFormat="Shortest" Font-Names="Verdana" Font-Size="8pt" ForeColor="#663399" Height="200px" ShowGridLines="True" Width="220px" NextPrevFormat="ShortMonth"> <DayHeaderStyle BackColor="#FFCC66" Font-Bold="True" Height="1px" /> <NextPrevStyle Font-Size="9pt" …

Member Avatar for gahhon
0
388
Member Avatar for gahhon

![b3b9d6d242e982759c39df5fe055ad6a](/attachments/large/3/b3b9d6d242e982759c39df5fe055ad6a.jpg "b3b9d6d242e982759c39df5fe055ad6a") What i am doing wrong? Or there is some retriction? i success to read the whole page as my email content, but the images cannot being display as well as my css style cannot be read too.

Member Avatar for gahhon
0
133
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 = …

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?

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 …

Member Avatar for hmx7
0
138
Member Avatar for laura301019

Hi I am starting my final year project and was wanting to know how to connect visual studio to my database. I am using phpmyadmin which is on the uni's server so I can work on it at uni and at home but I am having trouble finding out how …

Member Avatar for laura301019
0
273
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 …

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 …

Member Avatar for cambalinho
0
234
Member Avatar for cambalinho
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

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 …

Member Avatar for cambalinho
0
334
Member Avatar for sirlink99

Hello. I am designing a calculator app as part of a project. I have all the buttons inserted in the correct order. My problem is that the last column of buttons horizontally fills up the rest on the unused screen. As the device size scales, the more and more the …

0
88
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 …

Member Avatar for DM Galaxy
0
312
Member Avatar for tibormarias

Evening Sirs, I would like to specialize my search script, by not only searching in one row, but in more. For example my mysql_query looks like this now: $query = "select * from table where street = '$trimmed'"; I would like to query it like this: $query = "select * …

Member Avatar for tibormarias
0
133
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 …

Member Avatar for Ronald_2
0
169
Member Avatar for ruhestorer

Hi, I have problems with getting data out of the **MS SQL Server 7.0** database in right encoding using **odbc** connection: $conn = odbc_connect("Driver={SQL Server};Server=$server;Database=$database; CharacterSet => UTF-8", $user, $password); I had the same problem when I used MS SQL Server 2005 and sqlsrv connection, but I found the solution. …

Member Avatar for ruhestorer
0
12K
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

Member Avatar for ddanbe
0
109
Member Avatar for grafic.web

Hi, i am new in asp.net and i found it quiet difficult... i was programming in classic asp and sql server, but asp.net looks quiet different, specially if i do program in C# .... Than i hase a couple of questions : 1) if i do a form with 2 …

Member Avatar for grafic.web
0
371
Member Avatar for Indians

i created main.php page. this page includes these following php codes, <?php $user = ""; $pass = ""; $db = ""; $connect = mysql_connect("", $user, $pass); if(!$connect) { die ("Could not connect to MySQL"); } mysql_select_db($db, $connect) or die ("Could not open $db: " .mysql_error()); $sql = mysql_query ( "SELECT …

Member Avatar for Indians
0
280
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 …

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

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

Member Avatar for deceptikon
0
444
Member Avatar for praba_web

i got following errors. my login is working fine at localhost. but it is not working on server. please help me. Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/rnzsnet/public_html/archler.com/demo1/admin/verify_admin.php:22) in /home/rnzsnet/public_html/archler.com/demo1/admin/verify_admin.php on line 38 Warning: session_start() [function.session-start]: Cannot send session cache limiter …

Member Avatar for Bachu
0
155
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 :)

Member Avatar for APG1
0
282
Member Avatar for Kleon

did any body had this error before with xamp in php e Texti: hbinp0ØÿÿÿlfùAnti¸P3GlP3Si°£à¦èÿÿÿlf`<Clea LowMàÿÿÿvk€ AVLC.m3u8øÿÿÿ`pØÿÿÿvk € PUserFlagslnkøÿÿÿŒ ÿÿÿvkA€ C:\Users\Bardh\Downloads\Photoshop_Plugins_x64_8.54.0625.1800.exeTortoisàÿÿÿvk€€Heightàÿÿÿvk€SortPropÐÿÿÿvk€2application/x-mpegDiøÿÿÿ€àÿÿÿvk€è0 Widthd Cðÿÿÿen_GB ÿÿÿnk x[ù¹ÍH~ÿÿÿÿÿÿÿÿX{(œÿÿÿÿ RecognizersÿÿÿC:\Users\Bardh\AppData\Roaming\Unity\WebPlayerPrefs\1øÿÿÿp™àÿÿÿvk€izWrapnkràÿÿÿvkHø‚yurl38ðÿÿÿlfgDISPØÿÿÿvk€,ptUserMoviesLimitàÿÿÿ

Member Avatar for Kleon
0
135
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 …

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

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

Member Avatar for qew.brown
0
260
Member Avatar for patk570

Hello, I am trying to update 3 tables that i have in my db. the second and third INSERT commands there is a specific field that needs to have the ID of the first table last row inserted. first table, admin: +--------------------+ |id username passcode| |1 admin test | +--------------------+ …

Member Avatar for patk570
0
190
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, …

Member Avatar for vividiah
0
121
Member Avatar for parth2911
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 …

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 & "'", …

0
126
Member Avatar for Thundermax
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 < …

Member Avatar for younes.keraressi
0
217
Member Avatar for Ann Krizette

please help why everytime when I run it it has this undefined error ( Notice: Undefined index: u_role in C:\xampp\htdocs\mysite\membership.php on line 136 /> Member Notice: Undefined index: u_role in C:\xampp\htdocs\mysite\membership.php on line 137 /> Administrator) <td>User Role:*</td> <td><input type="radio" name="u_role" value="Member" <?php if($_POST['u_role']=="Member"){echo"checked='checked'";}?> /> Member <input type="radio" name="u_role" value="Administrator" …

Member Avatar for Ann Krizette
0
521
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 …

Member Avatar for Quazy
0
337
Member Avatar for Anima Templi

Hello Daniweb, I will soon reach the point where I'm ready to move on my journey of programming. One thing that has always interested me is the mobile world. I would like to develop things for the mobile world. What I want to ask/know is tips from people already developing …

Member Avatar for Andy Res
0
312
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 …

Member Avatar for coolsasuke
0
644
Member Avatar for brandon66

Hello everyone i have two forms that are similiar the only difference is the rma number. One RMA number will get typed in by the user which will add it to the database and the second one, the user will select an rma number from the database(dropdown menu). What i …

Member Avatar for brandon66
0
246
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: …

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

Member Avatar for cambalinho
0
744
Member Avatar for unikorndesigns

Hi, I'm new to mobile development. I recently came across phonegap and i wanted to know if PhoneGap would actually be able to build my mobile apps faster. I'm a PHP developer and i use CI for my development. So is PhoneGap something like CI for mobile app development? I …

Member Avatar for Andy Res
0
231

The End.