775 Posted Topics

Member Avatar for yoshio5908

You could store the numbers in an array of integers then compare them to know which is the highest number

Member Avatar for zeroliken
0
609
Member Avatar for dsoto
Member Avatar for dsoto
0
173
Member Avatar for fender

Could you post which part of your code you're having a problem with Also wrap your codes in in code-tags

Member Avatar for zeroliken
0
698
Member Avatar for terence193

You could store the input numbers in an array and use a loop again to check if the current number has been entered before

Member Avatar for zeroliken
0
112
Member Avatar for jamal30

Correct me if I'm wrong but shouldn't you use fscanf or fgetc since he needs to read a file?

Member Avatar for ashlock
0
98
Member Avatar for theCompiler

It would be better if you explain more elaborately the desired output of your code

Member Avatar for WaltP
0
119
Member Avatar for FinaL111

You could search the forum and learn from others like [URL="http://www.daniweb.com/software-development/c/threads/384385"]this[/URL]

Member Avatar for ashlock
0
112
Member Avatar for robinpurbia

Well basically you can't and only a mod can do something about it if they want

Member Avatar for zeroliken
-1
111
Member Avatar for engineer61
Member Avatar for zeroliken
0
138
Member Avatar for randolph.gamo
Member Avatar for amit_as

You can start by asking two inputs from the user namely the word and letter then use a for loop and if else statement to get the index position example [CODE] for(i=0;i<strlen(word);i++){ if(word[i]==letter){ printf("The position of the letter is %d\n",i); break; } }[/CODE] Of course there are missing pieces of …

Member Avatar for nHulk
0
6K
Member Avatar for theCompiler

Does it really need to be a String function? Because you can use a simple for loop , if/else statement and a counter to output the consecutive character Though if (any) String Function is required at all you can use strcmp on each index(a letter) and the index after that(next …

Member Avatar for nHulk
0
5K
Member Avatar for besjana

When you ask for help here you usually post your code for us to make suggestions and check which part has an error thus should help you figure out how to solve your own code

Member Avatar for zeroliken
0
187
Member Avatar for KSBeyaz

Firstly, When I click on the link it requires a login to continue Also it would be better to put some parts of the code in a new class to make it efficient and lessen the lines of code plus it can help us pinpoint what part of the code …

Member Avatar for KSBeyaz
0
244
Member Avatar for xiangzhuang

When I compile it the squares that you said that is suppose to be in the top right quadrant appear in the bottom right quadrant [CODE]while(b<51) { g.setColor(new Color(r.nextInt(COLOR), (0), (0))); g.fillRect(MIDX+50, MIDY-50, r.nextInt(48)+2, r.nextInt(48)+2); b++;[/CODE] the y value coordinate in computers has the opposite value from the regular cartesian …

Member Avatar for hfx642
0
399
Member Avatar for zeroliken

Here is a complete and working code that 1. Adds the numbers(input) to get a sum(output) 2. Sorts the numbers in a descending order Can you post any suggestions on how I can improve my code :) main.c [CODE]#include <stdio.h> #include "header.h" main (){ int sum, x, y, z,choices; input(&x, …

Member Avatar for Narue
0
237
Member Avatar for km2011

can you post which part of your code do you need help or wish to add something? and like what stevanity said, please post what the program is for, its hard for us to pinpoint exactly what part of the code needs a change or something

Member Avatar for km2011
0
174
Member Avatar for theCompiler

Please post your code so we can see your effort on trying to solve your own problem It's like your asking us for an immediate answer the way you say it :(

Member Avatar for Narue
0
95
Member Avatar for mike2828
Member Avatar for lbgladson

One thing I notice is that you dont have a main method Is this on purpose? [CODE] public static void main(String[] args){ //... } [/CODE]

Member Avatar for Ezzaral
0
105
Member Avatar for branflake

Here's my Example [CODE] public double calcinsDeduct() { String cmdString = JOptionPane.showInputDialog("M-Male or F-Female: "); if(cmdString == ("M")){ JOptionPane.showMessageDialog(null,"50.00 - deducted"); //shows the message...you can edit this insDeduct = 50.00; } else if(cmdString == ("F")){ JOptionPane.showMessageDialog(null,"100.00 - deducted"); insDeduct = 100.00; } else{ JOptionPane.showMessageDialog(null, "enter either M or F"); } …

Member Avatar for stultuske
0
11K
Member Avatar for Pirouette

all you need to do is to store the numbers in another class help.java [CODE]import java.util.Scanner; import java.util.*; public class help { public static void main(String[] args) { int num; int total=0; int i=0; help2[] entries=new help2[100]; int counter=0; Scanner sc = new Scanner(System.in); do { System.out.print("Input an integer. Input …

Member Avatar for zeroliken
0
4K
Member Avatar for zeroliken

The program should change a sentence to pig Latin. [B]Rules[B][/B][/B] A word starting with a vowel should start with a capital letter and the rest with small letters and end with "way". If a word starts with a consonant the first letter will move to the last until it starts …

Member Avatar for zeroliken
0
501
Member Avatar for tastyTreeHUGGER

there is an anagram in this code , i dont know the anagram Is it so hard to search the net for an anagram solver? Answer

Member Avatar for tastyTreeHUGGER
0
453
Member Avatar for amit_ciem

Start your own thread instead of replying to this old one and post it in the right forum in detail

Member Avatar for Ancient Dragon
0
85

The End.