199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for baldwindc

Hi, I am tasked with writing selection sort in assembly. We are writing for the ARM processor. Currently, this is what I have: [CODE] sort2: 73 stmdb sp!, {v1-v5, lr} @ Copy registers to stack 74 ldrb r5, [a2] @ J = n 75 76 ldrb v2, [a1] 77 cmp …

0
394
Member Avatar for Taino

Hi, I have an assignment that requests that two integers be provided in a range and that these numbers should be checked if they are prime or not. I am having the following problems with my code. a) [U][COLOR="Red"]the number 4 shows up in my calculation and four should not …

Member Avatar for Clinton Portis
0
159
Member Avatar for klemme

Hi guys, I would like to validate some form input, and only allow the folowing: letters, numbers, /, - if(!preg_match("*[0-9A-Za-z,-,/]", $url_key)){ $erros[1] = '<small>Error submitting url key!</small>'; } Which is not working.. Its not the point only to allow one / or - But only letters, numbers and /- in …

Member Avatar for pritaeas
0
2K
Member Avatar for Nuzhser

Hi everybody! I am weak in javascript. Can anybody help me. I need to make script which takes from one field string(numbers separated by space copied from excel) divide it by space into variables and insert into another fields on this page.

Member Avatar for stbuchok
0
89
Member Avatar for notSo smartGuy

I am trying to read from a file and save rows to a string or array Im not sure which would be more efficient. string[] array = new string roomNumber[30]; string[] testScore; I have the test file set up the following with random values; studentID, classroomNumber (1-30), testScore (1-100); SID001, …

Member Avatar for thines01
0
324
Member Avatar for sohair

Hello guys this is my first post I was having trouble interfacing a remote controlled car using serial port I have made the circuit for interfacing the serial port with the relays to control the car remote but the problem is that I need to make a C++ or C …

Member Avatar for raptr_dflo
0
355
Member Avatar for coolbeanbob

This is a lot of code, but most can be ignored. I am just having a problem with using templates/types. main.cpp(48) : error C2664: 'HashTable<Entry>::insert' : cannot convert parameter 1 from 'int' to 'int &' There is basically a type mismatch between line 48 of main (int) and the HashTable::insert …

Member Avatar for raptr_dflo
0
493
Member Avatar for anwar.mustafa

I am facing a problem, I have pulled some records in DataGridView from database. Now I want that when I select some rows from DataGridView and click on command button, ID's of all selected rows should be displayed through message box. By using followng code I am able to display …

Member Avatar for lolafuertes
0
160
Member Avatar for kodemaaster

