Search Results

Showing results 1 to 36 of 36
Search took 0.01 seconds.
Search: Posts Made By: Freaky_Chris ; Forum: C++ and child forums
Forum: C++ Feb 8th, 2009
Replies: 3
Views: 230
Posted By Freaky_Chris
#include<iostream>

using namespace std;

int main(int argc, char** argv){

int num, i;
char** a;

cout<< "how many strings? ";
Forum: C++ Feb 5th, 2009
Replies: 4
Views: 299
Posted By Freaky_Chris
encryptedLine += (line.at(pos) + password.at(pos2));

if (pos2 > password.size()) {
pos2 = 0;
}You try to retreive the value at pos2 when pos2 is > than password.size() before you reset pos2 to...
Forum: C++ Feb 4th, 2009
Replies: 2
Views: 310
Posted By Freaky_Chris
A) We do not do work for you.
B) Do not use "Fakse" Signatures
C) Do not advertise
D) Read the forum rules
E) Come back after doing these with a code attempt.

Chris
Forum: C++ Feb 4th, 2009
Replies: 11
Views: 858
Posted By Freaky_Chris
if(!inClientFile)Please do not use this method, it is so wrong. You would be better using the followingif(!inClientFile.good())Chris
Forum: C++ Feb 2nd, 2009
Replies: 6
Views: 301
Posted By Freaky_Chris
Read the forum rules, read a C++ book, read previous threads, just read something!

Chris
Forum: C++ Jan 29th, 2009
Replies: 22
Views: 1,021
Posted By Freaky_Chris
So replace ".World" with ".Earth"
??

Chris
Forum: C++ Jan 28th, 2009
Replies: 4
Views: 276
Posted By Freaky_Chris
Sounds like you actually want something like this....#include <iostream>
#include <string>
#include <fstream>
#include <sstream>
#include <vector>

using namespace std;

