zeroliken 79 Nearly a Posting Virtuoso

did you download the appropriate header files?

zeroliken 79 Nearly a Posting Virtuoso
zeroliken 79 Nearly a Posting Virtuoso

He specifically asked about Turbo C++..

I think Referencing that link would help for future viewers of this thread because of the different solutions :)

zeroliken 79 Nearly a Posting Virtuoso

at scanf() use %c for a character variable
plus avoid the fflush(stdin);
->read this article explaining why

zeroliken 79 Nearly a Posting Virtuoso

Sorry but we don't write code here for you, that's the rule

So I'll give a suggestion instead to get you started
...create a loop in the function that will print out the character 10 times
if you have problems with the code then post it here

zeroliken 79 Nearly a Posting Virtuoso
if(i-1 % i == 0)
            {
                isprime[i] = false;
            }
            isprime[i] = true;

even if it ran through the if statement the value of isprime will still be changed to true, try using an else statement

zeroliken 79 Nearly a Posting Virtuoso

Thanks a lot! That fixed it. :)

Good to hear... have fun programming :)

zeroliken 79 Nearly a Posting Virtuoso

at line 32
try it like this

cin >> word; //receive input for word
cin >> number; //receive input for number

or simply

cin >> word >> number;

then at line 33 call the function print (word, number);

zeroliken 79 Nearly a Posting Virtuoso

The second function should take a string and an integer as arguments, and print out the string as many times as the integer.

what exactly did you put in that function? Did you use a loop?

void print (string word, int number)
{
        /*create loop that will print the following string as many times as the integer passed*/
	cout << word << endl; // display the string
}
zeroliken 79 Nearly a Posting Virtuoso

Most of those kind of games are usually bought in DVDs rather than just downloaded due to large file sizes
like assassins creed, prototype, GTA series, etc.

zeroliken 79 Nearly a Posting Virtuoso

could you post a brief explanation on what your algorithm is suppose to do

zeroliken 79 Nearly a Posting Virtuoso

rows and columns are just common interpretations for 2d arrays
I think its more correct to think of it as arrays of arrays or elements of the elements and so on

zeroliken 79 Nearly a Posting Virtuoso

a[2][3][4] is a 3 dimensional array
that has an array of 2 elements where each element is an array of 3 elements where each element is an array of 4 elements.

though its old, you can check this article for an example
try searching through google for more examples and related info

zeroliken 79 Nearly a Posting Virtuoso

Do you just need to copy 1 word or is it a sentence that you need to copy the whole second half of the sentence?

well you could do it like this
use strtok for the string 2 and set space as the delimeter
once it's at its second iteration then you could copy the content to string3

zeroliken 79 Nearly a Posting Virtuoso

I'm not yet adept at C++,I just know the fundamentals, so I think you need to wait for veteran members to have a look at it :)

zeroliken 79 Nearly a Posting Virtuoso

Is the second half of string2 preceded by a space?

zeroliken 79 Nearly a Posting Virtuoso

always have a return statement at int main to properly stop the execution and also at the non void functions

zeroliken 79 Nearly a Posting Virtuoso

get the error messages and post them here

either that or post all of the contents of the codes

zeroliken 79 Nearly a Posting Virtuoso

i know what i did... im working in a turtle.java file which is part of the java book classes and i was trying to add methods to that and rename it as the computer science project 01 and it wouldnt so i changed where it said turtle to computer science project 01

either change the public class name and filename back to Turtle or rename the line where you initialize the class to ComputerSciencesProject01

zeroliken 79 Nearly a Posting Virtuoso

love can neither be created nor destroyed it can only be transferred from one person to another

zeroliken 79 Nearly a Posting Virtuoso

i posted whatever i have in my code so i think the turtle class is within that im not sure =/

Are you sure cause your calling a method from another class and such class does not exist in the code you posted
Its most likely to be in another file in the same directory as your ComputerSciencesProject01 file

zeroliken 79 Nearly a Posting Virtuoso

Are there any methods named drawN() or drawA() in your Turtle class?

zeroliken 79 Nearly a Posting Virtuoso

It will give us a better idea if you could post your current code here or are you just asking for suggestions on this?

zeroliken 79 Nearly a Posting Virtuoso

I think its python, its a bit easier to learn the language and write the code compared to Java and C++

zeroliken 79 Nearly a Posting Virtuoso

Can you post the line 71 in your code

zeroliken 79 Nearly a Posting Virtuoso

TaxDeduc method does return a value but you dont seem to properly call the method itself
instead in your main method the variable is assigned as a float
these links should help you
http://www.tutorialspoint.com/java/java_methods.htm
http://www.wikihow.com/Call-a-Method-in-Java

dij_0983 commented: nice links +2
zeroliken 79 Nearly a Posting Virtuoso

Why? You (or another mod) is going to delete the post anyway, so why bother?

The comment will stay in the reputation page of the profile as a bitter reminder of the sin the spammer committed

