64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for rssk

hi all ..... [CODE]for(i=0, i<680,i++): i =m [/CODE] wen i run a program it is showing error in for loop like wen i run a program it is showing error in for loop .....

Member Avatar for griswolf
0
99
Member Avatar for loafie55

I'm having a lot of trouble with a project for school. The project calls for me to create a random guessing game with three different levels. Each level should consist of a random number between 1 and 30. I have set my code to show between 1 and 5 for …

Member Avatar for loafie55
0
2K
Member Avatar for Deepo

[CODE]#include <iostream> using namespace std; int main( ) { int num1 , num2 , num3; cout << "Please Enter Three Valid Integers Using The Keyboard"; cin >> num1 , num2 , num3; if {num1 => num2} && {num2 => num3} else num1 + num2; if {num2 => num1} && {num1 …

Member Avatar for emanfman
0
252
Member Avatar for swathys

Hi, i have convert my code from sql to mdb but there is problem when it comes to place i highlight in red it doesn't execute the command reader....it end the application when it reaches [COLOR="Red"]Do While dr.Read[/COLOR]can any1 tel me whats the wrong with my code.....i'm totally blank ! …

Member Avatar for swathys
0
212
Member Avatar for kitjo

i want my program to have a splash screen as the starting screen but i need it to automatically count 10 minutes after it closes and form 1 loads. is it possible should i use a timer or what?

Member Avatar for Unhnd_Exception
0
530
Member Avatar for goldeneagle217

I created an application in C# and then was told it had to be started from a button selection in a C++ exec program. How do I invoke my application from the C++ program?

Member Avatar for Suzie999
0
157
Member Avatar for fandango

