-
Replied To a Post in Getting length of an unknown file for an array
Can you be a little clearer about what you want to achieve. Are you looking into reading an entire file and check how many times a character appears in the … -
Replied To a Post in mouse click event ?
Its everywhere... do a little searching ok? we are not here to work for you. just do yourself a little googling. -
Replied To a Post in I need a simple program to perform this 2dimensional array
Your code please??? -
Replied To a Post in Looping Using Recursion
On the other hand i like the idea of recursion. Gone were the old days where the bigest ram was 64mbit. Now we have better memmory and processor speed. I … -
Replied To a Post in How to put simple Sleep c++ function togetther
Nice one Deceptikon. The difftime fucntion is one of the tutorial i wanted to show. Sure its all about having fun and sharing ideas. no matter how trivial it may … -
Replied To a Post in How to put simple Sleep c++ function togetther
To Deceptikon: Yes you are right. The idea here was to give insight of how to write a sleep timing. `clock_t` is also a good idea but as you said … -
Replied To a Post in How to put simple Sleep c++ function togetther
To Decptikon .. There is no sleep function that is 100% accurate as with your extensive experience in c++ i know you have thought about this million years ago. As … -
Edited How to put simple Sleep c++ function togetther
This is a basic CPP sleep fuction. As you can see CPP libs do not come with a time sleep/wait fuction to use in your code/loop. So due to boring … -
Edited How to put simple Sleep c++ function togetther
This is a basic CPP sleep fuction. As you can see CPP libs do not come with a time sleep/wait fuction to use in your code/loop. So due to boring … -
Edited How to put simple Sleep c++ function togetther
This is a basic CPP sleep fuction. As you can see CPP libs do not come with a time sleep/wait fuction to use in your code/loop. So due to boring … -
Edited How to put simple Sleep c++ function togetther
This is a basic CPP sleep fuction. As you can see CPP libs do not come with a time sleep/wait fuction to use in your code/loop. So due to boring … -
Created How to put simple Sleep c++ function togetther
This is a basic CPP sleep fuction. As you can see CPP libs do not come with a time sleep/wait fuction to use in your code/loop. So due to boring … -
Replied To a Post in rock , paper , and scissors against the computer?
i will give you a full code for $400. Deal? -
Replied To a Post in Semi-circle detection in opencv
Show some code then. -
Replied To a Post in modulus operator
To add further information to JasonHippy's answer just do `cout<<3%5;` -
Replied To a Post in hw in c++ ..plz write the program for me
$500 in 20 minutes. Deal?? -
Replied To a Post in a guy who can hack any acoount on this earth
He must be very rich by now. -
Replied To a Post in How to do this ?
have a look at the setw() from the lib iomanip. for(int c=0;c<10;c++){ cout << std::setw(c+5)<<c<<endl; } cout <<setw(25)<<"Merry xmas "; // simple alc (10*2)+5 //out put 0 1 2 3 … -
Replied To a Post in for_each output through global function access
>Why? for doesn't even require you to write a function. Because it is robust, compact , no error prone, easy to read and efficient. Thats according to the task before … -
Replied To a Post in for_each output through global function access
The `for_each` and lambda is clearly superior in the solution of this task. plain and simple )) -
Replied To a Post in Vector Subscript out of Range
I will bet on runtime error. Something like array overflowed or Segfault. Like the Dragon said. post your error. -
Replied To a Post in Help with filling a structure from a file
line 27 `void openfile(ifstream &inFile)` but the operation of that funtion is a bit lame because the is no logic only passing the stream object only to be asked for … -
Replied To a Post in Write a simple text editor using c++
$500 in 1 day plus support even in GUI. -
Replied To a Post in Linkedlist sort
What i provided was a simple style or sorting a data. If that algorithm can be used to sort linklist without a problem. I as on about sorting style. This … -
Replied To a Post in Linkedlist sort
Just like i promised... This is the sort. #include<iostream> #include<vector> #include<algorithm> using namespace std; void bsort(vector<int> &v){ int temp,index = v.size(); while(index > 0){ if(v[index] > v[index-1]){ temp= v[index]; v[index]= … -
Replied To a Post in Linkedlist sort
This is not a working code. Sure but this example will sort for sure. Once ii get home, i will post a working code about this style here. -
Replied To a Post in Linkedlist sort
You are doing everything wrong according to me. Sorting is very simple once you understand how its done. Take a pencil and a paper and make a sketch. you need … -
Replied To a Post in for_each output through global function access
This is done simply with the for_each loop plus lammbda. #include<iostream> #include<vector> #include<algorithm> using namespace std; int main() { vector <int> vec ={1,2,3,4,5}; for_each(vec.begin(), vec.end(),[](int &c){ cout << c+2 <<endl;}); … -
Replied To a Post in c++ progrms anwers for univ
I have the code ready... Let me know when you need it so i can post it here for you ok? Read the FAQ's first anyway ok? -
Replied To a Post in friend operator - help!!
declare the operator inside the class. Then use bool Myclass::operator<() -
Replied To a Post in Development Software
Are you asking about IDE's or what? -
Replied To a Post in go to working
Also goto is legal in c++, its not a good practice to use it at all. Debuging and teamworking will be a hell for both parties. Its one big comand … -
Replied To a Post in Trying to get file size and inputing it on a int stack
Dragon my answer was about not reading the file as they have done. I clearly stated that i will not recommend that. )) -
Replied To a Post in Trying to get file size and inputing it on a int stack
Read the entire file to a string and use string lenght function. This entirely depends on the size of the file. Just another way. How ever you can know the … -
Replied To a Post in map using lots of memory and long run time
Can you even post your code and error? Show some relationship with your claim ok?. -
Replied To a Post in Insertion sort on singly link list
for insrtion sort. you need to go like this. psuedo. void insertSorted( person *p){ //takes the node pointer person person * newNode =p; // person * curr = 0; // … -
Replied To a Post in help with iterator & array
Are you guessing? Check the op's code before you comment. goto line 12-16. What do you see?... Also you provided nothing new and no solution to the op. Check first. … -
Replied To a Post in Data Structures ArrayList
I will use associative array or any think like a hash. read in the string and insert it into the object. pseudo user dataType<string,int> foo; string data; getline(cin,data); loop through; … -
Replied To a Post in help me
50 bucks... deal? -
Replied To a Post in help with iterator & array
Take of the code from line 12-16 and use this dont forgrt to include the algorithm lib `for_each(ptrList.begin(),ptrList.end(),[](int *c){ cout << *c-1;});` -
Replied To a Post in Program C++
I got a nice class just for that. Very easy. -
Replied To a Post in map container - template value and key
So whats is your question?? I smell homework. That code was from from your instructor for you to update. what is your question....? -
Replied To a Post in Please Help!! I have to do this program in C + + Object Class Patient Feet
Are you for real..? -
Replied To a Post in How do you find the length of an integer array in c++?
Next time show some code ok? `int foo = sizeof(array)/sizeof(int);` -
Replied To a Post in Adding a player class in BlueJ
Yes you did -
Replied To a Post in Adding a player class in BlueJ
Mate you miss the road. This is not java but CPP pot. Get out.... -
Replied To a Post in Stacks Question from a file
on number 74, we dont read data like that. it must be `cin>> filename` Also this is purely a homework that you have not touched. Its partially given by your … -
Replied To a Post in recursive function
And your code? -
Replied To a Post in HELP!!!
you can use assert to verify the datatype entered if its a type int or char then make your decision. Very handy . -
Replied To a Post in bitwise operator
Whats is your error and also what do you intend to achieve with your code. Give more information next time you ask for a help. We cant read your mind.
The End.