I can't get my program to compile!
i think im missing a curly brace but can't for the life of me see where!
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.util.*;
import java.io.*;
import java.lang.*;
import java.text.*;
import java.net.*;
...
I am working on a project in which I have to use DS1620 IC to display temperature using ARM LPC23xx micro controller. I want to write code in C. I am a newbie in embedded systems and I have to finish this in 24 Hrs. Please help in any way possible.
...
( insert really basic question disclaimer here )
More specifically, I have the following declaration:
output reg icache_ram_rw
And in some point of the code I need to put the zero value in this reg. Here's what I've tried and the outcomes:
assign icache_ram_rw = 1'b0;
( declarative lvalue or port sink reg icache_ram_rw must be a wir...
I think I figure out what question I am trying to ask I dont want get(Calendar.MONTH) I want the month not to be greater than the last caldendar month that is why i am doing month -1, i realize that if i use get(calendar.MONTH) it is getting month of november I just want to see check and make sure its not a greater then the december to u...
I am trying to print numbers from 1 to 100 without using loops, using C#. Any clues?
...
I want to write a shell script that loops through all directories under a directory, and call a java program with the directory name as an argument at each iteration.
So my parent directory is provided as an argument to the shell script: eg:
. myShell.sh /myFolder/myDirectory
There are 100 directories under /myFolder/myDirectory. F...
I see in a class notices of a friend this:
void show_results(Book& foreign_books) {
int total_books
total_books = foreign_books.getBooksNumber();
cout << total_books << endl;
}
this is a good class definition?
class Book{
public:
Book();
int getBooksNumber();
};
ps: i've writin...
JavaScript function that accepts a number from 1 - 12 representing the months of the year, and then returns the number of days in that month?
...
You are given an array of integers and you have sort those integers based on the frequency of
their occurrence. Design an algorithm and analyze its time complexity. In case of ties the smaller
number should appear first in the sorted list.
Sample Input: 3,4,3,2,3,5,4,2,2,1,2
Sample Output: 1 5 4 3 2
...
I'm a very beginner in C. However, I need a program that solves a problem for me. How can I do the following?
I need a tree structure. This is not traditional tree as every leaf can have various many leafs. Therefore every leaf should contain a linked list which contains the children of the leaf. In every link there is a char[][]-array ...
How do I find the derivative of sin(x) where x could be any value e.g. 1,2,3 using recursion?
...
Hi,
I have an unsorted dictionary file named "dict.txt".
I have managed to put the words of the file in an array and the qsort() I use also seems to be working just fine (That is, the array is sorted).
The problem arises when I call bsearch(),
the program crashes and my question is:
Why is this happening?
I use gcc to compile and do...
A tournament is a directed graph (digraph) obtained by assigning a direction for each edge in an undirected complete graph. That is, it is a directed graph in which every pair of vertices is connected by a single directed edge.
Data structure is adjacency matrix.
What s an algorithm to find if the graph is a tournament graph?
...
I currently have two tables:
1. car(plate_number, brand, cid)
2. borrow(StartDate, endDate, brand, id)
I want to write a query to get all available brand and count of available cars for each brand
...
If I have a function that returns a (char) in c and I have a (char* getSomething) how do I cast it? It is giving me an error when I try to cast it through either (char*) or (char*)&
Example:
If the function is :
char* getSomething;
getSomething = getSth(var);
getSth return a char
...
if i was using a JOptionPane message dialog box how would I be able to show an the whole array in the message section such as this little snipit? or would that evenbe possible?
public void showTheMessage()
{
JOptionPane.showMessageDialog(null,"These are are all the colors to
choosfrom,\n"+ arrayOfcolors[the whole array], "...
There are n different elements,
already know the order each element is pushed in.
How many different kinds of combination can there be for the poping order?
EDIT
In fact I know there are 2n!/(n+1)n!^2 combinations,but why?
...
How do I delete a row in a ListView. I need to select the row to be deleted and a command button will delete it with a alert message if you want to delete the row. What will be the code for that?
...
I need to delete certain lines from a file, the file is a list of contacts that I read in from a file into my GUI. When I get to the contact I want to delete, my program should delete the contact from the file. I've tried to do this, but it is not working.
Here is the code I'm currently using:
String temp=txtname.getText();
for (Cont...
I know this question has probably been asked in this forum many times and in the web as well. I am asked to create an implementation of a big integer in c++, however there is a constraint that one of my constructor should take an int as an argument... so I am guessing there will be more than one non-default constructor... so my question ...