int main(int argc,...
Forum: C++ Jan 19th, 2009
Replies: 4
Views: 2,019
Posted By Freaky_Chris
So if(result > 99999) return 0;

*mumbles about multiple exit points*

Chris
Forum: C++ Jan 19th, 2009
Replies: 9
Views: 1,241
Posted By Freaky_Chris
It should be noted that using ifstream with >> operator defaults to skipping whitespace characters, which '\n' is also included in. if you want to proccess the'\n' in a special manner then you should...
Forum: C++ Jan 19th, 2009
Replies: 5
Views: 427
Posted By Freaky_Chris
Guess what, there's only one person at this forum who is capable of getting the answer and thats YOU!

Chris
Forum: C++ Jan 18th, 2009
Replies: 3
Views: 274
Posted By Freaky_Chris
zalezog please don't add cin.get() to the end of people code snippets, they are not wrong by not using it. I would be more inclined to say you are wrong in using it.

Chris
Forum: C++ Jan 16th, 2009
Replies: 7
Views: 2,351
Posted By Freaky_Chris
#include <iostream>
#include <windows.h>

using namespace std;

int main(void){
bool updown = false;
while(1){
if(!updown){
for(int x = 0; x < 100; x++){
Forum: C++ Jan 16th, 2009
Replies: 2
Views: 207
Posted By Freaky_Chris
Have (http://www.catb.org/~esr/faqs/smart-questions.html) a (http://www.daniweb.com/forums/announcement8-2.html) nice (http://www.daniweb.com/forums/announcement8-3.html) day!...
Forum: C++ Jan 5th, 2009
Replies: 8
Views: 1,293
Posted By Freaky_Chris
can you not see the () on open? Its just you have two parameters inbetween them :P

You will need to escape that '\' characters
"C:\\programs\\fileneedschanges"
Then t shold work fine

Chris
Forum: C++ Jan 3rd, 2009
Replies: 5
Views: 340
Posted By Freaky_Chris
Forum: C++ Jan 3rd, 2009
Replies: 11
Views: 564
Posted By Freaky_Chris
thats the function prototype, it shows that the function has a return type of HWND andtakes two parameters. A HWND and an UINT. msdn then explains what each of the parameters are, it also lists all...
Forum: C++ Jan 2nd, 2009
Replies: 7
Views: 403
Posted By Freaky_Chris
Well if you store all the information into a map, then could just call the map by the name...
http://www.cplusplus.com/reference/stl/map/

Chris
Forum: C++ Jan 1st, 2009
Replies: 6
Views: 620
Posted By Freaky_Chris
I think your going to have to give more detail here...Are you using MFC? If so then a password box will automatically do this....

Again we really need more information

Chris
Forum: C++ Jan 1st, 2009
Replies: 10
Solved: Mouse Move
Views: 1,323
Posted By Freaky_Chris
You need to pass the ctrl key press with the KEYEVENTF_KEYUP flag. That way it wont *stick* so to speak.

I guess blocking input might be a bad idea since then you have no way of using the ctrl...
Forum: C++ Dec 30th, 2008
Replies: 9
Views: 560
Posted By Freaky_Chris
Follow MosaicFuneral's Advice. the reason your program is terminating is due to the fact you have a vector of type string and you are trying to push an integer into it, see the problem?

Chris
Forum: C++ Dec 20th, 2008
Replies: 3
Views: 371
Posted By Freaky_Chris
I think your missing the point. YOU haven't done ANY work....why the hell should we!

Chris
Forum: C++ Dec 17th, 2008
Replies: 4
Views: 371
Posted By Freaky_Chris
Please use code tags. These a thread related to them infact there all over the place!
Chris
Forum: C++ Dec 14th, 2008
Replies: 6
Views: 549
Posted By Freaky_Chris
Not gonna happen this is not your homework solution lounge.
It's a guidance forum!

Chris
Forum: C++ Dec 11th, 2008
Replies: 2
Views: 235
Posted By Freaky_Chris
Rather than me explaining it, i'll give you something to look at and think about. try adding the following line into your code, just inside the second foor loop
cout << "D: " << d << " B: " << b <<...
Forum: C++ Dec 11th, 2008
Replies: 11
Views: 810
Posted By Freaky_Chris
please use code tags, and avoid red text many people will be repelled by it!
define IS_STRING 1
define IS_CHARACTER 2
define IS_INTEGER 3
define IS_FLOAT 4

This is to make a it easy for you to...
Forum: C++ Dec 11th, 2008
Replies: 14
Views: 2,641
Posted By Freaky_Chris
My advice, do not use eof() it's counter productive. Instead do this.

while(getline(file, someString)){
//yourcode
}
Chris
Forum: C++ Dec 7th, 2008
Replies: 5
Views: 403
Posted By Freaky_Chris
You need to look into operators,
You may find this useful
http://www.cs.caltech.edu/courses/cs11/material/cpp/donnie/cpp-ops.html

Chris
Forum: C++ Dec 7th, 2008
Replies: 6
Views: 528
Posted By Freaky_Chris
Indeed, this statement is like a an if statment its equivelent would look something like this.

string myIF(int a){
if(a > 0){
return ", ";
}else{
return " ";
}
}
Forum: C++ Dec 6th, 2008
Replies: 2
Views: 439
Posted By Freaky_Chris
http://www.catb.org/~esr/faqs/smart-questions.html
Forum: C++ Dec 6th, 2008
Replies: 11
Solved: stacks problem
Views: 753
Posted By Freaky_Chris
Thats because the stack will be empty so you need to check stack.isEmptyStack(), if its empty break out because its unbalanced, if its not empty continue on and check.

Chris
Forum: C++ Dec 3rd, 2008
Replies: 7
Views: 548
Posted By Freaky_Chris
I'm not too sure (http://www.letmegooglethatforyou.com/?q=Bottom-Up+Merge+Sort)

Chris
Forum: C++ Nov 27th, 2008
Replies: 6
Views: 694
Posted By Freaky_Chris
As an extention to this assumption, i want to add the following. Indeed the ascii Value '1' has the numerical value 49. Thus we are given a way to convert a character to its numerical value, by...
Forum: C++ Nov 1st, 2008
Replies: 2
Views: 504
Posted By Freaky_Chris
Read the file line by line, split it into tokens based on spaces, then convert the number token into a double from a string.

You may want to look at.

getline()
strtok()
strtod()

Hope that...
Forum: C++ Oct 22nd, 2008
Replies: 2
Solved: factorial
Views: 417
Posted By Freaky_Chris
No there isn't and again no.
You would have to write your own. Search the forums its a VERY popular question.

It will turn up alot of material for you to look at, including recursive and...
Forum: C++ Oct 22nd, 2008
Replies: 3
Views: 395
Posted By Freaky_Chris
Just to summerise incase you don't bother reading, which wouldn't supprise me.

1) We do NOT do homework
2) We WILL help if YOU provide proof of attempts
3) Show where you are stuck
4) Provide...
Forum: C++ Oct 22nd, 2008
Replies: 7
Views: 1,116
Posted By Freaky_Chris
Your using C syntax in a C++ forum....

Also use please

@OP
rounding it off can be done by adding 0.0005 etc which which ever number of zero's it requires

Chris
Showing results 1 to 36 of 36

 


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

©2003 - 2009 DaniWeb® LLC