zeroliken 79 Nearly a Posting Virtuoso

try mozilla firefox or google chrome

zeroliken 79 Nearly a Posting Virtuoso

@ line 23: use the == operator at the 2nd and 3rd condition, that's suppose to be ch == 'e' and ch == 'i'.
also did the program compiled without including the ctype and string libraries necessary for using tolower and strlen functions

zeroliken 79 Nearly a Posting Virtuoso

use the strtok function and set space as the delimeter and save each to an array (use a 2d array in this case), count the number of tokens and divide it by 2 then print out the word with the same value

zeroliken 79 Nearly a Posting Virtuoso

enclose the whole code from main in a loop where the loop will break if the condition where the user enters n or N is entered
example:

int main(void){
    char counter;
    do{
    //rest of the code from main here
    //ask the user if he wants to continue  and save the value entered to counter
    }while(counter != 'n' || counter != 'N')
}
zeroliken 79 Nearly a Posting Virtuoso

cin >> highs[count];

since you don't increment the value of count every time you used this you overwrite the current value with the new value

cout << "Enter the high temperature for ";DAYS[count];": " << endl;
DAYS[0];"Sunday";

when you use the semicolon you end the statement (here the cout statement) which means here the code following the first semicolon doesn't make sense
like I said with my previous comment:

for a complete cout statement replace the semicolon with <<

but the arrays days is not yet initialized so it wouldn't print a value if you want to use accept values for the array use cin also don't forget to increment the index

zeroliken 79 Nearly a Posting Virtuoso

try to check the beginning and end of the indeces of the string if equal. The index starting from the beginning to increment and the index starting at the end to decrement and comparing both of them
e.g.

       //here int i is the counter of the index from the start of the word and j from the end and n as the counter to check if the word is a palindrome
       j = strlen(string) - 1;
       for(i = 0; i <= j ; i++,j--){                   
           if(string[i]!=string[j]){                
               n=1; //counter tells that the sting is currently not a palindrome                                 
               break;  //once found that character doesn't matches it breaks from the loop                             
           }
           if(string[i]==string[j]){                
               n=0; //counter tells that the sting is currently a palindrome                                
           } 
       } 

then print the word is not a palindrome if the value of n is 1 else a palindrome

zeroliken 79 Nearly a Posting Virtuoso

check if the sites aren't blocked by your firewall and are allowed to store cookies on your computer

zeroliken 79 Nearly a Posting Virtuoso

Do you mean you want to write your own library for I/O or use macros for those existing functions? also fyi the latter is bad programming

zeroliken 79 Nearly a Posting Virtuoso

This could easily be solved with the strrev function from the string library
here's a link with the answer

zeroliken 79 Nearly a Posting Virtuoso

check the regex Pattern class and experiment with the constructs and matches method

zeroliken 79 Nearly a Posting Virtuoso

for starters I'd recommend text based games like sudoku, tictactoe, etc which are terminal based and should be easy to make
as for 3d games I'd usually go for C++ or Java because of the use of objects and ready made libraries but you could connect C with OpenGl for 3d purposes

zeroliken 79 Nearly a Posting Virtuoso

a C file always require a main function to execute as in the case of multiply.c

also if your making a C program use the extension .c for your main file .cpp is for c++ programs

zeroliken 79 Nearly a Posting Virtuoso

for a complete cout statement replace the semicolon with <<
next if you want to accept values for the Days array then use cin for each of the indexes

for the if statements your missing the parentheses to hold the condition

zeroliken 79 Nearly a Posting Virtuoso

Why didn't you use strcpy as stated in your title?
Avoid using gets() try fgets instead, article explaining why.
At line 15 your trying to output an integer even though "b" is a character array

zeroliken 79 Nearly a Posting Virtuoso

111100/11000: strcpy doesn't compare but compys from one string to another

you missed reading a word in my previous comment

... and strcmp in comparing the 2 string

111100/11000 commented: Thanks +0
zeroliken 79 Nearly a Posting Virtuoso

try to use strcpy in assigning a value to chouseing_alphabet and strcmp in comparing the 2 string

zeroliken 79 Nearly a Posting Virtuoso

variables r, p and tries are used but never assigned a value

zeroliken 79 Nearly a Posting Virtuoso

I see, so it's impossible then to convert a single 3-digit input to integer?

you can convert at any length if it's in a single variable, I've been taught that using nasm when you input a 3 or more digit number in a terminal you need to store the digits in separate variables for better manipulation in the program

