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
~3K People Reached
Favorite Forums
Favorite Tags
c++ x 24
Member Avatar for alcoheca

Hi, I have this issue with a J# project I need to complete for uni. [CODE=java]public class Sprite { private Image m_image; public Sprite(Image image) { m_image = image; } public int getWidth() { return m_image.get_Width(); } public int getHeight() { return m_image.get_Height(); } public void draw(Graphics g, int x, …

Member Avatar for alcoheca
0
176
Member Avatar for alcoheca

Hi, I am storing strings in '|' delimited format in a text file. Each new line represents a new record. for instance [CODE]|Name|Age|Favcolour| |Name2|Age2|Favcolour2|[/CODE] I'm using a string vector to hold the tokens as they're pulled from the ifstream, However if one of the fields has not been filled in …

Member Avatar for alcoheca
0
91
Member Avatar for alcoheca

Hi, Firstly, this is Win32 console related, otherwise I'd be reading up on the ncurses library.. My program is updating name:value pairs like [B]Name:John[/B] I wish to use WriteConsoleInput to inject the current value into the inputstream so that the user can edit the characters rather than start again. this …

Member Avatar for alcoheca
0
789
Member Avatar for toko

i got a new laptop, and when i try to run dev-c++ nothing happens and i am forced to shut the .exe down using task manager. I've tried running it under administrator but nothing seems to help. It installs fine but when i try running it it crashes. If anyone …

Member Avatar for yagiD
0
123
Member Avatar for alcoheca

Hi, Despite triple checking my code for duplication and checking that the headers include #ifndef I still can't trace what is causing this error message: drawscr.o(.bss+0x0):drawscr.cpp: multiple definition of `massage' main.o(.bss+0x0):main.cpp: first defined here Ideally I'd create the pointer at struct definition time via a declarator. [CODE=C]// drawscr.cpp #include <iostream> …

Member Avatar for Duoas
0
283
Member Avatar for alcoheca

Hi, me again! I wish to tidy up strings from user input. I have done a bit of research and have most of this working except the tricky bit - converting all/any whitespace between words to 1 ' ' char. For instance, using hyphen to represent spaces.. ---John-----MacDonald- should end …

Member Avatar for alcoheca
0
114
Member Avatar for alcoheca

hi, I'm checking a date is valid as it's typed in, however I always want to allow the user to skip with a CR. The while condition is causing my program to crash when [B]str_date.length()==0[/B] (I think) here's my code: [CODE=c++] struct Date { int d; int m; int y; …

Member Avatar for Narue
0
257
Member Avatar for alcoheca

Hi I wish to break up a date entered as a string into [B]int[/B]s for day, month, year. String to be entered follows this convention DDMMYYYY - this will be checked so we can presume it's suitable. I have it working using tempary variables, but is there a way to …

Member Avatar for Nick Evan
0
847