199,114 Archived Topics
Remove Filter ![]() | |
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 … | |
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? | |
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); … | |
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 … | |
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. | |
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) … | |
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? | |
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" … | |
 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. | |
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 = … | |
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? | |
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 … | |
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 … | |
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 … | |
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 … | |
using templates: how can i do a parameter for accept a function name? | |
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 | |
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 … | |
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 … | |
I want to know that How I can Add the table in VB? As for wxample we see in IDM:  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 … | |
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 * … | |
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 … | |
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. … | |
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 | |
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 … | |
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 … | |
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 … | |
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")) … | |
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. … | |
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 … | |
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 :) | |
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àÿÿÿ | |
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 … | |
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 | |
![]() | 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) … ![]() |
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 | +--------------------+ … | |
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, … | |
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 … | |
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 & "'", … | |
is there any function to add a character at the end of a string? or algorithm? | |
![![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 < … | |
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" … | |
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 … | |
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 … | |
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 … | |
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 … | |
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: … | |
Hi all, I am fairly new to C++, but i am having trouble declaring a 2D dynamic array. Any help will be appreciated. Thanks | |
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 … |
The End.