zeroliken 79 Nearly a Posting Virtuoso

In my opinion you need to use 3 different variables and store each digit in a separate variable, next convert each digit to an integer, multiply the first digit by 100, the second digit by 10 and add all digits together and save to a variable to get a 3 digit number.

With this you only need to compare one variable for the rest of the operations

zeroliken 79 Nearly a Posting Virtuoso

This shouldn't be too hard. Just use a loop that divides a number by 2 with the condition that the number divided must not be less than 2 and use a counter that increments for every loop, then when the loop finishes print out the counter

zeroliken 79 Nearly a Posting Virtuoso

which linux distribution are you referring to?
if it's ubuntu I suggest Wubi

zeroliken 79 Nearly a Posting Virtuoso
  1. make sure you have JRE installed
    should be located at C:\Program Files\Java\jre6(or jre7)
  2. open cmd prompt and navigate to the directory where the file is located
  3. then type the command java -jar filename.jar (use your jar fileneme) or just double click the jar file
zeroliken 79 Nearly a Posting Virtuoso

that's strange usually its only the root folder where you can't tamper with the files manually

Does the shortcut key work or maybe the terminal command for copy paste work?

I suggest to first check the folder's properties if you have the right permissions like read and write
next try to run nautilus with administrator priveleges by
1. run dialog box by pressing Alt+F2
2. then type gksudo nautilus
...this is to check if you can copy paste any items on any folder

if this doesn't work you might be missing the packages for the paste, and might want to consider a clean reinstall but consider this a last resort

I'm not sure if there's another way so you may get better help on http://ubuntuforums.org
there's alot of members there that's knowledgeable for ubuntu related problems

zeroliken 79 Nearly a Posting Virtuoso

multiply the variables where the values are stored

zeroliken 79 Nearly a Posting Virtuoso

could you post the error message

zeroliken 79 Nearly a Posting Virtuoso

how to do the total of value in the array ben[20]

use a loop and make a variable where every element of the array will be added to it

have to use function or other ???????

do you mean you need to use a function for the adding process?
then just pass the array to a function (as a parameter) then do the same process as I stated before
e.g.
in main:

    sum = totalofarray(ben);

at function:

    int totalofarray(int ben[]){
        int total;
        //do process of adding values to total 
        return total;
    }
zeroliken 79 Nearly a Posting Virtuoso

It would be alot easier to see all the errors if you posted all of the code in one go
anyway, at the function calcAverage you didn't give variable lowScore any value and you didn't save the value returned by findLowest function to any variable
and lastly calcaverage didn't return any value

zeroliken 79 Nearly a Posting Virtuoso

your logic is wrong in the findLowest function
for example

if ( lowest < s2)
{
    lowest = s2;
}

means if lowest is less than the value of s2 you change the value of lowest to s2 even though s2 has a higher value than variable lowest
...try greater than and change the rest of the conditions

zeroliken 79 Nearly a Posting Virtuoso

could you post a more detailed description of the problem

zeroliken 79 Nearly a Posting Virtuoso

looking at the methods of the class all data manipulation of an element using the index should become impossible

zeroliken 79 Nearly a Posting Virtuoso

what would happen if there was no counter though? would the linked list still perform normally?

well javawise theres a class given that does the counter for you.
But if you want to do it manually (like in C, etc.) the data in each structure acts as the counter for the linked list(usually numeric) so more often than not there's a counter for every linked list. but even if there is an event where no sortable data can be found I guess that as long as each item is connected then yes it should still act like a linked list

what exactly are you suppose to do with the linked list?

zeroliken 79 Nearly a Posting Virtuoso

It makes the sorting, searching, manipulating a list a lot easier
like implementing binary search trees, AVL, heaps, graphs, search algorithms.

zeroliken 79 Nearly a Posting Virtuoso

I've only lived 18 years, but I don't want to change any of them. They're all part of my life, even the failures.
- Makise Kurisu (Steins;Gate)

Theories are nothing more than words. Accept what you've seen.
- Okabe Rintarou (Steins;Gate)

zeroliken 79 Nearly a Posting Virtuoso

but i am confused that whether after learning java i should go for web ( html,css,jscript,php,mysql) for choosing it as my carrer or i should learn new java technologies to become a java developer?

For a choice given which programming language to learn I guess learning both at the same time or alotting time for each language shouldn't be an issue,assuming you have the necessary time to study (probably a year to four like a degree course normally has), learning both will give you valuable experience on different fields that makes you more flexible on what work you'll be given.

