Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
Ranked #2K
~24.9K People Reached
Favorite Tags

25 Posted Topics

Member Avatar for numbplum

Google is your friend. The first C++ test I took looked like this, but my professor didn't tteach half the stuff. He expected us to read it from the book on our own. Answer what you can and google the rest.

Member Avatar for rubberman
0
836
Member Avatar for marnun

You are getting the out of bounds from line 8. Before you try to length() - 1, do a check to see if length == 0. If true, return false.

Member Avatar for marnun
0
515
Member Avatar for runlevel3nut

javascript != java; My advise for learning java is to start with the basics and build from there. If you have programmed in some other language, then you should be able to get caught up quickly. There are a lot of fundimental things about java thaat haven't changed over the …

Member Avatar for runlevel3nut
0
290
Member Avatar for ssh9411

I just wrote an annagram program simmilar to yours. My program didn't do the chopped up forms of a word. It only used the exact number of letters entered by the user. I wrote the input words into a struct that contained two items. The first was the word as …

Member Avatar for Lucaci Andrew
0
159
Member Avatar for javanoob101

you could try a while loop that takes in a character from the user. while((scan.next()).equals(" ")) i dont know if the .equals() would work, but you get the idea?

Member Avatar for javanoob101
0
179
Member Avatar for Vish0203
Member Avatar for jyothsnach

void functions do have a return type, they return void. In some languages, you can say "return void" others you can't.

Member Avatar for rubberman
0
158
Member Avatar for Mirza92
Member Avatar for Mirza92
0
127
Member Avatar for dmo1

Do you have a specific question or do you expect us to run and debug your code?

Member Avatar for dmo1
0
147
Member Avatar for ninidesobra

MIT, Stanford, UC Berkley, UCSD, University of Michigan... your local community college. Any one of these would be a good start. The C Programmin Guide by Dennis Ritchie would be a good start to understanding C and then working your way up to C++.

Member Avatar for Reaper Man
0
210
Member Avatar for tomz6

You could declare a char[BUFSIZ]. It is a max length your system can use. Not exactly what you are describing, but it would get the job done.

Member Avatar for deceptikon
0
167
Member Avatar for Violet_82

"Right, so first thing: where are the calls to the getters? Surely they are implicitly called, but how? I don't see anywhere." The class Employee was written with getters and setters, but the author didn't use the getters. The variables "private String name" and "private String jobTitle" have the scope …

Member Avatar for Violet_82
0
3K
Member Avatar for firewall321

your link isn't working for me. I don't see myself spoonfeeding you the answers but I can take a look and help you if you have a specific question.

Member Avatar for T-Dogg3030
0
125
Member Avatar for Harley_Quinn

I don't know about MIPS Assembly, but in SPARC Assembly move the two registers or numbers into %o0 and %o1 and call .mul The result will be returned in %o0, move %o0 to %o1 you can then call printf after you have set a string into %o0. String: acsiz "%d\n" …

Member Avatar for Harley_Quinn
0
147
Member Avatar for thePAkid

On line 112, try to put a (int) after the "=" . The program is expecting an int in this case. Try the same for your other errors when they want a float or a double. Just cast it as that type. It is trying to warn you that you …

Member Avatar for thePAkid
0
247
Member Avatar for liljaw2706

Ì don't think this is the right website for you if you want people to "provide" you the code. If you can't even attempt at trying to solve the problem, you should switch majors.

Member Avatar for T-Dogg3030
0
227
Member Avatar for minimee120

You could just combine the two arrays into a new array and then sort it. When you are going through both of you two orginal arrays, some kind of sorting comparison must be done to combine the two into the new sorted order. I don't know if this helps, but …

Member Avatar for minimee120
0
268
Member Avatar for salma.zaki.31

.global helloWorld .section ".data" str: asciz "hello world!" .section ".text" helloWorld: save %sp, -96, %sp set str, %o0 call printf, 1 nop ret restore

Member Avatar for Fix_It
-1
93
Member Avatar for artur.sinelnikovs

To answer your question about how to use argc and argv, argc is an int. It represents the number or strings that are seperated by white space in the commandline. argv is an array of char pointers or strings. The values of each index is the information entered on the …

Member Avatar for deceptikon
0
162
Member Avatar for T-Dogg3030

Hi, my code prints out the number of times a letter is typed. I can get it to print out the correct info, but when it deals with a white space, it will print out the list for every white space. how can I deal with this? [CODE] #include <iostream> …

Member Avatar for T-Dogg3030
0
149
Member Avatar for T-Dogg3030

Hello, part of my project I'm working on needs to have me count the amount of letters in a file. This is what I have so far. Any one help? [CODE] #include <iostream> #include <fstream> using namespace std; int main () { char c ; // start with a blank …

Member Avatar for T-Dogg3030
0
95
Member Avatar for T-Dogg3030

Part of the assignment I'm working on is to display random letters between my good letters to encode text. Right now I can make it display random numbers. How can I change this to out put random letters? [CODE] #include <iostream> #include <fstream> #include <ctype.h> #include <ctime> #include <cstdlib> #include …

Member Avatar for mrnutty
0
304
Member Avatar for T-Dogg3030

I am trying to do a command line switch with an if statement. The problem I am running into is when I am using a letter, it wont recognize it. When I use a number, no problem. I think there are a few different ways to solve this. Can anyone …

Member Avatar for programmersbook
0
101
Member Avatar for T-Dogg3030

I am trying to use an array that can change in length by the number in the command line. Arrays must be constant at the time of declaration. Can anyone help? [CODE] using namespace std; int main (int argc, char *argv[]) { int nulls=atoi(argv[2]); int arry[nulls]; } [/CODE]

Member Avatar for Narue
0
199
Member Avatar for T-Dogg3030

I'm trying to open a txt file using command line arguments in Visual C++. I know you need argc and argv[] in the main. What would be an example you would type into the text field on project>properties>debugging>command arguments? How would you display the text on screen? After reading the …

Member Avatar for Nick Evan
0
17K

The End.