Search Results

Showing results 1 to 40 of 62
Search took 0.02 seconds.
Search: Posts Made By: Acidburn ; Forum: C and child forums
Forum: C Jan 4th, 2008
Replies: 3
Views: 795
Posted By Acidburn
Hello there,

is there a way to convert a char[2] = '1', '2' kinda thing to an int ?
Forum: C Jan 3rd, 2008
Replies: 3
Views: 914
Posted By Acidburn
whats wrong with the following code??

int j[100] = {0};
int i = 0;
for ( ; i < 10; i++ ) {
puts( j[i]);
}


it keeps giving the warning
Forum: C Jun 15th, 2006
Replies: 1
Views: 854
Posted By Acidburn
Hello is there any windows graphics programmers that can help with a problem?
Forum: C May 4th, 2006
Replies: 2
Views: 2,984
Posted By Acidburn
I think so, but I'm not sure how to fix it, it would appear that when i delete an object from the list, it gets deleted, but if i click pervious that works but then if i delete that and click 'next'...
Forum: C May 4th, 2006
Replies: 2
Views: 2,984
Posted By Acidburn
Hello guys i keep getting a



However according to MSDN the code is right:


void CTemp::OnDelete()
{
// TODO: Add your control notification handler code here
Forum: C Apr 29th, 2006
Replies: 3
Views: 1,084
Posted By Acidburn
where would that code go?

I didnt use a wizard instead i built the button using the Toolbox. The button is called .. 'IDC_Pervious' I've attched an event handler to the button which is resonpsible...
Forum: C Apr 29th, 2006
Replies: 3
Views: 1,084
Posted By Acidburn
Hello guys

I've got a general question about a Button on a form... ' <<Backward' the function for this button is to go through the CList and display the contenets at that position in the screen....
Forum: C Apr 28th, 2006
Replies: 2
Views: 2,089
Posted By Acidburn
How can i display a dialog window with adding a class to it and using the following to invoke it:

CClasX dlg(this);
dlg.DoModal();

I know you can do it without a class but im not sure how. ...
Forum: C Apr 27th, 2006
Replies: 0
Views: 1,209
Posted By Acidburn
Hello can anyone explain the following bugs:



All I've done is taken my class and added the following:

Class CBook : public CObject

and added the following line to the header file:
Forum: C Apr 26th, 2006
Replies: 1
Views: 2,038
Posted By Acidburn
MFC program seems to always report the following error when I click the 'OK' button to exit the program:

Run-Time check failure #2 - stack around the varible 'dlg' was currupted

Can anyone...
Forum: C Feb 18th, 2006
Replies: 4
Views: 2,127
Posted By Acidburn
Hello,

I'm wanting to know whats in the string and where: I've got this code


string s1="HelloWorld";

if(s1[5] = "W")
Forum: C Feb 11th, 2006
Replies: 1
Views: 1,111
Posted By Acidburn
Hello, the code is quite big so I'm hoping someone can help based on the errors reported:



Any suggestions?
Forum: C Feb 10th, 2006
Replies: 2
Views: 2,863
Posted By Acidburn
Hello guys.

I've got a query which is most likey really simple. I've got an array of char's thats :

char temp[10] = "abcd";

I'm wondering why I can't put these into char a;

since char a...
Forum: C Feb 8th, 2006
Replies: 3
Views: 1,152
Posted By Acidburn
can you post an example, I knew that but I'm confused of how to do it?
Forum: C Feb 8th, 2006
Replies: 3
Views: 1,152
Posted By Acidburn
Hello,

I've been asked to make my own user defined type.

when we've got this on an imput stream (a+b+c$)

the a = ID
b = ID
c= ID
Forum: C Feb 7th, 2006
Replies: 2
Views: 2,605
Posted By Acidburn
Thanks dude, its solved the problem for now :D
Forum: C Feb 7th, 2006
Replies: 2
Views: 2,605
Posted By Acidburn
Hello,

I've got this array defined as a global just to test...
char RW[100];

but its giving me grief when I try to use strcpy with it...

I'm putting since varibles and longer ones too...
Forum: C Feb 4th, 2006
Replies: 9
Views: 2,497
Posted By Acidburn
aew you trying to implement a queue?
Forum: C Dec 7th, 2005
Replies: 1
Views: 993
Posted By Acidburn
I know I've asked but I'm now faced with a different problem. The last implementation went wrong since the number of chars on a given line is u known.

ie


I've tried getting fstream and string...
Forum: C Dec 4th, 2005
Replies: 1
Views: 1,086
Posted By Acidburn
Hello,

For easy to use I've uploaded the code as a zip. Basically it compiles but everytime I push something onto the linklist, it doesnt want to go. I know this since when i get to the print...
Forum: C Nov 29th, 2005
Replies: 3
Views: 1,213
Posted By Acidburn
Could you help us through that? I've had a peek and it looks complicated
Forum: C Nov 29th, 2005
Replies: 3
Views: 1,213
Posted By Acidburn
Hello,

instead of using an array of objects I'm wanting to use an link list of objects. Could anyone point me in the directions?

One class is called:

Personal information...

The other is...
Forum: C Oct 5th, 2005
Replies: 3
Views: 1,196
Posted By Acidburn
when I try and compile it with that i get:
Forum: C Oct 5th, 2005
Replies: 3
Views: 1,196
Posted By Acidburn
Basically I've got a const string (it stays the same lenght) Only trying to implement it into OOP.

heres the constructor:

score::score(void)
{
lives = 5;
char * end =
{
"...
Forum: C Sep 14th, 2005
Replies: 2
Views: 1,075
Posted By Acidburn
Hello,

I've created a file and put datat into it, only problem is that throughout the operation of the program the file is "amended" and bits are added to the file. However I'm wonder if theres a...
Forum: C Sep 9th, 2005
Replies: 0
Solved: file io
Views: 918
Posted By Acidburn
hello, another stupid question but what is wrong with this?


infile.open("new.txt",ios::app);
if (infile.fail())
{
cerr << "Error";
exit(1);
}
Forum: C Aug 5th, 2005
Replies: 6
Views: 2,103
Posted By Acidburn
if I'm correct the & operator will print the value of the address stored at that location, rather than obtain the value in that memory location?

ie if a = 8; is stored in chip 1000

putting the...
Forum: C Apr 27th, 2005
Replies: 7
Views: 2,070
Posted By Acidburn
okey dokey thankyou...it fixed it but theres another byg. If I specify that i want the array to be 3 ints in lenght and enter 3 ints and pop them its fine. Its only when I enter 5 for the size and in...
Forum: C Apr 26th, 2005
Replies: 7
Views: 2,070
Posted By Acidburn
ok so the return statement is wrong... umm I'm totally lost as to what it should be... it should be the array location but the element stored there... how'd do I get about getting that?
Forum: C Apr 26th, 2005
Replies: 7
Views: 2,070
Posted By Acidburn
Thanks for the reply, however changing -1 to 0 didnt make much difference, apart from now when i tell its a size for '3' and input for example ...'1 2 3 ' i get : '5 4 3 ' as output! When it should...
Forum: C Apr 26th, 2005
Replies: 7
Views: 2,070
Posted By Acidburn
Hello, our tutor set us a task to do , which was make a vector out of a class. So I've implemented a basic one but it doesnt work well... its runs ect ... but when you re print the entered elements...
Forum: C Apr 20th, 2005
Replies: 4
Views: 2,054
Posted By Acidburn
i works doing that, can you explain why you need '{}' for destrutors and not for the others?
Forum: C Apr 20th, 2005
Replies: 4
Views: 2,054
Posted By Acidburn
heres the base class:



class Shape
{
public:
Shape(int,int) ;
Shape () ;
virtual ~Shape() =0;
Forum: C Apr 20th, 2005
Replies: 4
Views: 2,054
Posted By Acidburn
I've got a program which works but when I try to implement a destructor in the base call and make it a virtual pure function it doesnt want to work with the rest of the system ...



Any ideas?
Forum: C Apr 4th, 2005
Replies: 14
Views: 2,869
Posted By Acidburn
you didnt tell us how you want the array sorting! Perhaps highest value to lowest if its int?
Forum: C Apr 4th, 2005
Replies: 14
Views: 2,869
Posted By Acidburn
how do you wish to sort it?
Forum: C Apr 4th, 2005
Replies: 5
Views: 4,228
Posted By Acidburn
in c++? is the syntax the same or different?
Forum: C Apr 2nd, 2005
Replies: 2
Views: 1,565
Posted By Acidburn
so, first off you'd need to check if the number is negitive then , after that you decide what to do next. I'd do the dashe's with a for loop.
Forum: C Mar 30th, 2005
Replies: 8
Views: 2,499
Posted By Acidburn
LOL!



I wish i was there when you did it!
Forum: C Mar 28th, 2005
Replies: 3
Views: 1,306
Posted By Acidburn
Thats true, good comment ... Also thats what the forum is here for. To help others out in any way they can :)
Showing results 1 to 40 of 62

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC