64,152 Solved Topics
Remove Filter ![]() | |
I have a 18kb 1024 x768 jpeg image that is set as background image of my form. The problem is the form now lags like crazy. How can I eliminate the lag? | |
I am trying to define a 2D array of 1000 by 1000 ints and then test which transversal method is faster (row major or column major). I have this written [CODE] #include <stdio.h> #include <time.h> int main() { clock_t start, end; double elapsed; start=clock(); int array[1000][1000]; int row, col; for(row=0; … | |
*EDIT-I know strtok doesn't actually 'return' a segfault-I realize after submitting topic that is poor wording. Hello, I am having a problem with the C function strtok, as follows: [code=c] void function_name (char * cmd) /* Gathered from another function using readline. Assume 'ls -l' in this example */ { … | |
Hello, I am designing a database for my school library. 10% of the books in the database are French, and thus have words with accents like Château. My issue is that I'd like the user to search for book by typing Chateau (as it is too difficult to type in … | |
Hi, I'm trying to learn OOP, and I've run into a problem. I am supposed to have the user create a user name, and then I'm supposed to import a list of movies for the user to rate. I created a class called Movie. The function within is supposed to … | |
How to convert numbers from a file into integers the numbers in the file are alerady split but they are strings. Doesnt anyone know how to convert them to integers so they can be manipulated as numbers. | |
I need help...This is the class i am supposed to use... [CODE]#ifndef_MINESWEEPER_H #define_MINESWEEPER_H #include <iostream> #include <ctime> #include <cstdlib> using namespace std; const int SIZE = 3; class minesweeper { public: minesweeper(); minesweeper(int mines); void resetGame(); int flagCell(int x, int y); void unflagCell(int x, int y); int uncoverCell(int x, int … | |
i wan create a datatable complex like tis 1!any1 can teach me how to do it? The datatable consist 5 datacolumn(col1,col2,col3,col4 and col5) the data of row of col1,col3 and col5 is fix("A","Book","100") and tis same data will insert into 30 row (when the ds.Tables(0) got 30 row) the data … | |
I have a problem with my console program. I have a text file named "myRecord.txt" with the following contents: 101,Carlito Caballero,500.00 102,Tina Gamboa,560.34 103,Angel Caballero,750.55 104,Kyla Shane,850.32 105,Jogie Glen Mait,1000.00 If I run the program, the console should prompt the user to enter the id number (which is the set … | |
Really stuck on this and its supposed to be easy. I'm supposed to input 2 positive nonzero integers into x and y. Then return the value of x times y. The book has an example of 7 * 4 = 4 + 4 + 4 + 4 + 4 + … | |
hi, I have problem with my application. when i run the application it gives an error "there is no source code available for the current location". It doesnt read any of the msgbox i put in all forms.I dont know what goes wrong with my application. Please help. Its very … | |
Hi, I am currently creating a CMS which will allow PHP code to be used but I need to make sure that certain functions are not used that can ruin the CMS. Basically, I need a way to stop certain functions (like [I]fopen[/I]) to be executed. The only problem I … | |
Before i start learning php, many sites like phpBuddy say to donload php installer, Apache server and MySQL. So simply i want to know what is the use of web server and MySQl.More importantly, Also tell me how to use them correctly. If possible provide me lnks from where i … | |
Hi all, Having another problem with a program. I thought i had this one pretty good, i was confident about it, but no luck. The problem was with initializing a variable, i try to add in to output what the variable is and it says it needs to might not … | |
![]() | Hi, I'm having a small problem with the program that I'm doing. Here is the instructions for it: Write a program named ConvertDate that converts a date entered by the user into another form. The user’s input will have the form month day, year The month will be one of … ![]() |
Hey guys, I've constructed this program and I have this error that I don't understand. What I'm trying to do is have a user type in a positive number and then it counts up to that number. If the number is divisible by 3 or by 5, it prints Beep … | |
Hello I'm looking to extract jpeg image data from a mjpeg stream, but I'm not sure how to do this in c++ . The code snippet below does the job of connecting to the remote ip camera server & receives the mjpeg stream via tempBuffer variable. [CODE] // Loop and … | |
can I use fopen,and fwrite with ShellExecute? to take file in buffer,drop it in directory and run it with ShellExecute I did this way but I just get cmd window and file is corupted do I have to use some API to take file in buffer? | |
Hi all, I have a page that modifies (using AJAX) a list of animal characteristics stored in a database. The page uses a PHP file to control the actual access to the database. Everything works except when a duplicate entry is entered. The PHP file prevents the duplicate entry from … | |
I've taken a course in c# and started practicing by getting questions from books or sites to be good at programming but I think I'm not getting to the right track and I want to be professional in c# language so what is your advice to me ?? thank you … | |
Is there a way to sort an empty list of strings as you add more values to the list? I cannot find a decent example of this anywhere and struggling with this. The insertion sort seemed like the logical plan, but I cannot for the life of me find anything … | |
[CODE]import wx # create window app = wx.App() win = wx.Frame(None, title = "Simple Editor", size = (410, 335)) win.Show() # create buttons loadButton = wx.Button(win, label = 'Open', pos = (225, 5), size = (80, 25)) saveButton = wx.Button(win, label = 'Save', pos = (315, 5), size = (80, … | |
I want to create a left mouse click. All i can find anywhere is having to do if the user clicks, i want to create a left mouse click automatically. | |
Hi i've been set this assignment to design a Craps game for Java, i know this has been done lots before but i seem to be going round and round with this code....very frustrating! This is the code i've written so far: [CODE] public class CrapsGame { public static void … | |
Hello guys. How can i get my file path? I konw my program's name but i don't know where it will be put. How can i get file path during program's execution? Thank you | |
Hello guys. Let's say i have a unidimensional array: string[] names = {"John","Merlin","XMan","Kelvin",...,"Flash"}; How can i see how much elements i have ? I tryed with sizeof(names) but it doesn't works ... Next Question: I have a RichTextBox, and i select a text ... i change it's color, but when … | |
hi, I have problem with my application. when i run the application it gives an error [COLOR="Red"]"there is no source code available for the current location"[/COLOR]. Even i try to debug using f8 and msgbox in all forms, It doesn go thru it.I dont know what goes wrong with my … | |
i got a data like tis 1([COLOR="red"]0-AGF-MYR-100101[/COLOR]), i wan split to 4 part([COLOR="Red"]0 , AGF, MYR ,100101[/COLOR]) and after tis i nid to add 4 new columns to a datatable to display the value! how nid i do??? [CODE] Dim writer As StreamWriter = File.CreateText("D:\ IMS.csv") For i As Integer … | |
Can somebody help me, i want to save the output of this program in a .csv file but i don't know how. please i need help. import java.io.*; public class TestEmployee { public static void main(String args[]) throws IOException { Employee staff[] = new Employee[args.length]; // populating the array of … | |
Line 34 and 35 won't execute unless I insert them into the for loop. [CODE]#include <iostream> using namespace std; int main() { cout<<"Please enter an integer.\n"; int intege; int integ; for ( int inte = 1; inte = 1; ) { cin>> intege; cin.ignore(); cout<<"Please enter it again."; cin>> integ; … | |
When I press enter after the execution of the code, it doesn't terminate and tell me the process time etc. it just skips a line. [CODE]#include <iostream> using namespace std; int main() { cout<<"Please enter an integer.\n"; int intege; int integ; for ( int inte = 1; inte = 1; … | |
Hello All, I am here with the same Query but with a different look I want to apply the culture change to my program. I created a class library for culture change. and applied it . It is only working with the form name, i did it with two different … | |
How do you use a variable originally from a def function? | |
How can I code to restrict the users input to 5 numbers and no more or less....I can't think of a good way to do it. [code] import java.io.*; public class Palindrome { public static void main(String [] args){ try{ BufferedReader object = new BufferedReader( new InputStreamReader(System.in)); System.out.println("Enter number"); int … | |
Hey, I have a generator but it works dependently on time, so it makes new values only every second. Is there a way to make it work faster? I want to be able to generate new numbers every millisecond if possible. [code=C++] srand((unsigned)time(0)); int a; int b; int c; int … | |
I'd like a code in which a raw_input function will end and move to a print function after 35 seconds. So something like: [code=syntax]var = raw_input() # put time limit of 35 secs here print "Time's up!" # prints this only if time runs out in the raw_input[/code] | |
I'm working on a basic CMS for a club at my school. But I'm having trouble with the log in. The log in works but after entering the user name and password and submitting it, the form comes back up and you have to do it a second time before … | |
I'm trying to quickly learn C# in Microsoft Visual Studio 2008, as I need to show some proficiency for my new job. Previously I have worked mostly with Linux (PHP/MySQL). I not having any trouble with C# itself (variables, loops, etc.), but what I do need is to learn as … | |
Hey, i need to make app that should take 10 chars from list. I tried it with range command but it's not working. [CODE] list = 'abcdefghijklmnopqrstuvxyzo' for list in range(10): print list [/CODE] And this code just prints numbers 0 to 10. So, is there some other command that … | |
Hi all. I want to ask about storing the photos in a MySql database. I am developing a Software for Tours & Traveling company in that i need to store the photos of the customer. The further requirement is to export the database to an Excel sheet including the photo. … | |
Hi, I'm new to pointers. i got some requirements...... Following is my requirement.........i want to use a double and triple pointer array [2D,3D] and in that double pointer i want to get data from the user.how can i achieve that using malloc and free for assigning and deallocating memory. im … | |
I need to open a popup window from a PHP site and pass in some parameters to use in the pop up window. I have the params in an input box and need to get the val of the box into a param and pass it to the new popup … | |
Hi everyone, I'm a moderately experienced C coder trying to figure out the [B]execve()[/B] command. Here's the basic problem: My program takes a command from the user, loaded into the string UsrCmd. The string is tokenized and each token is loaded into ParaArray[]. Then ParaArray[] is used as arguments to … | |
Hello, I started c++, and I recently got an assignment, which is supposed to calculate the sum, variance, mean deviation, and mean in a set. The user can input any number positive or negative for the set. Because it is a set, the person may enter as many numbers as … | |
I don't know why my compiler didn't like my for loop [CODE]#include <iostream> using namespace std; int main() { cout<<"Please enter an integer.\n"; int intege; cin>> intege; cin.ignore(); cout<<"Please enter it again." for ( int inte = 1; inte = 1; ) { cin>> integ; if (intege==integ) { inte=0 cout<<"Thank … | |
Hello, I have this code that supposedly imitate a DTR for a homework. I've made the preliminary code, but I'm kinda surprised at the output since it's not what I had expected. Here's the code: [CODE] int login() { int id; char* name, log_time; time_t lt; lt = time(NULL); printf("\nPlease … | |
Hello. I need some advice. Here is my scenareo. I have a form displayed where a user can can select a 'function' from a list box. That 'function' has a corresponding ID number which I need to be able to take and use later in the code. The List of … | |
Hi Pals could anyone show me how to code an active clock window Thanks in advance fourty | |
Hi all! Sorry for my bad english (if it is bad). How is on site jango.com made that, when song plays and when we click on a button e.g.Home, or Music..., site changed, but the song still plays, it doesn't stop playing? (Which program they used to make that!) Thanks! | |
i have a div tag named <div id="div1" runat="server"></div> i wrote a javascript which adds content like 0,1,2,3, in this div tag as its content. Now i want a script which will delete some of the content of div1. as like 0,2,3, how can i remove content from div tag. |
The End.