199,114 Archived Topics
Remove Filter ![]() | |
#include <iostream> #include <cstdlib> #include <cstring> using namespace std; /* * */ #define NAME 5 #define EMAIL 2 int main() { char* address[NAME][EMAIL] = {{"Barrack", "president@whitehouse.gov"}, {"Roger", "rpowell@valleycollege.edu"}, {"Mark", "markz@facebook.com"}, {"Bill", "billg@microsoft.com"}, {"Gaga", "admin@lady-gaga.net"}}; for(int i = 0; i < NAME; i++) { for(int j = 0; j < EMAIL; … | |
Hi, I write some data to a file called original.txt in python, then i read the file original.txt ,convert watever in the file to string(str), then write it in another file called copy.txt. Now i want to read the copy.txt and output it in python itself. It does not display … | |
Hello , i am starting with java. I need to school make program that generates random numbers 1-20 , a than make method to check duplicates and replace them ... i find on the internet only methods with array or something like that , i cant use that because i … | |
When choosing the input file, I tried three ways & all of them generated errors ! I created the file.txt in the project's folder. I'm using Netbeans IDE. 1) Passing java ShowFile Input.text as a command-line argument [properties ---> run ---> wrote this command-line in the 'Argument' box] 2) Using … | |
Hi. Can anybody help me how to shorten my code? This is for a calculator gui using assembly language. .model small range macro x,y ;set cursor mov ah, 02 mov bh, 00 mov cx, 00 mov dh, x mov dl, y int 10h endm display macro char mov ah, 02 … | |
Hello Everyone... Am little bit confuse whether this post is come under Jsp or MySQl... but am posting in JSP because am thinking that it jsp..not Mysql query I created one report but the report is not coming perfectly so i need your help My actual report format is like … | |
I need help!! What I want is when I add a new teacher, it will search the tblteacher_info. If there is already a record of that teacher, it will just update his/her record. If there is no record of that teacher, it will add his/her info in the tblteacher_info. I … | |
Sooo yeah. Not one of those derps begging for a solution, but my solution simply isn't working out how I want it to. TLDR; Letters A-T are supposed to obey the number of coulmns entered by the user, then output them. My program obeys the number of coulmns by recognizing … | |
Hello, I'm building an application with asp.net. And I need to send emails to selected customers. What is the best way to send email ? Is it by using System.Net Class or to send it by using MS Sql Server ? Thank you Paul | |
**Dudearoo** *Useing Code::Blocks* Are Programs Dependt on There Library'sI've Wonderd This For Some Time, and I would Love to know this because one of the main reasons i Love C++ is That all its Library's are Basic In the Users Computer, now I want To Download the Boost Librarys but … | |
Hai everybody. what is the problem onclick javascript function not working anybody plz help me. function getColor(block) { var s_url=block.href; var pColor=s_url.substr(s_url.indexOf("#")); document.getElementById("colorText").style.backgroundColor=pColor; document.getElementById("colorText").innerHTML=pColor; } <img src="/images/palette.gif" usemap="#color_palette" /> <map name="color_pallete" id="color_pallete" > <area shape="rect" coords="7,7,31,30" href="#003300" onclick="getcolor(this);return false" /> <area shape="rect" coords="35,7,59,30" href="#003366" onclick="getColor(this);" /> <area shape="rect" coords="63,7,87,31" href="#000080" … | |
I'm not sure how to ask this but here it goes. I am building a C++ application, in this case I'm building it in Code::Blocks with a MingW compiler. I want to incorporate/utilize/whatever, SQLite into my applicaiton by **including** (#include) the sqlite C code header file sqlite3.h in my project … | |
i have few pages in asp.net , when a user logs in then i want t give him access to 4 out of 10 pages, mean he can only view 4 pages out of 10, else are for admin + superadmin, so how could i assign him authority to few … | |
Hello everyone! Another question pertaining my homework question I have a user control called Course which contains a maskedtextbox for users to enter in grades and a listbox to show the letter grade for the numeric grade they enter. I have 6 of these in another user control, while the … | |
I'm trying to alphabetize an array by comparing the characters at position 0 of two strings in an array, but I don't understand why when the if statement doesn't run my trail variable doesn't get incremented. //alphabetize array public class AlphaArray { public static void main(String[] args) { String[] yourChoiceItems … | |
For an array of n int variables, When does binary search perform better than ternary search?? Also, reverse case, ie when does ternary search perform better than binary search? Why is binary search a more preferred method of searching for integers entered in an array?? | |
Hi All... I have a simple table with 2 fields in it... mem_id and ref_id For each mem_id in the table, there is an undetermined number of ref_id records... How do I get a listing of the unique mem_ids along with a number that represents the number of records with … | |
Hello, i am facing some problem with a memcpy. I have a struct. lets us say struct { unsigned in[6] ; //32 bytes in all }strb; struct { // FIRST HALF unsigned int a; char b[1020]; .. .. //LAST ENTRY strb a[512]; //512* 32 = 16384 bytes }A; Now, ihave … | |
Hi, how is it possible to handle multiple keys at same time. I am making platformer game. Now if I push forward it goes forward until I release button or hit some else button example jump. What should I do to achieve that it wouldnt stop going forward but jumps … | |
/* Create a program that uses a count controlled loop to read the patient's "readings" from a file and adds them up individually, calculates the average for each person (ID), and displays the two totals. Input - (numPatients-) 20 idNum numBP bpReading (1, 2, 3, 4) 1234 - 4 - … | |
public class BufferedReader { public static void main(String[] args) throws IOException { char c; BufferedReader sen = new BufferedReader (new InputStreamReader(System.in)); **// ERROR** System.out.println("Enter characters, 'q' to quit"); // read characters from the console while(c != 'q') { c = (char) sen.read(); **// ERROR** System.out.print(c); } } } I don't … | |
Hi friends! i'm currently work on a chatting system that requires me to list all the user friends, so i need a code that will help me navigate throw the freinds list one after the other. thanks! ![]() | |
Hello guys, Working on a stock market table with rates of different currencies. What I would like to achieve is that i have an array of rates and would like the difference of today and the previous day, and it works, but i'm getting an empty value for the first … | |
i want to hash my password to SHA1 algo, in asp.net code and then want to compare it with hashed password in sql 2008 db, for login so how to hash it in asp.net code ? | |
I've got the following program, a header file, .cpp file, and p2.cpp, and it does not run correctly. It works when typing in a text document, but after that, it does not read the file how I want it to. I used the cout statements in main of p2.cpp to … | |
Hello everyone! I'm working on a school project where I need to make a GPA calculator. I have a user control for classes and another for the type of program you are in. I'm having trouble getting an array of user controls to work mostly probably because I don't think … | |
Hi all, I have a problem with the date in javascript.I have a date which is in string format Like this: 10/5/2012 6:00 PM and what i need to do is at 5:00 PM on date 10/5/2012, i need to add a class to the td. <table width="100%" border="0" id="datetime"> … | |
read [here](http://crasseux.com/books/ctutorial/getline.html) that fgets() is bad, although no explanation given... also i think the default getline() isnt in C , is it?? **why is fgets() bad??** also, the page on getline says it takes in char** as the 1st input type... whats a '**'? why is it used?? i couldnt … | |
I cant use a cron for this task as the script should always be running. I have a loop that does the following: 1) Gets a SQL row 2) Runs the values through some functions 3) stores new values 4) gets the next row and repeats This script has to … | |
i have a code files in php + mysql database , so now i want to make them online on some free hosting site. i am totalyy blank about this, so how to make it online so the world could see | |
Hiya! Im not new to programming but sometimes i can be really noobie so im sure this is probably really silly. I have an undecleared indentifier that only shows up in the main but is fine in the header and cpp files. I thought it might be an include loop … | |
Hi, I've been making my own zelda like rpg game and the game runs actually fine, but when closing it console prints this: FATAL ERROR in native method: JDWP Can't allocate jvmti memory, jvmtiError=JVMTI_ERROR_INVALID_ENVIRONMENT(116) JDWP exit error JVMTI_ERROR_WRONG_PHASE(112): on getting class status [../../../src/share/back/util.c:1265] JDWP exit error JVMTI_ERROR_INVALID_ENVIRONMENT(116): Can't allocate jvmti … | |
The attached excel worksheet can explain better of what I need. I need to calculate the attached based on fiscal year starting with August and ending in July for the next 5 years. If you have any other questions for better understanding please let me know. | |
i'm working on a script and I want to make the links such as www.mysite.com/signup. this link for registration. www.mysite.com/user/username and this link for user's profile. the links without any php extension. also when someone request link such as www.mysite.com/signup.php should redirect him to www.mysite.com/signup what I know is I … | |
#include <stdio.h> #include <math.h> int main(void) { int number; double result; printf ("\n Introduce an integer: "); scanf ("%i", &number); result= sqrt (number); if ((result * result)== number) printf ("\n The integer HAS a perfect square \n\n"); else printf ("\n The integer DOES NOT HAVE a perfect square \n\n"); } … | |
How can you use a class 1's method in another class 2. Class 2 does not inherit class 1. | |
i have a udp server thats going to send and mp3 file. when does the client udp know when the udpserver is done sending? | |
Hi, Ive already started a thread similar to this but for a different form format. this one is as follows... Im struggling with the correct code to do the following... probably something simple to many but im new to PHP and learning as I go. I have a simple php … | |
Hi! Im doing an introduction to programming course in college and I have only been studying computer programming for the past six weeks. Our lecturer has given us an assignment to do by thursday which is to write a program that converts all of the uppercase letters to lowercase letters … | |
I have a simple form that uses a bit of jquery, <form action="" method="post" enctype="multipart/form-data"> <label for="file">Upload File:</label> <input type="file" name="userfile" id="userfile" /> <input type="button" value="Submit" onclick="uploadfile()"/> </form> the uploadfile() in my .js file looks like this: function uploadfile(){ var userfile = document.getElementById('userfile').value; var username = document.getElementById('username').value; $.post("php/upload.php", {userfile: userfile,username: … | |
Hi guys, I currently have a VB application which begins by calling an external C# application to download an eBay report. When it has downloaded the process ends, but the focus doesn't switch back to the VB program. Will I need to run the VB program at the end of … | |
Hello Everybody. I am using Python for my code. I am trying to create folders at the end of a path. My path is /xxx/xxxx/xxxx/TEMP. I want to dynamicaly create folders after this path in my program. I want something like: /xxx/xxxx/xxxx/TEMP/Folder1. /xxx/xxxx/xxxx/TEMP/Folder2. /xxx/xxxx/xxxx/TEMP/Folder3. At the moment I am using … | |
I'm finding it difficult to understand how to get a start on SQLite... I know there are allot of tutorials out there but they all seem to go off on some tangent. Even the books is vuage on how to go about incorporating it into a C++ project. This is … | |
what are rss feeds ? benefit and scope of it ? and how to integrate it within my asp.net website ? | |
is it possible to send email eventhough in LAN connection using Microsoft outlook ? is it programmable in VB.Net? can someone teach me? thank you ! | |
Hi, let say that i have this excel file that contains column of account number and the name of the customer. And I want to extract any of the data that have duplicate. And the script should be able to get the duplicate only if the both of the account … | |
Hello, I want to know and understand how and when do we need to implement classes in our code, I have written a program in python just using functions but never feel the need of using classes, so I was thinking when we can create something without classes why do … | |
I am trying to figure out how to distiguish if the user input was a string or a int. The out put i am looking for is please enter a string: cat please enter a string: dog please enter a string: hamster please enter a string: 1234 please enter a … | |
Hi, im new to PHP programming and ive tried a few forums on the net with this question and so far no answers. I have a php form that is working fine with a pre-determined email address, part of the code is as follows: $data_email_sender->AddToAddr("name<name@website.com>"); I also have a variable … | |
One thing I have been struggling with is moving from developing in Python to utilize Python on the web. All my web is currently handled with php, mainly through easy to install scripts/cms's such as Drupal, Wordpress and Joomla. Why? Because it is easy and they do 95% of what … |
The End.