Forum: C 4 Days Ago |
| Replies: 16 Views: 298 thank u
but How i will convert it to integer after this ? |
Forum: C 4 Days Ago |
| Replies: 16 Views: 298 but the input is number (integer), how I will check it ? |
Forum: C 4 Days Ago |
| Replies: 16 Views: 298 Hello,
I have a problem in my program
I want to check the input if it's a number or not
the number Component of N boxes
for example if N=4
the input 1234 is valid
the input 123a is... |
Forum: Java Aug 10th, 2009 |
| Replies: 8 Views: 528 Thank you :)
I do what James tell me, And it's do correct without problems.
thank you james & adatapost
I think that too !!! |
Forum: Java Aug 10th, 2009 |
| Replies: 8 Views: 528 thank u, but How can I get the clor values, Are u have a link that could be help me ?
thanks again : ) |
Forum: Java Aug 10th, 2009 |
| Replies: 8 Views: 528 Hello,
I have a question, in my program I want to read a text field then to convert it to Color, How Can I do this ?
I try this, but I didn't know if this is right :
String colorString =... |
Forum: Java Jun 18th, 2009 |
| Replies: 4 Views: 1,324 Thank u bro,
:)
The problem is solved |
Forum: Java Jun 18th, 2009 |
| Replies: 4 Views: 1,324 but I sholud not use collection.sort
I should do it without collection.sort
I do the following:
public void printRaceTeamsRankedReport(){
TreeMap<Constructors,RaceTeam> teams = new... |
Forum: Java Jun 17th, 2009 |
| Replies: 4 Views: 1,324 Hello,
I have a question about sorting.
How can I sort HashMap by element in the HashMap ?
That's meaning, if I have in the Sys class map such as:
protected Map... |
Forum: Java Jun 11th, 2009 |
| Replies: 5 Views: 239 I read the line like this (from the main class):
if (command.equals("addRaceDrivertoTeam")){
// This method attach Race Driver to Team
String driverLicenseNumber=input.next();
String... |
Forum: Java Jun 11th, 2009 |
| Replies: 5 Views: 239 Hello,
I have an amazing thing in my code, when I take the date from input txt file, and i put it to an output txt file, there was not the same date, for example:
if in the input the date birth... |
Forum: Java Jun 7th, 2009 |
| Replies: 3 Views: 285 I try to change in the method, maybe one of the two methods is wrong because id the addRaceDrivertoTeam() method return:
return team.addRaceDriver(driver);
and the method returns false :(!!!
... |
Forum: Java Jun 7th, 2009 |
| Replies: 3 Views: 285 I try to do this:
public boolean addRaceDriver(RaceDriver driver){
if (raceDriver!=null && raceDriver.size()>2)
return false;
if (raceDriver != null &&... |
Forum: Java Jun 6th, 2009 |
| Replies: 3 Views: 285 Hello,
I have a problem with this method:
public boolean addRaceDrivertoTeam(String driverLicenseNumber,String
nationality,String constructorName, String fullName, Date... |
Forum: C Jan 24th, 2009 |
| Replies: 3 Views: 427 hello,
I called the getword() func in the checkValid() Func.
so, when I called the CheckValid Func I called too the getword() func.
I didn't know what the problem in the second parameter.
but... |
Forum: C Jan 24th, 2009 |
| Replies: 3 Views: 427 Hello,
I have a question
I should write a program that read words from file text and sort it by ABC letters in array, and ask the user to enter a sentence and chcking if the words in the sentence... |
Forum: C Jan 17th, 2009 |
| Replies: 20 Views: 686 the problem that I doesn't know what I should to
I write this code in the main:
printf("enter sentence:\n");
gets(sen);
while (gets(sen))
{
scanf("%s", &sen); |
Forum: C Jan 17th, 2009 |
| Replies: 20 Views: 686 so, What I should do to calling CheckWord() always? |
Forum: C Jan 17th, 2009 |
| Replies: 20 Views: 686 sorry, but I didn't understand the problem !!!
the program right now workes well !!! |
Forum: C Jan 17th, 2009 |
| Replies: 20 Views: 686 example for sorted array:
again
and
extend
extension
extern
extinction
father
fatling |
Forum: C Jan 17th, 2009 |
| Replies: 20 Views: 686 I will write the all code
you will understand the program and may you can help me
I want to let for the user to enter a sentence.
And I want to take the words from the sentence and compare each... |
Forum: C Jan 17th, 2009 |
| Replies: 20 Views: 686 I read it in another func
I have some functions
one that read the file
another that sort the words on the file by ABC letters
and another that compare between the word that the user enter it and... |
Forum: C Jan 17th, 2009 |
| Replies: 20 Views: 686 yes of course, there is a file that contain words (dic) that i compare the word with it |
Forum: C Jan 17th, 2009 |
| Replies: 20 Views: 686 I don't understand what you mean exactly, but the function helps from anther func sortarray(), it's called it and compare from the word that I send it and the array in the sortarray() |
Forum: C Jan 17th, 2009 |
| Replies: 20 Views: 686 this is the code :
int CheckWord (char ch[])
{
int i;
char dic[W][L];
sortarray(dic);
for(i=0;i<W;i++)
if(strcmp(ch,dic[i])==0) |
Forum: C Jan 17th, 2009 |
| Replies: 20 Views: 686 tahnk you :)
I know where is the problem and solute it
I was should use another func that I wrote it before
thanks again :) |
Forum: C Jan 17th, 2009 |
| Replies: 20 Views: 686 hello,
I have a matrix (string array that have words) and I want to write a function that receive the word and consider whether the word existed or not in the matrix
I"m trying to write the... |
Forum: C Jan 10th, 2009 |
| Replies: 26 Views: 1,258 Ok, I will.
but the program is very long. contain some function, when I finish it I will put it here :) |
Forum: C Jan 10th, 2009 |
| Replies: 26 Views: 1,258 thank you very much minas1 :)
thanks again for helping and tips :icon_wink: |
Forum: C Jan 10th, 2009 |
| Replies: 26 Views: 1,258 like this ??
if yes, but we use the structer, and we should just use in the function the pointers without anything else ....
this is the code:
#include <stdio.h>
struct mytype
{ |
Forum: C Jan 10th, 2009 |
| Replies: 26 Views: 1,258 like this ??
#include <stdio.h>
struct mytype
{
int ok;
char ch;
} mytype; |
Forum: C Jan 10th, 2009 |
| Replies: 26 Views: 1,258 |
Forum: C Jan 10th, 2009 |
| Replies: 26 Views: 1,258 like this ?
int findCalculation(int *a, int *b, int *c)
{
char ch;
if (*a - *b == *c)
return 1;
else return 0; |
Forum: C Jan 10th, 2009 |
| Replies: 26 Views: 1,258 yes I know that it works, but in the question we should write the func just with pointers !!! |
Forum: C Jan 10th, 2009 |
| Replies: 26 Views: 1,258 grumpier
I didn't ask you to write the func that i want, but I want another example but with parameters to understand the way.
minas I have write the func with structer
#include<stdio.h>... |
Forum: C Jan 10th, 2009 |
| Replies: 26 Views: 1,258 thank you grumpier
but I didn't understand the example, if you can give me actual example plz.
minas thank you, but I said that we should write the function with pointers, and te function should... |
Forum: C Jan 10th, 2009 |
| Replies: 26 Views: 1,258 thanks minas
but I want use the poiner, I sure that I can use the pointer, but I didn't know how to use it !! :(
is anyone know ? |
Forum: C Jan 10th, 2009 |
| Replies: 26 Views: 1,258 thank you grampier
but by the question that i have I should reurn 2 values if there is operation return 1 and the character, I asked somebody the all tell me that I should use the pointers but... |
Forum: C Jan 10th, 2009 |
| Replies: 26 Views: 1,258 Hello,
I have a question, How I can write a function that return 2 values.
the function should take 3 numbers and do between the first and the second number an arethmetic operation and check if... |