199,111 Archived Topics
Remove Filter ![]() | |
Hi all, I don't quite understand the program print the following output. [CODE] class D { public: D(int j):i(j){printf("default %d\n", i);}; D(const D& d):i(d.i){printf("copy %d\n", i);}; private: int i; }; int main(int argc, char** argv) { D d = 2; D d1 = D(23); } [/CODE] output: default 2 default … | |
Hey guys I have a study guide that I need some assistance with if possible. it is basically definitions. Classes={} Assume these statements are working with classes and objects: Attribute?property Instance Encapsulation Also I need to tell what this code does. I am not good with classes at all please … | |
I have a list [CODE]x = ['abc','1','2','3','def','6','8','5','13','mcg','568','35469','6453'][/CODE] I want the output file in a dictionary as follows: [CODE]dict = {'abc':['1','2','3'],'def':['6','8','5','13'],'mcg':['568','35469','6453']}[/CODE] How can i do this? | |
I need an explanation on how to use 2 dimensional arrays displaying names. And single dimensional arrays for displaying letter and number grades. I need to make a self input gradebook for my students and do not know how to function it. I want them to input their names and … | |
I am trying to pull data from a table to fill a drop down list. Now, i got the fill part working, but am having an issue passing a variable value to my form post action. Code: $query ="SELECT UniqueIdentifier, LastName, FirstName FROM BrokerMain ORDER BY LastName"; $result = @mssql_query($query); … | |
hey guys,been browsing this site for a few weeks,but this is my first post. As you might guess by my problem I'm a C++ noob. I'm tryin to make a program in which the user inputs an array of double, I then use bubble sort to to get it into … | |
I am getting the following error: Parse error: syntax error, unexpected T_STRING The code snippet: [CODE]$db = "hospital"; $cxn = mysqli_connect($host,$user,$password,$db); $sql1 = INSERT INTO intake2(site, Record, BMI, Weight) VALUES($_POST[\"site\"], $_POST[\"Record\"], $_POST[\"BMI\"], $_POST[\"Weight\"]); [TEX]// this is the line that generates the error[/TEX] $qyr = mysqli_query($cxn,$sql1);[/CODE] I realize that the error … | |
I am doing a c++ project on cows and bulls where the computer has to guess the number. I have a few questions.? I recently heard of the pigeon hole principle( i am not exactly sure about how to use it)and I am trying to use this to do my … | |
say i have a class which the user can make an object of by passing in 2 parameters. If the parameters entered are wrong how should i handle this? 1.) should i try to create the object,and then do the checking in the constructor? if the arguments are invalid then … | |
hi! in my project textboxes and radiobuttons are generating at runtime. And my problem is that i want only that textbox to be enabled if radiobutton in front of that text box is selected. name of each element is generating at runtime as number of textboxes is not fixed. please … | |
Hi, Would be very grateful if someone could tell me how to start an array by getting the program to ask you how many values you want to enter (the maximum being 50) Thanks :) | |
What is the use of declarators in struct's definition? and what is a "tag declarator"? example from MSDN: [CODE] [template-spec] struct [ms-decl-spec] [tag [: base-list ]] { member-list } [declarators]; [struct] tag declarators; [/CODE] | |
Hello friends)) Prompt please analog of function (if it exists) TryStrToInt (Delphi) for C #. In advance thanks) | |
I am having huge trouble with this Mysql_real_escape_string to prevent SQL Injection. I have tried everywhere possible to input it in my code. My code looks a lot different than most peoples. I mean my login/registration system works PERFECT.. besides that it's not protected from SQL Injection yet which is … | |
I have a simple question and am hoping to gather lots of ideas. Am currently working on a project which consists of just one developer which is me, this project is supposed to be completed by January which is about 3 months from now and there aren't any budgets involved. … | |
I'm trying to build a Tkinter that counts how many times a letter appears in the entry box. I want it so I enter letters A,B, or C into the entry box, and when I click 'Count' it displays how many times each letter appears. I feel like I'm really … | |
My project is to create a solitaire game with a different card deck. I have created four lists with three objecs in each off them and I would like to create 81 unique cards out off these objecs. colors = [blue, yellow, red] shapes = [triangel, circle, square] numbers = … | |
Hi Experts, I was wondering how to do the following: I have three strings that have five numbers assigned to them for instance, 'a' can equal 1, 2, 3; 'b' can only equal 4 and 'c' can only equal 5. some process happens and I get a result of an … | |
Tell me if this makes sense structurally. I have a final this week and this homework will not be graded till after the final. I was just curious if I have as firm a grasp on this as I think I do. [CODE]public class account { private int id = … | |
![]() | So basically I want to login to FaceBook and check if I have any notifications. I haven't a clue how to check if I have notifications and I'm not very good at all with HTML so I'm not sure what I'm looking for in the page source to grab the … |
I guys, i have a problem with binary files A file is opened in the beginning of the main then a case to give the user a choice: 1.- Show the content of the file 2.- Search for a name 3.- Search for a type of crime 4.- Search for … | |
[B]Index was out of range. Must be non-negative and less than the size of the collection[/B] Hi, I've a form and the form is working fine also. But my problem is Whenever I closed the form. I'm getting two errors. 1.Index was out of range. Must be non-negative and less … | |
[CODE]#include <iostream> using namespace std; struct student { int ID; char name[80]; char nationality[80]; char gender[2]; }; void insert(student array[]); void Sort(student array[]); int main() { student array[100]; int answer; cout <<"Welcome to student recording system"<<endl; cout <<"Please choose one of the following option"<<endl; cout <<"1.Insert new record"<<endl; cout <<"2.Delete … | |
I used netbeans 6.5 for developing android application. I need to add LWUIT for this application. How we can add LWUIT into android application? | |
Having trouble with this assignment. Can someone help me out with this? I don't get it! For my assignment it wants me to create a constructor function name automobile w/ 5 properties. Assign the values of my car to each automobile property. Print to the screen. This 1st one is … | |
![]() | Hi, How do you text-wrap something like this: [CODE] <table width="10%"> <tr> <td>IWANTTHISLINETOBEBROKENWHENITREACHESTHEENDOFTHECOLUMN</td> </tr> </table> [/CODE] Thanks, Ashton. ![]() |
Hey Guys! I am vedel and this is my first Thread in this Community. My question is, how i can boot a c++ code? example code: [CODE] #include <iostream> using namespace std; int main() { cout << "Hello World!" << endl; return 0; } [/CODE] | |
I want to have a Sales Point System and i am finding Difficult to have a Barcode System.please somebody help me......... | |
I would like to achieve a speedup for this program. I was wondering how to get started. I was thinking of maybe using pointers. Any hints would be great. [CODE]void test() { int i, j, k; for (i=0; i<N; i++) { for (j=0; j<N; j++) { for (k=0; k<N; k++) … | |
hi can any one please help me how to retieve dynamically loaded data in a html radio button in to jsp page.. actually i tried to load user account no from database in to radio buttonin html..this worked perfect .. but upon clicking the submit button i want to get … | |
Hi: I have created a simple contact form (see Form below), and a send_mail.php (see Send below) processor that verifies (not validates) the user has entered info all fields. Send then provides the user information and redirects them back to the contactus page. The problem I have is with the … | |
Since __uuidof is a C++ only operator, how would I retrieve the GUID of an object in C? | |
what is wrong with this [CODE];Author : Alerwi Ali ;Function : Sort an array of 10 elemnts(Bubble sort) .model small .stack size equ 10 .data vett db 1,4,3,2,4,-1,-4,0,6,10 temp db ? i db 0 j db 1 .code .startup mov ax,@data mov dx,ax xor si,si xor cx,cx mov cx,size lea … | |
Hi all, i was wounding if anybody can help with this I’ll be really grateful I’m working on a piece of software to read a comma separated text files with thousands of lines each line has around 32 word separated with a comma What my code does at the moment … | |
![]() | I would like to do a coding to delete the txt.file that i had created before using visual studio..can anyone teach me the coding?thank you. |
Hi, I recently bought a domain. As usual, the domain provider has given email accounts facility. The problem is that, I can access the email accounts only through the webmail address provided by the domain registrar (which has a pathetic interface) or through POP based email clients like outlook. Is … | |
Hi everyone, I'm recently in C++ and I would like to develop one C++ code that read a file ".txt" of strings and numbers with different size of columns and lines. After I need to get the frequencies of each element of the same column. Cheers, SADSDW Example: ABC DEF … | |
i dont find to my error plese help me this code i using to loading to php array [CODE] while($newarray = mysql_fetch_array($query)) { $latt[$count] = $newarray['lat']; $lonn[$count] = $newarray['lon']; $userr[$count] = $newarray['user']; $count++; } [/CODE] this part my javascript code [CODE] var cout= <?php echo $count ?>; var lat = … | |
Hello I have a bindingNavigator and some textboxes connected to the bindingsource, in a childform, a form inside another form. I have a third form, a search function, and I need to change the bindingNavigator Position, when I choose a number in my "search" form. I have some code in … | |
Im having issues trying to get this to work. I think the problem for my Meet and Join functions is its printing out the C array inititalized to all 0's and not the modified C array after all the calculations have been done. Also, I don't think my for loop … | |
I'm an intermediate vb programmer, i need help . I wrote a code that'll fetch a particular employee id (EM_ID) and print the report but its saying this whenever i compile and run. Runtime Error 2147217904 [80040e10] [ODBC Microsoft Access Driver] Too few parameters The code is below rs.Open "SELECT … | |
so the question is to print out strings that appear both in the two given lists, assume each list does not contain duplicates of the same word. so with the signiture of [B]public void intersect(Node n1,Node n2)[/B] and suppose we already have another method: [B]public boolean contains(Node n, String target)[/B] … | |
hi... I have written a script for FTP upload using python.. It worked fine when i tried on local boards, but is giving me an error when trying with a remote board via VPN. this is the error i get: [B](104, 'Connection reset by peer')[/B] the machine i developed script … | |
Hi there. I am currently trying to get my head around using classes across two files. I currently have a super class and a sub class stored in a file and the main function in another. When I try and pass arguments to the class they work fine if the … | |
As if Google Earth wasn't cool and useful enough -- like helping find a new apartment in a faraway city or taking a little tour of a foreign place -- Google's latest version of the program just upped the ante.[ATTACH]16279[/ATTACH]Now you can view live weather patterns of rain and snow. … | |
[ATTACH=RIGHT]16929[/ATTACH]In a blog posting August 26, Microsoft announced that it is revising the licensing terms of its Security Development Lifecycle, moving parts of it to a Creative Commons license. Security Development Lifecycle is a methodology that Microsoft developed that incorporates best security practices at every level of the development lifecycle … | |
Hi! please help me for how can i scroll through database using JDBC. if i m creating 4 buttons say First,Last,Next,Previous. First button will take me to the first record of the database. Last button will take me to the last record of the database. Next and Previous will show … | |
I need to make this a popup when a button is clicked. This is the code for the Button. [CODE] JButton moreOptionsButton = new JButton("More Options"); moreOptionsButton.addActionListener( new ActionListener() { public void actionPerformed(ActionEvent e) { timer.stop(); } } );[/CODE] I need this information to come up in a new window. … | |
I want total months between two date (I/p) i want exactly four batch on the basis of date , for ex. i/p Start date : 01-JUN-2005 (or format can be 20050601 - YYYYMMDD) i/p End Date : 01-OCT-2006 or format can be 20061001 - YYYYMMDD) so in this scenario each … | |
Hello every coder. i want to know if it is possible to send data (text/char) over internet using c++ . can i use winsock send function as i could see on msdn winsock send is used to send data to the server, hence i started coding using winsock, i was … |
The End.