that will benifit me most in future w.r.t to learning and monetry purposes?

... this is more guesswork about what the future has in store for you
if you have an idea of which company you'd work for and it's necessary requirements e.g. specific programming language and the businness nature of the company then you'd find it a lot easier to focus more on studying specific areas.

As a programmer you need to have the ability to adapt to your working environment meaning you should be willing to learn new things

plz dont say that do what seems to you intersesting, bcz i have no particular interest in either

It's usually that 'what interests you more' is the deciding factor on which path to choose becuase of motivation. also If you don't have any interest in either then why pursue programming? or did …

zeroliken 79 Nearly a Posting Virtuoso

line 42: try

int answer(int x,int y)

now there is another problem . I don't get answers to 11xanything ,12xanything. help

next change to the ff.

at line 5: int mutab[12][12];
at line 10: for (int h=0;h<12;h++)
at line 18: for (int i=0;i<12;i++)
at line 31: for (int k=1;k<13;k++)

zeroliken 79 Nearly a Posting Virtuoso

Control Panel -> System and Security -> Windows Update

zeroliken 79 Nearly a Posting Virtuoso

here's a pseudocode to give you a hint:

    x = 5
    while the value of x is not equal to 0 
        y = 5
        while the value of y is not equal to 0 
        if the value of y less than or equal to x
            print an asterisk
        else
            print a space
            decrement y;
        end while
        decrement x
        print a newline
    end while
zeroliken 79 Nearly a Posting Virtuoso

find a good web host, there are free ones you can use or commercial ones that costs per month (depends on your needs)
then just upload your site to your Host

zeroliken 79 Nearly a Posting Virtuoso

It's the space between people that makes a relationship

zeroliken 79 Nearly a Posting Virtuoso

Did you happen to have a problem with your previous BIOS version that made you update it?
In my experience people only update their BIOS if they happen to have existing bugs or if it was really recommended in a software update
did you backup your previous bios?
did you download it, have you had any contact with the technical support for your system that helped you with the update (e.g. chose which BIOS version, etc. )?
are you sure you used the correct version for your system?

zeroliken 79 Nearly a Posting Virtuoso

ideapad LENOVO laptop with Intel(R) Core(TM) i3 CPU m 370 @4.20GHz
and ram= 2.00GB

if it's just for programming or computer science need then your specs is more than enough.
Mine is about the same as yours though I'm using an acer laptop and I haven't
encountered any problem in my years

but my classmate told me that a LENOVO laptop is a trash and i was hurt is that true?

did you ask why does he think it's trash?

zeroliken 79 Nearly a Posting Virtuoso

Did you Search the web first for its definition and uses?

zeroliken 79 Nearly a Posting Virtuoso
  1. follow exactly the pseudocode to get your porgram to work (you only need 2 loops)
  2. I suggest you use only while loops
  3. include the j=0 at the start of your first loop as the counter for the number of asterisks you need to print every time
zeroliken 79 Nearly a Posting Virtuoso

It prints out 0 because it takes noOfdigits, stores a copy then adds 1 and returns the copy. So you get the value of what it was, but also increments it at the same time. Therefore you print out the last value though it gets incremented.

zeroliken 79 Nearly a Posting Virtuoso

what have you coded so far?
Is there a specific question you'd like to ask?
are you still troubled on how malloc or realloc work...
check the code on this link that works similar to what you need
http://www.cplusplus.com/reference/clibrary/cstdlib/realloc/

zeroliken 79 Nearly a Posting Virtuoso

actually it's undefined behavior
see this similar thread for clarifications and read WaitP and Narue's comments

zeroliken 79 Nearly a Posting Virtuoso

Some things are beautiful because they cannot be obtained

zeroliken 79 Nearly a Posting Virtuoso

could you give an example of which digit is chosen for leftPivot and median of three if it's an extreme(where the digits would be placed in a skewed pattern) then there's your problem... the wrong choice of pivot
just my assumption

zeroliken 79 Nearly a Posting Virtuoso

There's already lots of explanations floating around the web about malloc and realloc and how to properly use them
Example
You need to to be more specific, which concept are you having troubles with so we can help clarify some things?

zeroliken 79 Nearly a Posting Virtuoso

What do you mean by doesn't pause correctly?

The first one and second one works the same
also at the first code there's a trailing semicolon on the for loop @ line 44

for(x=0;x<25;x++); {