Posts
 
Reputation
Joined
Last Seen
Strength to Increase Rep
+5
Strength to Decrease Rep
-1
57% Quality Score
Upvotes Received
4
Posts with Upvotes
4
Upvoting Members
4
Downvotes Received
3
Posts with Downvotes
3
Downvoting Members
3
1 Commented Post
~59.3K People Reached
Favorite Tags
c++ x 110
java x 110
text x 9
jar x 9
Member Avatar for Alex_31

My project for my C++ class requires that I take a bunch of weather data. It's a ton of lines so I won't include all of the text file, but here's a sample of it: 0 943 0 5 0 107 2 401 0 299 The first column is snowfall …

Member Avatar for David W
0
364
Member Avatar for manel1989

Hi everyone I'd like to know how I can fill a matrix [n] [m] from a vector of size n * m Thank you very much every one

Member Avatar for jackmaverick1
0
249
Member Avatar for jackmaverick1

How do Vim and Emacs allow the whole console to be used, even after an enter has been recieved? (this can be Windows-specific) I've got unbuffered input, and I have methods for output to print to anywhere in the console. What methods do Vim/Emacs employ to make the entire screen …

Member Avatar for mike_2000_17
0
254
Member Avatar for triumphost

Should I be using std::wstring or std::string and wchar_t or char? All this unicode stuff is confusing me. I want my application to work on both windows and linux without too many problems and changes but I'm considering unicode vs. ansi. Any ideas? I ask because I see many applications …

Member Avatar for vijayan121
0
1K
Member Avatar for jackmaverick1

I've been working on a small API/Library and I realized that I was returning memory that wasn't going to be consistently put on the heap or stack. So my question is this: when I return an object from a function in a Library, should that object be on the heap? …

Member Avatar for mike_2000_17
0
234
Member Avatar for jackmaverick1

When connecting to a database, is it best to use one SqlConnection object for the entire server, or use one for each connection? I couldn't find a good answer in Google, but maybe my Google-fu isn't good enough.

Member Avatar for deceptikon
0
79
Member Avatar for angel.heaven.58367

I am trying to do a C++ coding. I am trying to do problem in which i have numbers of points. Now i need to find the path that goes through all the points. This is not actually TSP because as per my knowledge in TSP it is possible to …

Member Avatar for sarathy333
0
89
Member Avatar for anestistsoukalis

I think that the problem is in lines 59-63 #include <stdio.h> #include "genlib.h" #include "ctype.h" #include "simpio.h" #include "string.h" typedef struct{ char name[30]; long sell; double supply; }domiT; void ypologismoi(domiT stx[],int *p,FILE *infile); void emfaniseis (domiT stx[],int *p,FILE *outfile); main() { int p; FILE *infile,*outfile; domiT stx[100]; ypologismoi(stx,&p,infile); emfaniseis(stx,&p,outfile); system("pause"); …

Member Avatar for tinstaafl
0
189
Member Avatar for RaJsHaH.23