I currently have a functor that finds the closest entity (by calculated distance) to the current entity. (Vector3 is just a 3D coordinate class) [CODE] template<typename T> class MinDistanceBGE { private: Vector3 v; // The location of the 'asking' entity. public: MinDistanceBGE(Vector3 vInput):v(vInput) {} bool operator()(T t1, T t2) const …

Member Avatar for fandango
0
377
Member Avatar for xxreenaxx1

[CODE]SELECT * FROM question LEFT JOIN answer ON question.Que_ID=answer.Que_ID AND question.Que_Answer1=answer.Ans_Answer1 AND question.Que_Answer2=answer.Ans_Answer2 AND question.Que_Answer3=answer.Ans_Answer3 AND question.Que_Answer4=answer.Ans_Answer4 AND question.Tes_ID=7 AND answer.Use_ID=1[/CODE] This should only show record that are use_ID=1 and Tes_ID =7. But in MySQL, there are data for test ID=8 and etc. isnt it only suppose to be 7.

Member Avatar for xxreenaxx1
-1
74
Member Avatar for jnewing

[CODE] // foo vector of unsigned chars // contains 0x00, 0x00, 0xb8, 0x01, 0x00, 0x00, 0x00, 0x1F, 0xEC 0x82 std::vector< unsigned char > foo; long some_long = (long)&foo[6]; // i want the unsigned chars 0x00, 0x1F, 0xEC 0x82 to // make up the long decimal value of 2092162 [/CODE] Now …

Member Avatar for Insensus
0
215
Member Avatar for Suzie999

So here I am back again with my tail between my legs. I've spent the whole day trying to update my form lable during runtime. I got there in the end with what I think is threadsafe, then only to spend a few more hours trying do it from outside …

Member Avatar for Suzie999
0
206
Member Avatar for IDC_Sharp

How to copy Checked items from first listview to another listview? i got problem with that, i made at the first listview Check boxes to every item and i want when i will click a button all the checked items will be copy (not move) to the other listView. it …

Member Avatar for vincezed
0
1K
Member Avatar for goldeneagle217

I created an application in C# and then was told it had to be started from a button selection in a C++ exec program. How do I invoke my application from the C++ program?

Member Avatar for Ancient Dragon
0
183
Member Avatar for TrustyTony

I found [URL="http://www.daniweb.com/software-development/cpp/threads/358674"]this assignment[/URL] on C++ forum as was browsing to see little where I am in my mostly C little C++ thrown in understanding of C++ and if I should try to increase my knowledge in that language. I could not believe my eyes! The OP is completely lost …

Member Avatar for TrustyTony
0
635
Member Avatar for nard23

[CODE]public class Tokenizer{ public static void main(String args[]){ String Arr[] = new String[20]; Scanner scan = new Scanner(System.in); System.out.println("Enter a String: "); String st = scan.nextLine(); Tokenizer tk = new Tokenizer(); tk.makeToken(st, Arr); } public void makeToken(String st, String Arr[]){ int i=0; StringTokenizer Tokens = new StringTokenizer(st); while(Tokens.hasMoreTokens()){ Arr[i]=Tokens.nextToken(); i++; …

Member Avatar for nard23
0
89
Member Avatar for tracydo

I have this problem with given answer but don't understand why. May someone help explain? Thanx if (x>5) y=1; else if (x<5) { if (x<3) y=2; else y=3; } else y=4; ----------------- what is the value y if x=3? answer was: y=3

Member Avatar for JamesCherrill
0
122
Member Avatar for klemme

Hi, I my admin area, where the administrator can create a new page, it is also possible to decide the position of the link. It is a menu in the left side of the screen, one link on top of the other, very simple nav. I have a dropdown list …

Member Avatar for diafol
0
891
Member Avatar for Jesi523

I have this code I need to write. In my database I have some child jobs that belong to parent job. I need to stop the parent job if all child jobs are stopped, I have this code but it is not working and I am not sure why. I …

Member Avatar for Jesi523
0
154
Member Avatar for ashwinshenoy

Hi Guys, i have this code which draws a continuous circle using a timer. Now I have to display it in the form which has a group box with loads of other fields and information. Now can anyone please tell me how can i add the circle into the group …

Member Avatar for ashwinshenoy
0
257
Member Avatar for Mike Bishop

i am trying to create a dataset for use with crystal reports. i have a dataset called dataset.xsd with two tables BatchHeader and BatchDetail these have a relationship of BatchID on both tables. (see picture1) I have this working when there is only one table in the dataset with this …

Member Avatar for Momerath
0
393
Member Avatar for DestinyChanger

Hi, I want to write thread function myself and don't want to use boost or AfxBeginThread(). Oh, and it works in /MD[d], /MD, MFX. Thanks a lot DestinyChanger

Member Avatar for DestinyChanger
0
212
Member Avatar for jnewing

so what i'm trying to get my head around it say i have a vector of vectors containing some unsigned chars and i want to copy a certain vector to another vector as follows. [CODE] std::vector< std::vector< unsigned char > > foo; std::vector < unsigned char > bar; for (int …

Member Avatar for L7Sqr
0
173
Member Avatar for Violet_82

Hi peeps, I am having some difficulty creating a reset button that resets some text to the original status. Basically I have a div box in a page which shows what it means to use a table for layout in a page - I am doing a web editing site …

Member Avatar for Violet_82
0
186
Member Avatar for Doky123

Hey, i'm seeming to have a problem with the code below, in my calculations the values don't seem to add, it just adds the 1.50 to 25 like 25.0015 please if theres anyone who could help with this. [code] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> …

Member Avatar for Doky123
0
104
Member Avatar for cool_intentions

Hello guys, I`m having a problem with my assignment. I should make simple Captcha in Windows Form Application. I have one text box, picture box and button. When I click GO button, my text from text box should become Captcha end show itself in picture box. Any idea how can …

Member Avatar for zachattack05
0
869
Member Avatar for kumarmpk4u

hello, Am getting the below error while compiling my project. [B]error C2440: 'initializing' : cannot convert from 'struct __POSITION *' to 'class CPtrList &' A reference that is not to 'const' cannot be bound to a non-lvalue[/B] This is the snippet of code where the error happens. Tell me what …

Member Avatar for Ancient Dragon
0
115
Member Avatar for scarletfire

System Specification A local football club wishes to store information on its current squad of players: Each Player’s personal information (first name, last name, age, height and weight) should be recorded in a class Person. Each Player’s record for the season should be stored in a class Player. The information …

Member Avatar for scarletfire
0
162
Member Avatar for chester1908

Hey all. I'm having a bit of problem with structs. Say we have a struct comprised of some strings and ints.One of the strings is a keycode,which is used for hashing.So my program reads from a file some information,creates a struct and using that keycode it places the struct on …

Member Avatar for Ancient Dragon
0
195
Member Avatar for TheDocterd

Hi All I have a small app. What is does it reads an html file for certain keywords (like e9, e5, e21, etc.) When any of those lines are found it must add a link in html format into the file. Except you will see that the folder locations differ. …

Member Avatar for TheDocterd
0
109
Member Avatar for elibyy
Member Avatar for TrustyTony

There is many more stupid things to do than to read words of one of the best if not the best: [URL="http://norvig.com/lispy2.html"](An ((Even Better) Lisp) Interpreter (in Python))[/URL]

Member Avatar for TrustyTony
1
1K
Member Avatar for missc

hi, i have 2 data grid views in my form.. one displaying the guests and the other the reservations.. i would like to filter the reservations data grid view to display only reservations of the guest selected form the guest data grid view ... but i need help with this …

Member Avatar for missc
0
75
Member Avatar for P.manidas

Dear Sir/Madam, I have created a sample program that dynamically created up to 7 numbers of Labels and Text Boxes. Here I want to add those numbers inputted by user on dynamically created text boxes. I have tried a lot but all are in vain. Please guide me to solve …

Member Avatar for P.manidas
0
404
Member Avatar for klemme

Hey All, I have tried to work on a way to update all the date in a row called: "position", from a table called: "pages". The admin have a choise on where to place his new page, in the cms. The pages/links, are being pulled from the database by position …

Member Avatar for smantscheff
0
114
Member Avatar for liamfriel

Hello all, I am trying to use more regex but I can't seem to get this to work. The aim is to check inputs for either [url, [link or <a href: [CODE] $islink = false; foreach($_POST as $k => $v){ if((preg_match("/[url|[link|<a href/i", $v)) > 0 ){ $islink = true; } …

Member Avatar for liamfriel
0
163
Member Avatar for e-papa

Hi guys, I tried to run the configure.py in the pyQt folder using command prompt, but it kept coming back with an error that's looks something like this trace back import sipconfigure no module named sipconfigure what do I do now guys, how do I tackle this.

Member Avatar for e-papa
0
130
Member Avatar for ridzaq

I keep getting the following error when I try to add new record into database (Access 2007) "The INSERT INTO statement contain unknown field name:'login'." I dont whats wrong as the coding looks fine and the field login does exist in the database. Spent whole day trying to find the …

Member Avatar for ridzaq
0
2K
Member Avatar for mrlol

Hi.. Good day.. thank you for viewing my thread.. i would like to ask my fellow frens in daniweb to help me to validate access in my assignment system... currently my database is like this: [CODE]Assignment_id | Assignment_name | Member | Remarks 1 test 1 John, Sue, Veronica ok ok …

Member Avatar for perfectweb
0
124
Member Avatar for bigwhiteegg

how do I read a website's source code line by line and store it as string for modification??

Member Avatar for bigwhiteegg
0
86
Member Avatar for christ_gal12

Anyone know how to put timer on this code that the higher the level the lower the time given to solve the puzzle..this will run only in IE browser [CODE] <HEAD> <style> .bigcell { background-color:#aa9966; border:4px solid #aa9966; text-align:center; } .cell { width:40px; height:40px; font-family:Verdana, Arial; font-size:10pt; font-weight:bold; background-color:#996633; color:#ffff33; …

Member Avatar for christ_gal12
0
117
Member Avatar for gekkoswave

Hi in this program i want it to run for 720 loops but it keeps stoping short for some reason. There is no compilation error or runtime error. [CODE]import java.util.LinkedList; import java.util.Random; public class Simulation { private LinkedList<Customer> customerList; private int minutesThatHavePast; private int customerNumber; private int customerProcessTime; private int …

Member Avatar for jon.kiparsky
0
160
Member Avatar for ubi_ct83

Hi all, i'm developing a web-base system.user enter the data in mysql.my main system retrieve the data using jdbc.my problem is, i dont know how to make the system keep on checking the new data in database.i want it always check the mysql for any new data. i need your …

Member Avatar for ubi_ct83
0
105
Member Avatar for WildBamaBoy

This list box will contain the name of processes that are currently running. My function to update the list first checks to see if it does not contain the name of a process that is running, then adds the process if it needs to. Then it checks to see if …

Member Avatar for WildBamaBoy
0
162
Member Avatar for CJdamaster

Hi there, Because of browser wars and whatnot, a lot of CSS3 components have to be written in many different syntaxes to work. E.g. -moz-box-shadow and -webkit-box-shadow (even though they're identical in format) So, my solution is to write simple flags in the CSS file which a PHP script will …

1
57
Member Avatar for zychos

Doing an assignment to create a struct that holds keywords and then is used with a binary search to counter the total keywords in a program. Below is my code and below it is the errors i get when I attempt to compile it. First question is what is wrong …

Member Avatar for zychos
0
465
Member Avatar for TechySafi

[CODE] $threadquery=mysql_query("SELECT * from threads where topic_id='$id'"); while($getthreadrows=mysql_fetch_row($threadquery)) { echo "<div class=singlepost>".$getthreadrows[2]."</div>"; }[/CODE] You can see Its fetching each comment into a div. But I need to do one additional thing too. Each comment may have some reply comment. How to get em like simple thread style as we see …

Member Avatar for TechySafi
0
89
Member Avatar for WDrago

All, This is driving me crazy. How come only the last thing I send to a textbox is displayed? In the following example I would expect 'abcdefghi' to be displayed then, 1 second later, '123456789' should be displayed. But the only thing I see is 123456789. What is going on …

Member Avatar for Unhnd_Exception
0
932
Member Avatar for SMITA6076
Member Avatar for bklynman01

Hello, I'm trying to sort a training table in order of the sequence of tasks. These tasks are numbered 1.1.1 1.1.2 1.1.3 ...... 1.1.10 1.1.11 When the query sorts this and displays it, it comes up: 1.1.1 1.1.10 1.1.11 1.1.2 .... Is there a way to get them to come …

Member Avatar for bklynman01
0
126
Member Avatar for Jake.20

Can somebody explain to me why every time i subtract currency it displays the negative sign, even if the number used to subtract was small. for example: $ 5.00 - $ 3.00 = $ -2.00

Member Avatar for Jake.20
0
89
Member Avatar for raghujosh

I have a Javascript function that allows the display of a textbox upon selecting an option from a dropdown menu. In my case when a user selects listbox as the option, the text box appears. I want the same thing to happen when another option (checkbox) is selected. when I …

Member Avatar for raghujosh
0
6K

The End.