thanks that was quite helpful
Type: Posts; User: neoragexxx
thanks that was quite helpful
Does anyone know of an ftp open source client with 128bit or 256bit encryption ?
ok from what i see it you are missing parts of the array ...
so you read array[0][0] till array[7][7] the first loop
then you start again from array[8][8] to array[15][15] etc..
but what...
i must get some rest... the one in the class isn't really the prototype..
I just realized that .. so i must include the real prototype outside the class.
thanks m8, it's just that my head is not...
post edited and the includes are fine ! :)
I posted the wrong code before sorry :) i was missing a #include <fstream>
i am a bit sleepy now but i gotta hand in the program tomorrow and the only thing left was splitting the files !
i get...
thanks man , that's exactly what i needed !! *sm00tch*
the -1 was just there to tell me if there is no such position in the vector yet because it's the user that gives the position in my normal program.
So all the difference from what i did is & ...
Hey man this part of the code is wrong ...
i and j have out of boundary values after the for loop...
you ask the user to give softDrinkCode[3][2] which is a logic mistake..
cout <<...
excuse my n00bness but what is thenumber .. ?
my bad i just wrote the code quickly here,
i want fifolist[list_position]=6; to replace the element at the list position with 6 and i don't want to use the declaration list fifo ;.
I know you can create a list simply with the type list provided by c++ but i need to do a list by using a vector. I think what i am asking is possible but i have no idea how to do it ..
so far i...
you were right ! that STL Guide is very useful, i will consult it from time to time. I also find out that i can do
doublevector.erase(newend, doublevector.end());
which is actually...
wow i am stunned i didn^t know you could do that in c++ ... !
doublevector.erase(
std::remove_if(
doublevector.begin(),
doublevector.end(),
std::bind2nd(IsApprox(), 5.67)),...
why of course not... if i remove an element and i can access it later what is the use of it... ?
and you get kinda lost on the site you gave me..
maybe someone else has used remove()...
yeah but then remove() is useless ?
Ok obviously remove() works but my problem is that the vector seems to occupy the same memory as before after remove ..
for some weird reason doublevector.end() doesn't change after remove()...
...
yeah but replace()
with double works...
I've included <algorithm>...
void operator-(double number){
remove(doublevector.begin(), doublevector.end(), number);
}
normally it should remove all elements that are equal to the...
you are right i had to put both ofstream and string declaration outside the switch statement to work...i guess the solution with the brackets is better but at least now i know what was wrong :)
...
I get this error without the brackets... I get it even if i declare the string outside the switch..
main.cpp: In function ‘int main(int, char**)’:
main.cpp:370: error: jump to case label...
great, another thing is from what i know you can declare variables anywhere you want in c++ but i get a compile error when i try ..
e.g :
int main(){
int choice=0;
cout<<"Give a number...
Well let's say i have :
#include <iostream>
#include <fstream>
#include <string>
int main(){
a friend told me that cin.get() had a pointer as parameter...
but i tested it now and you are right .. next time i'll check before asking.. ;)
well is there a similar function in c++ ?
instead of getchar() in C i wanna use a similar function for c++ .
and how can i read the buffer from cin .. ?
(i know i can clear it with...