Allegro C++ Code::Blocks error.
Hello, I'm new here. I'm trying to develop my version of Snake Game in C++ (with Allegro) and I was using DevC++ in Windows 7. However, now, I'm using Code::Blocks, with MINGW compiler. I installed...
View ArticleAsp.net delete data from dataset and database in disconnected mode
protected void GridView1_RowDeleting(object sender, GridViewDeleteEventArgs e) { string ph = ds.Tables[0].Rows[e.RowIndex][0].ToString(); adpt = new SqlDataAdapter(); comm = new SqlCommand();...
View ArticleVector in the struct
Hi people, here the following code I would like to run: ---------------------------------------------- struct students { std::string name; std::vector<std::string>> friends; } int main {...
View ArticleI wanna to create PDF Report Error
I wanna to create PDF Report in my Java Desktop Application ... Error :: (Uncompilable Source code - javax.swing.text.Document is abstract can't be instantiated) try { Document document = new...
View ArticleQuestion about vector sorting / operator overloading
Hey! How to start .. I have a vector of objects. I´d like to sort the vector by different things like name, etc. If I understood right, using sort algorithm like this only sort(persons.begin(),...
View ArticleProblem with int and formula
hello I am new to coding.... I am creating a app to play craps..roll the dice I am having trouble generating the integer range and when I get to the formula it states "the bad operand types for binary...
View ArticleStrange error on "delete[] array" operation
What's up all? I'm getting a strange error during the delete[] A process. I know it is happening at that point because it is the only thing following an output before the return 0; statement. I'm...
View ArticleRandomized Select is not sorting the array
Instructions from professor are to implement the randomized quicksort that we find directly in our textbook. However, upon doing this, the output can be seen to be UNsorted. Often, it is almost sorted....
View ArticleNOT the same question: Randomized SELECTION not sorting
Instructions from professor are to implement the randomized quicksort that we find directly in our textbook. However, upon doing this, the output can be seen to be UNsorted. Often, it is almost sorted....
View ArticlePython Data Mashup - geocode
Hi, I'm very new to python and am still learning so please bare with me. I have this code: import urllib, urllib2, re import xml.etree.ElementTree as ET from bs4 import BeautifulSoup # The...
View ArticleWriting my own square root function
I have to write my own square root function using: x=n-1 return 1+(1/2)x-(1/8)x^2+(1/16)x^3-(5/128)x^4 it will be named "doublemy_sqrt_1(double n)" then write a main that prints n, sqrt(n) and my file...
View ArticleFormula Error
=I'm not sure why my celsius,temperature and n= pv\rt arent showing up when I compile it. Instead I get this error that the variable f is being used without initial I'm not sure what to do. #include...
View ArticleException catch problem
I am writing some code to read from a file. I have the file and buffered readers wrapped in a try/catch statement. the catch portion is as follows catch (Exception e) { System.err.println("Error: " +...
View ArticleIf / else If Statements.
// First someone explain me if I can use an If loop within an If loop. This is what I did in this program. If No then can someone explain me how this program works. #include <iostream> using...
View ArticleNullPointerException
I get Exception in thread "main" java.lang.NullPointerException at project2.SuperTicTacToePanel.<init>(SuperTicTacToePanel.java:41) at project2.SuperTicTacToe.main(SuperTicTacToe.java:27) public...
View ArticleImplicit super constructor ** is undefined. Must explicitly invoke...
Implicit super constructor Worker() is undefined. Must explicitly invoke another constructor Here is the code that i'm getting this message on. Yes it is for a school assignment. There are 3 classes,...
View ArticleCounting positive and negative numbers and computing average
Hello. First time user here and having trouble with input/output with dialog boxes. So I am suppose to use dialog boxes to read an unspecified number of integers until a zero is entered and output how...
View ArticleMy OOP exercise
What do you think of this OOP exercise/project that I created? I assigned it to a friend who was struggling with Java, and now I am thinking of making it public on my website. Any suggestions?...
View ArticleDesign - to minimize cpu time
I have a little project where I have some web cam software that snaps a picture about every 5 minutes continually. I'd like to send some images (of those snapped between between 4 and 6 o'clock) to my...
View ArticleIs there ANY way to change camera exposure from a beagle bone on linux
I need help setting the exposure on any UVC(USB Video Class) type webcam from a beagle board running linux Angstrom . -V4L2 (video for linux 2) is a driver we've been using (Any alternate will work -...
View Article