zeroliken 79 Nearly a Posting Virtuoso
void howMany(int count1, int count2, int count3 )

then print their values in the function

zeroliken 79 Nearly a Posting Virtuoso

So do you still have a problem about the code?

zeroliken 79 Nearly a Posting Virtuoso

If you started the thread, there should be a "Mark as Solved" link below the last post.

read my last post

zeroliken 79 Nearly a Posting Virtuoso

The code should be fine.

Those red lines found at the rightmost side of netbeans says otherwise
try to fix those issues before running the right file

PS. next time just attach the image on your post so we can view it at the thumbnail

zeroliken 79 Nearly a Posting Virtuoso

create the necessary arguments at your howMany function for it to work

zeroliken 79 Nearly a Posting Virtuoso
while (i >= 0)
			{
				if(i == 0)
				{
					list[i] = value;
				}
				else
				{
					list[i] = list[i-1];
					list[i] = value;
 
					i--;
				}
                         }

once i becomes 0 at this loop its value will remain 0 because it will always pass the if statement which doesn't change the value of i

zeroliken 79 Nearly a Posting Virtuoso

You made Duplicate posts at the C and C++ forums and I received 3 private messages from you with the very same topic
You could have just made a single thread and waited patiently for a response from one our members

@AD
there's a [ at the end of your code

zeroliken 79 Nearly a Posting Virtuoso

initialize the values of your strings like so

char string1[50] = "";
char stringInvertida[50] = "";

then use fgets in receiving a input instead of using gets
here's the reason why

zeroliken 79 Nearly a Posting Virtuoso

If you started the thread, there should be a "Mark as Solved" link below the last post.
though its ok if you don't really wanna mark this one as solved since me and the other member would get a +1 solved thread without actually helping you... but hey that's up to you :)

zeroliken 79 Nearly a Posting Virtuoso

that user hasn't logged back on since July 15, 2010 so good luck getting a reply

zeroliken 79 Nearly a Posting Virtuoso

I'm not so sure which of these are the tasks that runs you want to count so...

int counter1 = 0;//set the variable
.
.
.
while ( count < 20)
{
printf("Please enter integer number : ");
scanf_s("%d" , &input);
sum = sum + input;
count = count++;
counter1++; //counts how many times the while loop or any of its content ran 
}
zeroliken 79 Nearly a Posting Virtuoso

set a counter for every task(value of a counter starts at 0)
every time a task is invoked add 1 to its counter, then at the end of the program print all of the counters to know how many times the task had been invoked by its specific counter

zeroliken 79 Nearly a Posting Virtuoso

use a counter for each task

zeroliken 79 Nearly a Posting Virtuoso

-always organize your schedule if you want more time doing nothing

zeroliken 79 Nearly a Posting Virtuoso

I am becoming annoyed at the amount of responses on this site saying (something along the lines of) "This thread is 5 years old, please leave it alone.".

I am more annoyed about the replies 5 year old threads get...
Because They're usually a question made by a newbie not checking the date it was posted
or a useless reply from a thread that is already answered, still lots of trolls lurking around the web
If that's the case I am more than happy to say to leave the thread alone :)

I'm not saying that all the responses are bad but they're rarely good

happygeek commented: agreed :) +0
zeroliken 79 Nearly a Posting Virtuoso

Is searching too hard for you?

If you have a problem understanding a concept you could post that here and thats where we come in and help you understand or clarify things.

zeroliken 79 Nearly a Posting Virtuoso

That is weird, no matter what compiler, IDE, OS I use I am able to change the button size


I tried the program at ubuntu 11.10 built in compiler(gedit/terminal), geany, windows 7 netbeans and eclipse... I have no idea anymore what advice to give :(

zeroliken 79 Nearly a Posting Virtuoso

Try it like this

JPanel longPane = new JPanel(); 
    addToFile = new JButton("Add To File");
    addToFile.setPreferredSize(new Dimension(105,25));
.
.
.
    longPane.add(addToFile);
    pane.add(longPane);
zeroliken 79 Nearly a Posting Virtuoso

you could also try
theForger's Win32 API

zeroliken 79 Nearly a Posting Virtuoso
public Thread1(String name, int len, String a[], String b[]) 
thr[0] = new Thread1( tt , baseLength, aa, bb);

A String cannot be converted to a String[] by method invocation conversion

zeroliken 79 Nearly a Posting Virtuoso

you need to put the main method and all your methods inside your public class

private Container getContentPane() {
throw new UnsupportedOperationException("Not yet implemented");
}
}

the last bracket here ends your public class
and don't put ); after the end brackets

*next time wrap your code in code tags so we can just point out what line you got the error

zeroliken 79 Nearly a Posting Virtuoso

Did you add the JPanel to your Container pane?

zeroliken 79 Nearly a Posting Virtuoso

Yes long time no see :)

well an inner class is associated with an instance of its enclosing class and has direct access to that object's methods and fields