199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for kruschev

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

Member Avatar for WaltP
0
148
Member Avatar for techyworld

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 …

Member Avatar for techyworld
0
367
Member Avatar for hokiii

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 …

Member Avatar for stultuske
0
1K
Member Avatar for sapure

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 …

Member Avatar for stultuske
0
207
Member Avatar for Maria Jose

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 …

Member Avatar for Maria Jose
0
130
Member Avatar for mrabrar09

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 …

Member Avatar for mrabrar09
0
220
Member Avatar for Mits14

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 …

Member Avatar for Mits14
0
145
Member Avatar for ren.lowe.9

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 …

Member Avatar for Ancient Dragon
0
217
Member Avatar for paulnamroud

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

Member Avatar for aryanverma
0
403
Member Avatar for Dudearoo

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

Member Avatar for Dudearoo
0
123
Member Avatar for vijayram

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

0
101
Member Avatar for daino

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 …

Member Avatar for daino
0
1K
Member Avatar for HunainHafeez

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 …

Member Avatar for HunainHafeez
0
432
Member Avatar for TeaYou

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 …

Member Avatar for gal7
0
194
Member Avatar for Dane2259

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 …

Member Avatar for Starstreak
0
155
Member Avatar for suhrud.l

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??

Member Avatar for c1c2c3c4c
0
245
Member Avatar for showman13

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 …

Member Avatar for showman13
0
145
Member Avatar for rebelstar

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 …

Member Avatar for dx9_programmer
0
175
Member Avatar for Viped

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 …

Member Avatar for Viped
0
179
Member Avatar for mike.severini.3

/* 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 - …

Member Avatar for dx9_programmer
0
270
Member Avatar for sapure

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 …

Member Avatar for NormR1
0
204
Member Avatar for poskypozze

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!

Member Avatar for diafol
0
162
Member Avatar for Szabi Zsoldos

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 …

Member Avatar for Szabi Zsoldos
0
201
Member Avatar for HunainHafeez

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 ?

Member Avatar for HunainHafeez
0
185
Member Avatar for Secone

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 …

Member Avatar for dx9_programmer
0
274
Member Avatar for TeaYou

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 …

Member Avatar for Begginnerdev
0
222
Member Avatar for praveen_dusari

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

Member Avatar for Taywin
0
200
Member Avatar for somjit{}

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 …

Member Avatar for somjit{}
0
536
Member Avatar for mmcdonald

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 …

Member Avatar for mmcdonald
0
423
Member Avatar for HunainHafeez

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

Member Avatar for HunainHafeez
0
154
Member Avatar for MiniApocalypse

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 …

Member Avatar for MiniApocalypse
0
330
Member Avatar for Viped

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 …

Member Avatar for Viped
0
186
Member Avatar for Divinedar

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.

Member Avatar for peter_budo
0
261
Member Avatar for empror9

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 …

Member Avatar for empror9
0
144
Member Avatar for nitin1

#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"); } …

Member Avatar for somjit{}
0
174
Member Avatar for cruze098

How can you use a class 1's method in another class 2. Class 2 does not inherit class 1.

Member Avatar for Gribouillis
0
159
Member Avatar for coding101

i have a udp server thats going to send and mp3 file. when does the client udp know when the udpserver is done sending?

Member Avatar for JamesCherrill
0
111
Member Avatar for david.f.smith.351

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 …

Member Avatar for adam.adamski.96155
0
485
Member Avatar for KellieD

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 …

Member Avatar for Ancient Dragon
0
3K
Member Avatar for websponge

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

Member Avatar for websponge
0
612
Member Avatar for Wolxhound90

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 …

Member Avatar for Wolxhound90
0
93
Member Avatar for mohsin.javaid.73

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 …

Member Avatar for mohsin.javaid.73
0
136
Member Avatar for daino

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 …

Member Avatar for daino
0
139
Member Avatar for HunainHafeez
Member Avatar for HunainHafeez
0
212
Member Avatar for paoi00

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 !

Member Avatar for Begginnerdev
0
200
Member Avatar for samsons17

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 …

Member Avatar for replic
0
186
Member Avatar for krystosan

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 …

Member Avatar for krystosan
0
192
Member Avatar for summey

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 …

Member Avatar for summey
0
1K
Member Avatar for david.f.smith.351

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 …

Member Avatar for adam.adamski.96155
0
462
Member Avatar for snakesonaplane

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 …

Member Avatar for snakesonaplane
0
241

The End.