Is there a way to have searched through a text file like:
char line[256];
ifstream afile("c:\somefile.txt");
afile.getline(line, 255, '\n');
and assume that the first line of the text file was:
256.4223
That would mean that line[0] is = 2, [1] = 5 etc....
now lets say I have a...
I have loaded an Object that uses a method written in
C++ that looks like this:
functionname(int *Name, float *name2, float *name3 etc...)
Now, when i call for this function, I cant just write:
Object.functionname(Var, Var, Var etc...)
This gives me a type mismatch.
I assume this is...
I am relatively new to VC. I was wondering how to add new library files (i.e. the directx .lib's) so that i don't get those errors like, "function FUNCTION does not exist" even though they do exist.
Did I say that right?
-RSTR benthecat@hotmail.com
I have seen this written in a class before:
constructor(): int1(0), int2(0), int3(0), etc(0) {}
could someone explain the part starting with the colon?
-RSTR
benthecat@hotmail.com
I was wondering if it was possible to return a char array from a class function.
I have tried :
char Function(){return string;}
but, of course, that doesn't work. So how do I get it to work? benthecat@hotmail.com
Could someone please tell me what this means?:
error C2040: 'Status' : 'int (void)' differs in levels of indirection from 'int'
Thankyou
-RSTR
benthecat@hotmail.com
I am having some trouble using randomize.
I believe that the function is located in stdlib.h
In turbo c++, I have this written:
#include <iostream.h>
#include <stdlib.h>
int main()
{
int x;
randomize();
x = random (100);
cout << x;
return 0;
}
This works fine in Turbo C++...
I'm creating a program that works fine in long integer.
however, after 16 , the output becomes too big for long integer.
I tried switching to float or double, but during run time I get a stack underflow error.
can someone tell me how to fix this?
rstr@spacemail.com
I have this code written:
private_sub cmdback()
text1.text = info + chr(0)
end sub
This deletes one character, but when the button is clicked
again, it deletes nothing.
what am I supposed to do that will make a backspace work all of the time?
-RSTR
rstr@spacemail.com
I am under the assumption that DSL modems require DSL servers to operate correctly..<br><br>My question:<br>Will a DSL modem support regular modem connections, from a regular ISP?<br> <p> <br><a href=mailto:rstr@spacemail.com>rstr@spacemail.com</a><br><a href= > </a><br>
I have code written to open a text file and feed it into a text box... <br><br>However, I cannot get a new line to return and start a new line <br><br>for example:<br><br><br><br>line 1....<br>line 2....<br>line 3...<br><br>turns out looking like:<br>line1.... line2.... line3.....<br><br><br>How...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.