64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for ndeniche

i know i learned it somewhere, but its been a while since i used it... how do you make an user given array size... i mean...[code]int b; cout<<"Input the array size: "; cin>>b; int array[b];[/code] i know this is not hte way of doing it... but just so you get …

Member Avatar for Bench
0
131
Member Avatar for no1zson

Like many of the posts I see out here I have decided to learn Java. It is a bit more than I bargained for. From what I see every class in the world starts with a payroll program, mine is no different. I have done ok with it up to …

Member Avatar for no1zson
0
165
Member Avatar for onsir

Hi, i have installed Netbean 5.0 with file jdk-1_5_0_09nb-5_0-win-ml , but why my Netbean 5.0 IDE is not MDI Application , JFInternal Frame. while a right clik my Project thanks.

Member Avatar for Ezzaral
0
91
Member Avatar for iamthwee

Ok in the application I have, I want to display a little msg "do you want to save" when the users presses 'x'. In other words the user cannot close the window without first choosing one of the two buttons in the msg box. How do I do this. Gimme …

Member Avatar for arjunsasidharan
0
111
Member Avatar for sgentry6

This is probably just due to my quotes, but I'm trying to get the following script up and running: This is my command line: find ./ -type f | xargs grep "#include <some.h>" | awk -F: '{print $1}' | xargs grep "#include <another.h>" I'm trying to find a nested header …

Member Avatar for Infarction
0
147
Member Avatar for Ozipto

I am using python 2.3.5 and I just haven't seemed to understand why I get an error that says "SyntaxError: unqualified exec is not allowed in function 'parse' it contains a nested function with free variables". I am trying to develop a scripting language for my operating system that is …

Member Avatar for Ozipto
0
410
Member Avatar for assgar

Hi I am php newbie and I don't know if I am approaching this properly. I need to creat a scheduler that list the appointment time on the left and client for a specific appointment time on the left. NOTE: The appointments are stored in a Mysql database This is …

Member Avatar for assgar
0
100
Member Avatar for quintoncoert

is there any way that one can place code in C# in a procedure or a function? I have code logic which is going to be executed many times over and instead of recoding it twenty times over I want to put them in functions and procedures so that I …

Member Avatar for Ezzaral
0
166
Member Avatar for simward

Hi everyone, this is my first post here! I am making a small application that helps manage merchandise returns in a computer store I work for. I am currently designing the database for it and an issue has arose which is probably obvious but is eluding me right now. I …

Member Avatar for simward
0
174
Member Avatar for shadwickman

I just started learning Python about 2 days ago, and I threw this program together, just to get the hang of it. The program just creates a file named "PythonTest.txt" in the same directory as the .py file. The user can then enter lines that are written to the .txt …

Member Avatar for katharnakh
0
173
Member Avatar for bm1167

Hi, This is my first post so I hope I explain myself well. I just started learning how to program about three weeks ago. I chose python becuase SPSS now can interface with Python. So this may seem like an obvious question. What I am trying to do is set …

Member Avatar for vegaseat
0
102
Member Avatar for quintoncoert

I am using the system.diagnostics.process command to run a program. the program receives a number of parameters. can someone please tell me if the process command of c# can receive more than one argument? and how do you specify them? when one runs this command from the command-line you seperate …

Member Avatar for f1 fan
0
193
Member Avatar for intangir1999