[import java.util.Scanner; import java.util.Random; public class HangmanMy { public static void main (String[] args){ System.out.println("Welcome to the game Hangman :)/>"); Scanner input = new Scanner(System.in); boolean done = false; String guess; String guesses = ""; char letter; int wrongGuess = 0; StringBuffer dashes; System.out.println("Choose a category -> places / games …

Member Avatar for corby
0
241
Member Avatar for kanbear11

I have a person class public class Person implements Comparable<Person> { //Instance Variables private String firstName; private String lastName; private int age; private char gender; private String ssn; // This is the constructor of the class Person public Person(String firstName, String lastName, int age, char gender, String ssn) { this.firstName …

Member Avatar for kanbear11
0
1K
Member Avatar for B204

Following code is for deleting elemnt from array but it shows NullPointerException at **if(names[k].equals(user))** ... how to remove it!!! public class del_array { public static void main(String s[]) { String names[ ] = new String [10]; names[0]="admin"; names[1]="b"; names[3]="m"; String user="b"; for(int k=0;k<names.length;k++) { if(names[k].equals(user)) { String item=names[k]; for(int j=k;j<names.length-1;j++) …

Member Avatar for stultuske
0
190
Member Avatar for jackmaverick1

During the process of creating my latest game, I've come across the problem of collisions. In the last few games I've made, I've used a system of collision detection that relyed on two rectangle's methods. This seems to work, but doesn't provide a method for dissallowing an entity entry into …

Member Avatar for jackmaverick1
0
208
Member Avatar for stephanieirene

C++ Programming The file attached contains the instructions. This is what I have done so far. It outputs the contacts from the file. I need help by tonight. Please Help!!!! I have all the tokens on the vector token. I want to create a Contact with those tokens Ex: Contact …

Member Avatar for Lucaci Andrew
0
310
Member Avatar for NetJunkie

When did you start programming and what language did you start in? Here, I'll start: I started when I was around 15 but kinda stopped for awhile because it seemed too difficult. So around 17, I really got back into it and started learning more and more as I progressed. …

Member Avatar for Reverend Jim
0
962
Member Avatar for m1n1m3

Hi, I have a simple usb device that i can plug into a PC. The thing im looking for in user interface that is: 1) Multiplatform 2) Manages it own drivers (for plug in USB device) 3) No install file, a executable. The thing im looking for is like this …

Member Avatar for jackmaverick1
0
292
Member Avatar for jackmaverick1

I've got a game, and I'm trying to do it right. I've got a spritesheet (which is really just a class that loads images for easy access. It seems to work, but then my tile system starts, and it fails in an interesting way - it loads only the foreground, …

Member Avatar for jackmaverick1
0
195
Member Avatar for Muni123

I am having some proplems with my code - I am told to create a mouse and apple game and I am having some trouble with using the array in different funtions. Here is a short version of my code - //defining the size of the grid const int SIZEY …

Member Avatar for Muni123
0
191
Member Avatar for sssabita

I am doing project in java that analyzes tweets related to a particular topic and categorizes them as positive,negative or neutral.I have been able to extract the tweets but donot know how to build a classifier to categorize them.How do i build a classifier and how do i train it?Please …

Member Avatar for siva111
0
172
Member Avatar for paoi00

My textbox6 represents the dateprinted of my asssessment form.. i code it like this : TextBox6.Text = My.Computer.Clock.LocalTime.Date then in the my SAVE Button coded like this : Dim cn As OleDbConnection If TextBox1.Text = "" Then MsgBox("Enter a Student Number! ", MsgBoxStyle.Information, "Warning") ElseIf TextBox1.TextLength = 9 Then con …

Member Avatar for poojavb
0
186
Member Avatar for johans22

I was reviewing the code at the following two sites. I noticed that memory allocation "new" has been used to allocate space for the Node(s). How are they freed?. very good codes. http://visualcsamples.blogspot.com/2010/11/sparse-matrix.html http://www.syntax-example.com/Code/implement-subtract-function-big-number-992.aspx

Member Avatar for jackmaverick1
0
154
Member Avatar for rezonk

#include<iostream> using namespace std; struct Student_Record{ int id_num; int assignment; int quiz; int test; char grade; }; void get_data(Student_Record &p); int calc_mark(Student_Record p); Student_Record read_data(); void print_all(const struct Student_Record p{}); int main() { Student_Record amir,naim, amirNaim[2]; int amirtotal_mark, naimtotal_mark; get_data (amir); amirtotal_mark=calc_mark(amir); if (amirtotal_mark>=60) amir.grade ='p'; else amir.grade='F'; naim= read_data(); …

Member Avatar for nullptr
0
161
Member Avatar for jackmaverick1

I have a project going (the idea for which I got from a website a couple of years ago) and its been going pretty well. However, I have come upon a strange error, which I can't find the source of (well, I know the source but I don't know what …

Member Avatar for histrungalot
0
389
Member Avatar for bsabowala

String line = null; double value; BufferedReader in = new BufferedReader(new FileReader("C:\\Users\\Bilal\\Documents\\Work\\scrambler\\input.txt")); int x=0; while (line != "end"){ line = in.readLine(); System.out.println(line); x++; } }} When I run this.. the loop does not stop when the word end comes.. why???????

Member Avatar for JamesCherrill
0
185
Member Avatar for mariel_1013

Hello, Can anyone help me? I am new to programming. I need to create a program that tracks sales. The store owner wants to keep track of monthly sales. 1. Ask the user for the monthly income of the store (one question per month) keep the numbers input 0-50. Store …

Member Avatar for mariel_1013
0
306
Member Avatar for jackmaverick1

I've decided to try to create a small (very) game in Javascript + HTML, using the Canvas element. So far, its gone pretty well, but recently I started on bullets. This also has gone well. I've decided to try to implement a bullet-goto-mouse type thing. I know this uses trigonometry, …

Member Avatar for jackmaverick1
0
149
Member Avatar for jackmaverick1

I've got a wall in my 2-D game. I've got everything except the not-allowing-you-into the wall part. I know I can use the intersect method on some Rectangles to know if they intersect, but I need to know where they intersect so that I can kick them out when they …

Member Avatar for NormR1
0
115
Member Avatar for DMBoston

I am trying to building this program to run 10 times and then calculate at the end with needHelp if 75% or more was correct or incorrect. For each random number multiplication question correct and incorrect messages come up. I have been working on this for 3 days and it …

Member Avatar for DMBoston
0
139
Member Avatar for jackmaverick1

[CODE] #include <vector> #include "Rab.h" class Envo { vector<Rab> items; };[/CODE] the error is: [ICODE]error: 'vector' does not name a type[/ICODE] I can't find ANYTHING that's wrong. Is someone else able to find it? BTW, Rab.h contains the class 'Rab'. Jack

Member Avatar for jackmaverick1
0
84
Member Avatar for rfrapp

Let me start off by saying that this is homework, and I have most of it completed. However, I am stuck on how to convert decimal to hexadecimal. The assignment is to add two hexadecimal numbers and output the answer. If the length of the answer is greater than 10 …

Member Avatar for rfrapp
0
3K
Member Avatar for jackmaverick1

I've got a little inventory management system going, and it searches for products by name. It also loads old data from a file on the hard disk. For whatever reason, when it loads the name, it doesn't accept the name that it displays in the save/buy functions. If that doesn't …

Member Avatar for jackmaverick1
0
145