199,114 Archived Topics
Remove Filter ![]() | |
I just need to have 3 basic problem statements on c programming that is related to the field computer engineering, computer science or electronics and communications engineering. Only 3, and i can sleep.. of course after coding. :) THANK YOU! ^_^ >:D< | |
Hi, I have a string like "a_b_c_d". How do I get only c out of this string? Thanks | |
I'm creating a search function for my program, and need some help with SQL. Until now I have been using simple SQL query like [CODE] "SELECT post1 FROW table1 WHERE a=b" [/CODE] and put it into arrays. Then using that info to do another query, put it into arrays, and … | |
I posted this once but no one is stopping by so maybe the title didn't sound much interesting. I got the code for a google search bar and pasted it on the corresponding <div id and made a separate file for the search results and worked perfectly. But when I … | |
Hi. I am having a problem in creating of one simple program in Python. Here is code. [CODE]import wx class bucky(wx.Frame): def __init__(self, parent, id): wx.Frame.__init__(self, parent, id, "Testing erea", size=(280,400)) panel = wx.Panel(self) food = wx.Button(panel,label='Food',pos=(10,10),size=(80,40)) pets = wx.Button(panel, label='Pets', pos=(100,10), size=(80,40)) self.Bind(wx.EVT_BUTTON, self.food, food ) def food(self, event): … | |
I am working on something for school as a final project before graduation. I am using ASP for the website and VB as the back end to code. I keep getting the error "Object reference not set to an instance of an object" and can't figure out what is wrong. … | |
[TEX][TEX]This assignment will require you to develop a program that reads a series of positive and negative integers from the user and loads these values into an array. The program then calculates and outputs the average of the values read. You will develop the entire program from the problem statement, … | |
So, I've created a game. I want it to connect to a database to get some information. This is the problem I'm getting the console. [code] com.mysql.jdbc.CommunicationsException: Communications link failure due to under lying exception: ** BEGIN NESTED EXCEPTION ** java.net.ConnectException MESSAGE: Connection refused: connect STACKTRACE: java.net.ConnectException: Connection refused: connect … | |
Dear All, i have been tugging my hair out for 3 days and i cant find the problem !!! im writing a code in Aglets, i have to classes, Master and SayItAglet [B][U][COLOR="Green"]Master.Java[/COLOR][/U][/B] [CODE]package simple; import com.ibm.aglet.*; import java.net.*; public class Master extends Aglet { private AgletContext thisContext = null; … | |
| |
[CODE]public int countArguments( String args[] ) { logger.debug( "In countArguments(..)" ); String [] readArray= new String [10]; for ( int i=0; i<readArray.length; i++ ) { for(int count: readArray){ count=count+i; System.out.println( "Number of arguments = " + count ); } } }[/CODE] | |
PLEASE HELP I NEED TO PASS THIS HOMEWORK AND I ONLY HAVE 16 HRS BEFORE I SUBMIT IT AND I ALSO HAVE ANOTHER ASSIGNMENT ON MY ENGINEERING MATH, CALCULUS AND SOLID MENSURATION I DON'T HAVE ENOUGH TIME TO FINISH THIS PROGRAM PLS SOMEONE HELP ME WITH THIS THANKS IN ADVANCE … | |
Hello, I need advice. Ive been using Microsoft Visual studio 2008 and making c++ console applications for some time. I made a "Five in line" game. I have a complete system, so its playable, now i just upgrade an AI. So, I have the code for console version, but I … | |
Hi everyone, I'm trying to learn C++ and about pointers and whatnot and seem to be a bit stuck... one of the exercises we were given involves passing an object (a Driver object) by reference to another object (a Manufacturer), which stores it. The Manufacturer object can then "employ" and … | |
Hi Everyone! I am here by to ask help on enhancing messageboxs. How is the way to Display a picture(like a JPG file) inside a messagebox along with text when a button is clicked? Any Suggestions would be appreciated. Thank You! | |
Can somebody tell me what line i get this error " Argument 'Prompt' cannot be converted to type 'string' " [CODE]Try If movieTxt.Text <> Nothing And ratingCmb.SelectedIndex <> 0 Then For a = 0 To i newItem.SubItems.Add(movieArray(a)) ListView1.Items.Add(ratingArray(a)) '// add Item to ListView. movieTxt.Clear() ratingCmb.SelectedIndex = 0 warnNoMovie.Text = "" … | |
Hello Guys I ask if any one can help me i have to write application which record video from webcam , but I don't know where I must search ? can you help ? just suggest where I should read . Thanks. | |
i wanted to create a gui java program that reads info from MySql then output it in a JTable. but i first tried to use the JTable because it was my first time to use it. It worked perfectly but when i tried to read from the database it doesn't … | |
Hi i need help, what i am trying to do is that the program should search & print the first occurrence of that integer in the array and last occurrence of that integer in the array. If that integer does not exist in the array at all, then the program … | |
Hello, i have tried many solution for solving this problem. I want to passing field in database to list view with stored procedure. Any Body please help me example Table A [LIST] [*]name [/LIST] [LIST] [*]Sex [/LIST] and stored procedure just (select * from [A]) how i can pass the … | |
Hey All I would like to know how to retrieve a image from sql server database. im storing the path in the database.. | |
So, I am running this PHP script and it's execution lasts for about 10 minutes or maybe even longer ( don't ask me what I'm doing :|;) ) After it's done, my PC runs slow, it probably eats up resources (don't which resources) so which command to use to free … | |
Hi Everyone!! I have a little problem in printing Character Arrays.... i have enclosed my code below. what problem actually i have is that when i type my first name and after first name (space bar) last name.. it prints only my first name. i want to type whole name … ![]() | |
Want to learn basics of PHP.Can you share your knowledge with me? | |
Hey guys! I need help... I have a text field and table that I made on NetBeans. I'm working on GUI. Anyway, in this text field, the user inputs his/her name. And the user's name is displayed on the "User 1" heading of the table: [code] jTable1.setModel(new javax.swing.table.DefaultTableModel( new Object … | |
hi! i am trying to build an application which will recognize speech and convert into text.For that i have installed jdk 1.6, Apache ant 1.8, sphinx4-1.0beta3-src and also set the paths etc. i am able to run the demos like given in C:\Program Files\Java\sphinx4-1.0beta3-src\sphinx4-1.0beta3\bin\HelloWorld.jar using java -mx256m -jar bin/HelloWorld.jar which … | |
i had created login form in vb.net there are two fields username & password.i want to check username & password enter in the login form,from the first.mdf(database file). if it is correct then message is displayed i had written code for this but i got error in the code.what modification … | |
I have this really weird doubt in extern usage Consider the code [CODE] #include<stdio.h> int main(void) { extern int a; printf("%d",a); getch(); return 0; } int a=20;[/CODE] How is it that this code gives the output as 20 ??? My guess Since its an extern variable, it can be declared … | |
Hi, Can anyone tell me how I would remove characters from a string if they are present? For example lets say I wanted to remove c:/fakepath/ from the string c:/fakepath/DSF102.jpg and just leave the DSF102.jpg how would I got about this? I got close but I need help. Thanks in … | |
Hello, I'm trying to read lines from a file and strtok it into a double array to work with the numbers. The numbers are separated by ',' and I'm trying to fill array (line[]) with these numbers. This is part of the code. [code=c] while(1) { //we will scan all … | |
Hi, I am going to write a program which can calculate MD5 of a file even the file is in use.\ please help me to modify the code i am unable to change it after the number of tries.Thanks in advance........ [CODE] using System; using System.Collections.Generic; using System.Linq; using System.Text; … | |
[CODE] #include <stdio.h> float pows(float,float); int main() { float num,base; printf("enter base followed by power integer."); scanf("%f %f",&base,&num); printf("%f ",pows(base,num)); return 0; } float pows(float base,float n) { if(n==0) return(1); else if(base==0) return(0); else for(;n>=1;n--) { return(base*pows(base,n-1));/*recursive*/ } } [/CODE] | |
This is a function for a slideshow,onmouseover i want it to stop. Instead of stopping the slideshow onmouseover, it speeds up?? How can i correct this to stop onmouseover? [CODE]<body onload="nextslide();">[/CODE] [CODE]function nextslide() { // Hide current slide var object = document.getElementById('slide' + current); //e.g. slide1 object.style.display = 'none'; // … | |
Here is an arm assembly code for factorial function (along with the c code).i am a bit confused with the stmfd and ldmfd instructions.what are they exactly doing in this program? what does the exclamation mark do? why is label .L2 being loaded into r0? i kno that stmfd and … | |
Hi Im new here-I wanted to create a Login System. I am using Visual Basic 2008 Express Edition, Microsoft Access 2007/2010 Beta. Ok this is my current code-the main problem I have is that I dont how to compare what the user puts into the textboxes and then check that … | |
I was just wandering if someone could help me how to redo a case statement. After executing the program, there would be a line asking : Try Again? YES / NO If yes, then the program re-executes without hitting F5 again. (using JCreator pro 5). All i have is this: … | |
I have 2 error for my code when i compile and i need some guidance =) This is a small part of my program. Here's my code. I declare my function like below: [CODE] void working (Stack& deck, Stack& deckStack, List* column, Stack* stack, bool& loadGame, bool& exitGame, bool& newGame, … | |
I want some projet title in java for mca... Pls help me,,, | |
hi can you any one help me to correct error i using c# write private function no error get but not get correct result when debugging this is my code [CODE]using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Data.OleDb; namespace WindowsFormsApplication1 … | |
Howdy! So I'm taking this online intro to C class and have not been able to get in touch with my instructor because I think he's on vacation.Grrrrr. Anyway, If someone could give me some hints on what is wrong with this code I would really appreciate it. I am … | |
I'm having a problem parsing information stored in the buffer after a getline command. I have a file with data in the format: [ICODE]1310 76102 C 5 27 2011 6 26 2011 5 R R 8.00 20.00 F R 8.00 25.00 150 165[/ICODE] I would separate everything using white space … | |
I tried to put a google search bar in a website. First time I pasted the whole code within the <div id="search_bar"> </div> and it was all smooth. However I want to control it from a php file. I tried to include it through .php (files are already .php ) … | |
Hi all, Can any one please help me how to call an function from dll in vc++. [CODE]// test1.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include "windows.h" #include "conio.h" #include "windef.h" int _tmain(int argc, _TCHAR* argv[]) { HINSTANCE instcall=LoadLibrary(TEXT("c:\\test2.dll")); if(instcall==NULL) printf("Failed to load dll"); … | |
Hi guys, what im trying to do is have a transfer function so that say for example i can transfer $100 from Johns account to Jacks account. Below is the code for the AtmDataFile Class and the ATMTransfer class.I would greatly appreciate some help on this project =). [CODE]import java.io.*; … | |
MARITAL STATUS IS ON LINE 26 FROM THE FOLLOWING CODE. <?php // Get values from form $SURNAME=$_POST['SURNAME']; $MIDDLENAME=$_POST['MIDDLENAME']; $FIRSTNAME=$_POST['FIRSTNAME']; $COLLEGE=$_POST['COLLEGE']; $MARITAL STATUS=$_POST['MARITAL STATUS']; $GENDER=$_POST['GENDER']; $PHONE NUMBER=$_POST['PHONE NUMBER']; $ROOM NAME=$_POST['ROOM NAME']; $GURDIANS NUMBER=$_POST['GURDIANS NUMBER']; | |
Okay, I used a tutorial from nettuts to create a log in form, so that's done. However, I would now like to create a form to update a scoreboard powered by a database (unless there is another method that may be more efficient. I have four teams and thus four … | |
Hello, I've confused myself a bit with virtual functions. I know they're useful when you want to call the parents function via casting the class to it's parent, but I've found myself scratching my head on few cases. So... Lets say I have a parent Class P and a child … | |
In an online C# tutorial [1] there is the following statement: "The override modifier allows a method to override the virtual method of its base class at run-time. The override will happen only if the class is referenced through a base class reference." I tested this with the following code: … | |
I'm trying to figure out a way to create a loop to open files and read in data until either there are no more files or the user wants to stop. for example, the first time through the loop, the string variable would be "myfile_1" and then each subsequent time … | |
I have a system where there is a list of items. each has these three fields id - unique to each item. The index field for the db name - not unique date - not unique I just started using arrays, and am not that proficient. Also, I haven't worked … |
The End.