I am trying to write this loop in a simple convert process, but I get all sorts of crazy errors when I try using the "not equals" operators. here is my code: int main() { int i = 5; std::string s; do { cout<<" Enter a string: "; cin>>s; cout<<endl; …

Member Avatar for intangir1999
0
124
Member Avatar for snakai415

Is there a way to change boolean into integers? Like... making every "TRUE" = 1 and "FALSE" = 0 If there is a way, how will you do it? I tried using this 'cast' thing, but it's confusing :'( - - - - - I'm suppose to make a table, …

Member Avatar for snakai415
0
449
Member Avatar for JRM

I was experimenting with a direct method of dereferencing an iterator. It works OK with numbers, cout gets confused (??) when the derefenced pointer is a string? The code was supposed to stuff a vector, then read it out . I hacked up that original to do some troubleshooting and …

Member Avatar for JRM
0
120
Member Avatar for ad_rulz

Can somebody help me understand what does this function do? And also if there are any logical or syntactic errors in the function. I was told that there are 2 bugs in the code. I can only think of 1 which is below: 1. In the first while loop in …

Member Avatar for ad_rulz
0
580
Member Avatar for tunday

Hi. I'm currently trying my hands on PHP and MySQL. I understand how to retrieve results from SELECT statements in PHP? However, I'm not exactly sure of how to do it when a procedure call is made e.g. [code] [COLOR=green]$query[/COLOR][COLOR=green] = [/COLOR][COLOR=green]"CALL mach_validity([/COLOR][COLOR=green]$student_id[/COLOR][COLOR=green], @result)"[/COLOR][COLOR=green];[/COLOR] [COLOR=green][B][COLOR=green]if[/COLOR][/B] ([COLOR=green]$result[/COLOR] = [COLOR=green]$mysqli[/COLOR]->query([COLOR=green]$query[/COLOR]) { [B][COLOR=green]while[/COLOR][/B]([COLOR=green]$row[/COLOR] …

Member Avatar for tunday
0
93
Member Avatar for pixrix

What is a two-dimensional char array with 3 rows and 3 columns. Can give me an example of a program. Thanks

Member Avatar for pixrix
0
4K
Member Avatar for hinduengg

Hi to all , I wished if any one of you could throw light on [B]mechanism of insertion sorting in C++[/B]. I know what is bubble sorting but I had confusion regarding what is insertion sorting? In school my professor had mentioned about it, but I do not have any …

Member Avatar for hinduengg
0
200
Member Avatar for grussell

I want to convert a vector into a string array. I have put in my code: criteria = (String []) tokenVector.toArray(); I get a ClassCastExceptionError (I can understand why since Vector holds objects which are 'bigger' than strings) - and yet I cannot understand how to resolve it - any …

Member Avatar for masijade
0
316
Member Avatar for howdoyoudothat?

can u type any random letters and save it as an .exe file and then run it and have it [U]work[/U]? [B][I][U]what[/U][/I][/B] is an .exe file?

Member Avatar for stymiee
0
123
Member Avatar for shockeye

My company provides a property listing service that is implemented via javascript and an iframe. This particular case is a lot more customized than most, passing variables from our site to their URI for more seamless integration (usually we just pass all URI variables in the iframe). Here's the unexpected …

Member Avatar for shockeye
0
127
Member Avatar for bobs360

I am a beginner in computers, i would like to be assisted in writing a simple program that inputs a fraction in the form of a/b and c/d and culculates the sum and returns the answer in the simlest form as in p/q. Notes do not allow zero as the …

Member Avatar for ~s.o.s~
0
327
Member Avatar for sickly_man

i am opening a file using fopen() and that works fine. from there i want to print out the contents of the file....cant seem to get it to work. here's what i've tried so far. [code=php] $file = fopen("order_log_text.txt", "r+"); echo $file[0]; /*foreach ($file as $field) { echo $field; }*/ …

Member Avatar for spincycle
0
173
Member Avatar for thornside

I have two frames. The links in the left frame open up in the right. I would like to know if it is possible when clicking on links in the right frame, to put focus on the corresponding link in the left frame. Thanks in advance.

Member Avatar for digital-ether
0
116
Member Avatar for zachisevil

Hey how is everybody doing today? I am a noob in php (i actually just wrote my first php script yesterday) but I am running into a problem. I have a .php file and when I go to it on firefox it tries to either open with a program or …

Member Avatar for zachisevil
0
105
Member Avatar for snakai415

I am currently reading about bit sizes or something.. is knowing these bit sizes important? Because I don't really get this, and if it's not important, I won't have to keep rereading this thing. Type Width in Bits byte 8 [B]<-- is knowing this important?[/B] short 16 int 32 long …

Member Avatar for snakai415
0
85
Member Avatar for ridhimasatam
Member Avatar for Naveed_Cn

Hi Everyone:* I am working on Database project using DAO. Now I got a problem in counting all the data from one Field:-/ . Please help Me in this problem. :confused: And Tell Me how can I get the total of any field by using SQL STATEMENT? Thanks In Advance

Member Avatar for AV Manoharan
0
82
Member Avatar for zandiago

[CODE=CPP]#include <iostream> #include <cstdlib> #include <cmath> #include <ctime> using namespace std; int main() { srand(time(0)); int randNum = rand() % 100 + 1; // Generates random number between 1 and 100 int num = 0; int name;//Name of player cout << "Welcome to the Random Number Guessing Game!!"<<endl; // Name …

Member Avatar for zandiago
0
102
Member Avatar for ClockworkMind

I'm fairly new to C++, and I can't seem to find any sources on opening applications or files straight from the program. I looked up the system() function on this site, but all that it did for me was verify the file's path and post it's size. I need the …

Member Avatar for ClockworkMind
0
367
Member Avatar for soutie

Hi All I'm a home educated website owner, only been doing it for three weeks. I would like to start a free membership for certain areas of the site, so far all I have tried has failed and is very frustrating. Can someone please send me to a user friendly …

Member Avatar for digital-ether
0
93
Member Avatar for loquela

Hi there, I've been using PHP and MySql for some time now but I am quite new to Javascript. I would like to know how it is possible to insert data stored in a MySql database into Javascript code. For exmple, I am working on a travel guide site and …

Member Avatar for digital-ether
0
945
Member Avatar for aeroll

:) guys im a firt timer. im making a program which reads floating point numbers from cin and compute 2 averages: the average of the positive and negative nos. im wonderin wats wrong in my program>> #include<iostream.h> #include<conio.h> int size,i,sumpos,sumneg; int num; main() { clrscr(); cout<<"input size\n"; cin>> size; for …

Member Avatar for aeroll
0
173
Member Avatar for Sp!ke

I'm writing a CMS-style application, and I can't quite figure out templating. I have a function that returns the file contents of a templaet file within a themes directory. That part works fine. Inside one of those files is a mix between HTML and PHP variables, for example:[code]<html> <title>$title</title> <link …

Member Avatar for digital-ether
0
148
Member Avatar for Prozeen

Hi there, I'm completely new to C++ programming and need to find out/verify something in the code below... [code]// my first program in C++ #include <iostream> using namespace std; int main () { cout << "Hello World!"; return 0; }[/code] From a web site I (believe I) understand the following …

Member Avatar for Prozeen
0
124
Member Avatar for pixrix

Write a program that simulates a lottery. The program should have an array of five integers named lottery, and should generate a random number in the range of 0 through 9 for each element in the array. The user should enter five digits which should be stored in an integer …

Member Avatar for pixrix
0
1K
Member Avatar for snakai415

Hello, I am new at this java thing... like really, 1 day new. I have this book called Java 2: A Beginner's Guide (Second Edition). I got stuck on the second step which tells me to.. use javac to compile Example.java.. I read old posts that were posted here through …

Member Avatar for peter_budo
0
255
Member Avatar for brian.p

[code] Private Function atoz() As String ' Lower Case Chr(97 + Rnd() * 862150000 Mod 26) ' produces a-z End Function Private Function ZerotoNine() As String ' Numbers Chr(48 + Rnd() * 862150000 Mod 10) 'produces 0-9 End Function[/code] Hi, Quick question(this is not homework by the way)the above code …

Member Avatar for DenisOxon
0
188
Member Avatar for cguan_77

hi, i made a program it works fine on my computer but if I try to run it on other computer it has an error "Run Time Error 429 Active-x Can't Create Object", OS is XP, already installed the runtime files, and someone advice me to install the latest IE …

Member Avatar for cguan_77
0
168
Member Avatar for ruhi

Hi all, Can any one tell me how to use a value generated through a button click event in another button click event in the same page.Is viewstate is helpful? If yes then how? -ruhi

Member Avatar for ruhi
0
140
Member Avatar for jej1216

I have a rudimentary knowledge of PHP. I'm looking for a way to create a site that lists pdf fils that the user can click on and download. We use Joomla for our company intranet, but the component we are trying is not working and the forum for it has …

Member Avatar for jej1216
0
71
Member Avatar for dudegio

Hello guys! I have problem with my Php program. The existing system is done in Php4.3.2. When i used the existing pages and install a freshcopy of Php 4.2.3, the login pages does not work. it reads from the database actually for the fact that if i enter a wrong …

Member Avatar for Puckdropper
0
166
Member Avatar for dudegio

Hello everyone! I have problem with the configuration of MySQL. I am using IIS, Php 4.3.11(CGI) and SQL Yog. All are working. I also installed and used MySQL Servers and Clients 4.0.15 for my database. If i connect to the database, i encounter this error: Can't connect to MySQL server …

Member Avatar for Puckdropper
0
492
Member Avatar for jatinder_44

[I]hi , my problem with comm port in device manager,when i using serial rs232 to send data to port first time when i switch on the pc [/I] [I]it execute the program ,But when i use USB to Serial Adapter cable to send data it work's fine but again i …

Member Avatar for jatinder_44
0
84
Member Avatar for jammalg

Where I work, we have mutiple products which create installation packages that are kept in the same directory that I will call the mainBuildDir. An installation package is a directory whose name is the product name followed by the date. Ex: ProdA_2007-06-22 The contents are multiple files and folders, perhaps …

Member Avatar for KevinADC
0
117
Member Avatar for schwarznavy

Hello, I'm not a Javascript expert -- not even a novice. But reading this forum and others, I've managed to get code in my page that allows me to have a big image, and three thumbnails. When I click on the thumbnails, a bigger version of them replaces the big …

Member Avatar for MidiMagic
0
97
Member Avatar for sandy_b76

Hi, How to check if BLOB field is NULL or Not in a Table though other data is available in a selected row ? I need to do this in a sql statement. Thanks Sandy

Member Avatar for sandy_b76
0
2K
Member Avatar for Hamrick

I was playing with a bunch of new things today and came up with this. Did I do anything wrong? [code=c++] /* binary class manipulator Print values or strings as binary by Kimberly Hamrick */ #include <iostream> // for C++ I/O #include <string> // for C++ strings using namespace std; …

Member Avatar for Hamrick
1
208
Member Avatar for saswati_mishra

Hi, I have written a jsp file to fetch data from a database table and display it in the form of a table in jsp. The idea is to generate a dynamic table. I have written the following code. <%@page import="java.sql.*"%> <html> <head> <title>The alert table</title> </head> <body> <h1>Alerts</h1> <% …

Member Avatar for ~s.o.s~
0
184

The End.