I am declaring a structure as this [CODE]typedef struct Request { deque<int> roomsList ; }Request;[/CODE] Then , in some other function I get a segmentation fault in the highlighted line : [CODE] int initRoomsList(Request *R) { int roomSatisfying ; char roomName[20] ; int roomNum, capacity,wb,proj, lcd, sound, aud, vid , …

Member Avatar for raptr_dflo
0
2K
Member Avatar for Mike Bishop

i am having issues with an update query. i normally use SQL 2005 but for this project i am using an access 2007 database please can anyone point me in the right direction, [CODE] Dim con As New OleDb.OleDbConnection Dim cmd As New OleDb.OleDbCommand Try con.ConnectionString = "Provider=Microsoft.Ace.OLEDB.12.0;Data Source=" & …

Member Avatar for Mike Bishop
0
205
Member Avatar for thenewbiecoder

These are my homework questions. I have attempt to do most of it and I need somebody to check to see if im doing this right. 1. Given the following declaration for a TestScore class, write a derived class declaration called IDScore that adds an integer student ID number as …

Member Avatar for raptr_dflo
0
211
Member Avatar for mrnutty

This code below add two positive numbers in any base from binary to base 36 with any length allowed by memory. The snippet comes with examples. There might be some bugs, because I haven't tested extensively, so forgive me if you find bugs. Hope people find it useful somehow. Thanks …

Member Avatar for Tumlee
0
690
Member Avatar for xxblinddzxx

Hi , i am on a projet and i am stock. I'll first explain you my prog abit so you'll know what im looking for. First my prog scan a specific path "C:\music" which contain Mp3. Then it takes the MD5# of all mp3 and put it in a listbox1. …

Member Avatar for xxblinddzxx
0
141
Member Avatar for deraad

I have an input box with a 'did you mean' box that pops up under it, and it pulls it's results from another php page, however when a term with a space in it, such as "I am" vs. "Im" is entered, it stops working. This is the code i'm …

Member Avatar for deraad
0
122
Member Avatar for PlUmPaSsChIcKeN

Ive created a dictionary with all the letters of the alphabet, assigning each one to another random letter. encode={'b':'a','B':'A','c':'e','C':'E','d':'i','D':'I','f':'o','F':'O','g':' u','G':'U','h':'b','H':'B','j':'c','J':'C','k':'d','K':'D','l':'f','L':'F','m ':'g','M':'G','n':'h','N':'H','p':'j','P':'J','q':'k','Q':'K','r':'l','R':'L' ,'s':'m','S':'M','t':'n','T':'N','v':'p','V':'P','w':'q','W':'Q','x':'r','X': 'R','y':'s','Y':'S','Z':'t','z':'T','a':'v','A':'V','e':'w','E':'W','i':'x',' I':'X','o':'y','O':'Y','u':'Z','U':'z',' ':' ','!':'!'} Now what Im trying to do is to create a single function that takes the input, does the calculation, and produces the output, using …

Member Avatar for PlUmPaSsChIcKeN
0
171
Member Avatar for meli1

Heya i ran into a little problem, well more of a mental dilemma using strtok(), i already know how this function works, heres an example code: [CODE] void split_me(char *input) { char *split = NULL; //reset split size_t len = strlen(input); char to_array[len]; int i = 0; split = strtok(input, …

Member Avatar for meli1
0
144
Member Avatar for akshaya kochare

i need to validate the textbox such that in can accept numbers only but the entered no should be greater than 0 , it can be 0.1 and should be less than 101.

Member Avatar for Mitja Bonca
0
228
Member Avatar for begueradj

Hello people, I want to create 'Voyageur' table that references a successfully created table which name is 'Categorie',. But I get this error message when I click on 'run': [COLOR="Red"]ORA-02438: Column check constraint cannot reference other columns [/COLOR] Here is my 'Voyageur' Table that makes me a problem around its …

Member Avatar for begueradj
0
309
Member Avatar for ronnieaka

i have been trying in vain to implement fibonacci in prolog, and so far i've done that in c++,javascript,python and java. but it just irritates me since i'm new to prolog and i just can't code much, because i haven't seen the prolog equivalents of c++'s for loops,if-else statements,basic variable …

Member Avatar for TrustyTony
0
7K
Member Avatar for Panathinaikos22

Whats wrong with this? [CODE] NAM test // Namee ORG 0 // Memory start point LDA 100 / Load to register A memory adress 100, A=100 ADA 200 // Addd to register A memory address 200, A = 100+200 END [/CODE]

Member Avatar for gizerakos
0
84
Member Avatar for KWhite

boolean robotsAlive[]; int robotCount; public int deadRobots (int robotCount, boolean robotsAlive[]) { int deadRobots = 0; boolean robotsALive = true; for( int i = 1; i > robotCount; i++ )//a for loop to loop through the array { //inside the for loop if( robotsALive[] == false ) //and if statment …

Member Avatar for JamesCherrill
0
183
Member Avatar for angeriel1

how can I use JList object in place of JFilechooser show the directory content.any tips or somthing to help me understand this will be apreciated. [CODE]// Display directory content in a JTextArea object. // The user selects a directory via JFileChooser object. import java.io.*; import java.awt.*; import java.awt.event.*; import javax.swing.*; …

Member Avatar for JamesCherrill
0
155
Member Avatar for PapaGeek

I’m an old fashion Visual Studio 6 C programmer. I’m writing my first 2008 Form application using C++. The application will be able to run multiple instances at the same time. The first tool will be a selection box where you can chose the project you are working on with …

Member Avatar for PapaGeek
0
127
Member Avatar for CSloan7597

Hey everyone. I have recently decided to try and learn how to use java Sockets for client/server communication, as well as swing and threads, etc. and have (pretty much) completed a small client server application. The application is basically a syntax-highlighting notepad, a client swing GUI which connects to a …

Member Avatar for CSloan7597
0
295
Member Avatar for Wolxhound90

Hey all, I'm trying to do a project which involves reading the text from a number of textboxes and putting it into a string. I'm just wondering if there's an easier way to it other than: [CODE]CreateString += TextBox1.Text + TextBox2.Text + TextBox3.Text... (etc)[/CODE] I have thought about creating a …

Member Avatar for codeorder
0
814
Member Avatar for anwar.mustafa

I am developing a Windows Forms Based Application using dbo.database and Visual Basic: I populate some Orders in DataGridView1 using LINQ 2 SQL from "tbl_Orders" where OrderStatus is "Pending". I change OrderStatus Column Type to "CheckBox" in DataGridView, Now I want that when I select some records (Orders) by checking …

Member Avatar for adam_k
0
309
Member Avatar for oblo10

Hi . I have a problem with my ajax code. I have n number of links and I want to pass variables to my sort2.php so that I can understand which link to be run. Is there a way to do it? My code is as follows. <script type="text/javascript"> $(document).ready(function() …

Member Avatar for oblo10
0
211
Member Avatar for FELIGO
Member Avatar for FELIGO

My Console Application window can't display letters from other alphabets(e.g russian) when I run the program. It's just displaying question marks in place of them. Please help if you can.

Member Avatar for arunkumars
0
173
Member Avatar for ujjwal uniyal

Hi all . I have tried different methods but i am still unable to disable my browsers back button. plz help me out. some of the methods that i have tried are -: 1) on logout click i wrote this code in my .aspx.cs file Response.Cache.SetCacheability(HttpCacheability.NoCache); Response.Cache.SetExpires(DateTime.UtcNow.AddHours(-1)); Response.Cache.SetNoStore(); 2) Also …

Member Avatar for ujjwal uniyal
0
170
Member Avatar for coroche

Hi I'm trying to write a program that will print the results of the series sqrt(1), sqrt(1)+sqrt(2), sqrt(1)+sqrt(2)+sqrt(3),...., sqrt(1)+sqrt(2)+sqrt(3)+...+sqrt(n) where n is chosen by the user. The output should look something like 1, 2.414, 4.146, 6.146, 8.382, 10.831, ..... Here's what I have so far [CODE]#include <iostream> #include <cmath> using …

Member Avatar for coroche
0
138
Member Avatar for sys73r

input.csv 1,2,text, date, qwertyuiopasdfghjklñzxcvbnm, yhnujmik,2121212121 [code] import csv reader = csv.reader(open('input.csv', 'rb'), delimiter=',',quoting=csv.QUOTE_NONNUMERIC)) csv_out = csv.writer(open('output.csv', 'w')) for row in reader: content = row[0] + row[4] + row[5] + row[11] + row[12] + row[13] + row[16] + row[17] + row[22] csv_out.writerow( content ) [/code] # I want it to save …

Member Avatar for sys73r
0
200
Member Avatar for techyworld

Hii i want to save data to the database when user register. I dont know whats wrong. Am having this error: Warning: DOMDocument::loadXML() [domdocument.loadxml]: Empty string supplied as input in C:\Program Files (x86)\EasyPHP-5.3.6.0\www\TestingAjaxRegistration\register_pro.php on line 13 Warning: DOMDocument::schemaValidate() [domdocument.schemavalidate]: The document has no document element. in C:\Program Files (x86)\EasyPHP-5.3.6.0\www\TestingAjaxRegistration\register_pro.php on …

Member Avatar for pritaeas
0
437
Member Avatar for reco21

can someone help me with this pls.. [CODE]DELETE FROM site_post, site_comments WHERE site_post.id=$id AND site_comments.matchid=$id[/CODE] needing to delete two rows one from each table.

Member Avatar for pritaeas
0
92
Member Avatar for mehnihma

Can you help me how to convert this for loop to Enhanced For-Loop? Thanks [CODE] for (int x = 0; x < grade.length; ++x) if (grade[x]==grade1) { gradesum = score [x] * testscore1; }[/CODE]

Member Avatar for masijade
0
144
Member Avatar for Daniel85

***I have a feeling that there might be something wrong with my function int fgetAnswers(int*pos, char res[], FILE*inp); I am able to compile, but the problem is that wherever the black screen appears, a box would pop out saying that the program has stopped working. Can any of you guys …

Member Avatar for Daniel85
0
167
Member Avatar for Galbatorix

Hallo guys, i am new to php. i would like to create a php page that would allow the contents of a folder (word documents) to be displayed on my web page ready for download. i have one end where the files are uploaded from but this other end is …

Member Avatar for Stefano Mtangoo
0
100
Member Avatar for hemant_rajput

Hi, i've used the Beautifulsoup module to parse the site and grab the img tag from it, but the problem is , Beautifulsoup while parsing not returning the whole content of the given url. The truncated content contain the image location I want to download: [CODE] from urllib2 import urlopen …

Member Avatar for Gribouillis
0
461
Member Avatar for mkab

I have a problem using the oci_execute function in php. I start by initialising my query then oci_parse it and then oci_execute it. Everything works fine. And data are being inserted or modified in my database. The problem is that these data are inserted randomly. If I have a query …

0
138
Member Avatar for prithvisrini

Hi, I have declared a function as virtual in base class. In derived class I am overriding the same function. According to me function in derived class should have been executed when I make a call to the function. But the base class function is executed. Does anyone knows why …

Member Avatar for prithvisrini
0
103
Member Avatar for DarkVision

Hi guy i don't know if the right place to ask but here the question. I was looking at some code this one [CODE]var pageNum = this.id; $("#content").load("pagination_data.php?page=" + pageNum, Hide_Load()); });[/CODE] i would like a link or answer about why they put ?page= at the end of pagination_data.php i …

Member Avatar for simplypixie
0
104
Member Avatar for Mayank23

Hello, i need help on writing a code that can stop a person from voting twice. such as by refreshing the page, clicking back, or clicking on the button again. can anyone help? thanks heres my voting code so far, it works but user can double vote. [ICODE]<?php $con= mysql_connect("xxxxx","xxxxx","xxxxx"); …

Member Avatar for Stefano Mtangoo
0
579
Member Avatar for 54uydf

Hi, if I have few files (xlsx) in a folder on my computer (file's name is known), and I want to give the path of the folder in my form using a textbox, [CODE]<input type="text" name="path" id="path" >[/CODE] and for the files to be uploaded to a specific folder on …

Member Avatar for niranga
0
998
Member Avatar for skylinedrifter

Hey fox... got a problem in codding im a newbie at this so take it easy on me ... The question Write a C++ program by completing the following steps: Write a value-returning string function called MonthAbbrev that takes an int value as a parameter. The parameter, month, represents the …

Member Avatar for richieking
0
149
Member Avatar for z_zendegi

Hi I want to khow about drawing methode in C# that has no dependence in pixel, do anyone can help me? I want to draw patterns and then print them, I can Draw them but when I want to print, I have Problems with measurments because I draw them pixel …

Member Avatar for jz_gook
0
714
Member Avatar for Daniel85

Is there anything wrong with my coding? Why do I keep getting the message..."Error Opening Input File!" #include <stdio.h> #include <conio.h> void fgetAnswers(FILE*,int*,char[]); void fgetAnswers2(FILE*,int*,int,char[]); int main() {char ans[50],choices[50]; int n,i,id,missed[50],tot; FILE *input,*output; input = fopen("examdat.txt","r"); if(input == NULL) { printf("Error opening input file!\n"); getch(); return 0; } fgetAnswers(input,&n,ans); output …

Member Avatar for Daniel85
0
227
Member Avatar for nav07

My date and time is different, i want time calculate in total minutes example:- A time is 10/19/2011 1:26:00 PM B time is 11/11/2011 7:14:00 AM please suggest.....

Member Avatar for nav07
0
102
Member Avatar for xiangzhuang

Hey guys, I have this HW for school for Java but I just can't seem to figure it out. I know I have to use a for loop for it but I just can't seem to figure out everything else. Thanks :D public int factorial(int n) { }

Member Avatar for JamesCherrill
0
429
Member Avatar for jovypinoy

My code below.. I will appreciate all the replies, suggestions and advice. <script> var imageUrl = new Array(); var imageTitle = new Array(); var imageCaption = new Array(); <?php for($counta=0; $counta<$count; $counta++) { echo "imageTitle[".$counta."]=\"".$imageTitle[$counta]."\";"; echo "imageUrl[".$counta."]=\"".$imageURI[$counta]."\";"; echo "imageCaption[".$counta."]=\"".$imageCaption[$counta]."\";"; } ?> jQuery.noConflict(); jQuery(document).ready(function() { var a=0; function changepicture() { jQuery("#slideshowpicture …

Member Avatar for jovypinoy
0
131
Member Avatar for pseudorandom21

I have a database bound to a listbox but I would like to view only certain items, how to do that? It sounds like a really simple task but I don't know how to do it.

Member Avatar for pseudorandom21
0
106

The End.