199,114 Archived Topics
Remove Filter ![]() | |
Here is question: Write a program that reads a string from the user containing a date in the form mm/dd/yyyy. It should print the date in the form March 12, 2012. #include<iostream> using namespace std; int main() { int mon; int day; int year; string month[] = { "January", "February", … | |
Write a program to get 3 numbers from user for integer variable a, b,and c. if a is not zero, find out whether it is the common divisor of b and c. | |
I want to know how a microprocessor converts the binary digits into decimal equivalent. The processor only has the ability of manipulating 0's and 1's but, how these numbers are converted back into their decimal equivalent? Are they converted by another circuit? If so, then how and what it is … | |
I want to know how software is converted into electrical pulses or `0`'s and `1`'s in computer. How does the computer do it? I know that `0` and `1` in binary system actually represent `off` and `on` states respectively and the computer stores the data in its memory in the … | |
can someone help me to identify what is wrong with my code? i recheck and recode it many times as possible but still cant figure out the one error. it doesnt run. | |
How can i write it so that my program only accepts positive integers that are great than or = 0? I want my program to ask "How many devices do you wish to add?" And if a user enters a letter, or anything negative it will ask them to enter … | |
I keep getting loads of linker errors that probably have something to do with virtual-functions/definitions and/or static class members... I've seen several relevant posts but none of the solutions suggested work, can you see wht the problem is here? My projects consists of 3 files: BALLS.H #include <iostream> using namespace … | |
I am getting an error on this code. Is it to do with whats in the while loop? How do i get it working? Basically i want to be able to take in letter or number variables, and each would output something, and if they type exit it breaks out … | |
How can i create a input that only allows the letters a b c d The console will ask to please enter a letter. And they can only enter the letters a b c d. And if they enter it, it says thank you for enter a, or b or … | |
Ok this program is almost done. Some correction are still needed. Can anyone here put this in character array. #include<iostream.h> #include<conio.h> #include<stdio.h> char value; char t, u, v; char answer; void Binary2Decimal() { gotoxy(1,9);printf("[BINARY TO DECIMAL CONVERSION]"); char b2,f2=1,d2=0; gotoxy(1,11);printf("Enter a Binary number: "); scanf("%d", &b2); printf("\n\n"); while(b2>0) { if((b2%10)==1) … | |
cd just stays at this state: sgraham@myshell:/home/class/sgraham>cd .. sgraham@myshell:/home/class/sgraham>cd .. typedef struct { int argument; // userCom arguments char *arg[MAX_ARGS + 1]; // userCom arguments array char *Listcomm[MAX_COMMAND_SIZE]; char *input; // hold input file char *output; // hold output file } Command; int main() { Command userCom; //holds userCom struct … | |
If anyone can help me , I wanted to know how to use a progressbar while the sql query is executing. Just a "Beg"inner in VB.net here's my code: dataopen() cmd.Connection = con cmd.CommandText = "Select User_Name, userpass from Borrower where user_name='" & EmsTextBox1.Text & "' AND userpass = '" … | |
Hey guys, I have a script that switches between tabs..It works perfectly, but what i am needing is a way for the script to stop when I have my mouse on the tab or content for the tab. I am using bootstrap and here is my [fiddle](http://jsfiddle.net/patk570/5hk6R/) with the working … | |
How do i create images that move in the website? Like as soon as a user logs into the system there must be images sliding across a part of the page or news headlines (like they show in news reports on tv) | |
public: Queue() : front(0), back(0) {} void put(TreeNode *ptn) { ListNode *tmp = new ListNode(ptn, 0); if (back == 0) front = tmp; else back->next = tmp; back = tmp; } TreeNode *get() { assert(front); TreeNode *result = front->ptn; ListNode *tmp = front->next; delete front; front = tmp; if (front … | |
Hi all, I am new to programming, and i'm working from a booik which has set me a challenge with a random jumble word program to pair the jumble word with a hint. I have been going round in circles trying to work it out, please help point me in … | |
I have a site where the customer makes multiple selections of clothing and these are shown together at the end of the selection. So they may select a dress, top and skirt, accessory etc. All the images are in png format with a transparent background. At the end of the … | |
i have declared two functions of void type.lets one function calculates value of variable 'c' and other of variable 'y' and when i cout them it comes out to be correct within the function.now i want to declare another function that compares values of 'c' and 'y' and return 1 … | |
Does anybody have any magic formula (known to work) for attaching a .csv file to an email? I have been working on this most of the morning... Have tried to use several different versions of what is supposed to work from doing google searches and have yet to be successful. … | |
Hi I have dropdown list of domain names.Which is populated by mysql query(1st query). And when dropdown value is selected that value is used in another mysql query(2nd query). I've a submit button,when it is clicked.It is working perfectly. But i want to remove submit button and i need a … ![]() | |
Can someone help me in my source code... my problem is, i need to check if there is an existing record on my current database(ms access 2007) here is my connection that i've place on module Public con As ADODB.Connection Public rs As ADODB.Recordset Public Sub connection() con = New … | |
Hi i am using array for uploading images but i am unable to insert it into database as well as in the folder. can anyone please help me to resolve it. $name = $_GET['name']; $gititle = $_POST['gititle']; $number_of_file_fields = 0; $number_of_uploaded_files = 0; $number_of_moved_files = 0; $uploaded_files = $_POST[$_FILES['images']['name'][$i]]; echo … | |
Hi is there a similar as eclipse entreprise workbench free.. i downloaded eclipse but my java programs does not work with this eclipse they were working with eclipse entreprise 2014 but this program is not free..and i m only learning java and sometimes c++ thanks | |
Hello, I have two tables one for 'users' and another for 'vendor_service' in database named 'star'. In vendor_service table i've stored users id as a foreign key. Now if i try to insert values in vendor_service table it shows following error. Cannot add or update a child row: a foreign … ![]() | |
Having a problem setting up a login form for my project, here's the code: Imports System Imports System.Data.SqlClient Public Class Login Dim con As SqlConnection Dim cmd As SqlCommand Dim rd As SqlDataReader Private Sub dataopen() con.ConnectionString = "Server=IGNITER-PC\OBEXPRESS;Database=EMS;User ID=sa;Password=au" con.Open() End Sub Private Sub EmsStickyButton1_Click(sender As Object, e As … | |
i want to learn how to program and become a professional programmer | |
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 … | |
Hi Friends, The general code in my project is as below: In Module: ---------- [code] Structure TopDataType 'UPGRADE_WARNING: Fixed-length string size must fit in the buffer. <VBFixedString(40),System.Runtime.InteropServices.MarshalAs(System.Runtime.InteropServices.UnmanagedType.ByValArray,SizeConst:=40)> Public TopName() As Char 'TopData.HDName Dim Catagory As Short 'TopData.Catagory Dim Status As Short 'TopData.Status Dim Deleted As Short 'TopData.Deleted 'UPGRADE_WARNING: Fixed-length string … | |
Hi Everyone, I'm building an app that inserts data into table A, then I want a trigger to kick off before new data is inserted into table B to confirm that the value exists in column string_Value and then take the data and add it into TABLE C. Is this … ![]() | |
Do you want to scan your website to find all the Vulnerabilities at your web site try netsparker :) | |
i would like to know which is better to program with asp.net or mvc? what are the differences between the two? | |
How can I generate a weekly report given an end date and a start date? How should the query be? I try this one but it's returning an error. "SELECT * FROM table WHERE date >= startdate AN date<='enddate GROUP BY WEEK BETWEEN startdate AND enddate" | |
Hi All, How can we enable HTML code compression in .Net? Is there anything we need to do in web.config or external tool is needed? Thanks! | |
hello i'm trying to make this into a switch statment but i'm having trouble. Any help would be great!!! this is for a shell commands in C. if(strcmp(command->comm[0], "exit") ==0) //exit { printf("EXITING.....\n"); break; } else if(strcmp(command->comm[0],"history")==0) //history { int i=1; for(;i<hisSize;i++) printf(" %s ",history[i]); } //history end else if(strcmp(command->comm[0],"echo")==0) … | |
I need help in writing a C++ program that converts 24-hour notation to 12-hour notation. (For example, it should convert 14:25 to 2:25 P.M. The input is given as two integers. There are three functions: one for input, one to do the conversion, and one for output. Record the A.M./P.M. … | |
Hi everyone and thanks in advance for the help. I have the following class that throws an error on compiling where i declase a vector of pointers I have an Engine class that I want to host multiple scenes objects stored in the vector sceneList and then pass which ever … | |
I have a database wich i made in SQL server managment studio (Microsoft based). I m curious on how would i export my entire database to a webserver? My application is built in visual studio 2012 with C# (c# complitely). It s a University database without cotaining the student's entity(Table) … | |
How can I insert splitted texts to my ms access database? I can't seem to find the logic in it. :( Please help me. Here are my codes: This is where i split the texts that are inputted in textBox1, textBox2, and textBox3 string items = textBox2.Text; string[] splittedText1 = … | |
I HAVE A SCANERI THAT THER IS DEFAULT ADMIN IN TABLE AND THIS ADMIN ADD FURHTER SUPERVIOSR,MANAGERS AND SENIOR MANAGERS THEN WHEN ADMIN FIRST TIME LOGIN AND CREATE ACCOUNTS OF SUPERVISOR,MANAGER,DIRECTOR AND HERE IS THE TABLE UserID UserName Password UserTypeID DepID FullName CreateDate DocID Email PhoneNumber DesigID 51 Noreen Fatima … | |
I have created link button dynamically and attach event to this. but when I invoke this event from page_load or page_init this works. but when i invoke this event from any simple button this is not working. could anybody help me. My code is following :- protected void test2() { … | |
Hi there!! I would like to know if is possible to have routing in a website made with classic asp... In stead of showing this web address : www.website.com/mypage.asp?id=1 i would love to show this one (like MVC): www.website.com/mypage/1 Is it possbile? Thanks to all | |
I've written a small asp function that query's my database and returns data. I've tested the function and it does return the data correctly. I'm trying to figure out how I can then take that data and store it into my javascript array. I have this below but I can't … | |
recently started learning java, going through the official tutorial and would like to check that the below code is a valid and correct solution to the following exercise ( [exercise 1](http://docs.oracle.com/javase/tutorial/java/javaOO/QandE/creating-questions.html) class Card{ // fields ------------------------------------------------------------------------------------------------------------- private static final String[] SUITS = {"Hearts", "Diamonds", "Spades", "Clubs"}; private static final String[] … | |
Write A program that reads a statement of c++ langauge and prints a table of tokens and classes (keyword, identifier | |
How to view our uploaded resume online with php in website <?php if($_SERVER["REQUEST_METHOD"] == "POST" && isset($_POST['submit']) == 'upload') { var_export($_POST); $allowedExts = array("pdf", "doc", "docx"); $temp = explode(".", $_FILES["file"]["name"]); $extension = end($temp); if ((($_FILES["file"]["type"] == "application/pdf") || ($_FILES["file"]["type"] == "application/msword") || ($_FILES["file"]["type"] == "application/vnd.openxmlformats-officedocument.wordprocessingml.document")) && ($_FILES["file"]["size"] < 20000) && … | |
![]() | Any good places to start learning Python? Websites/books/Youtube tutorials? Also any good editors, too? ![]() |
Hi, I have quite complicated XML strings coming from somewhere else and I need to parse it in C#. Because of the complexity of XML, I decided to use XmlSerializer after getting an xsd file. But my xml code never seem to work.. here is my myxml.xml: <?xml version="1.0" encoding="iso-8859-1"?> … |
The End.