- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 10
- Posts with Upvotes
- 10
- Upvoting Members
- 9
- Downvotes Received
- 11
- Posts with Downvotes
- 7
- Downvoting Members
- 8
School
- Interests
- Playing music, Vidya gayms, and programming =D
- PC Specs
- Enthusiasts gaming comp I built. To long to list
Re:
You put a ^ to say something about the user above you,a < to say something about yourself and a V to say something about who will post below you! ok here goes... ^Nobody.... <Feels left out,but hopes people will play! V will you play? |
|
The question is in the title. Rather then making a call to the OS, is there a more efficient way to do this? Thanks Edit: Just though of something else to. Does Sleep(2000); make a call to the OS as well? If so is there another way to do this … |
|
Re:
ask a question that is answerable by yes/no, then the next poster will then ask another question. Are you sleepy right now?:?: |
|
Re:
[URL="http://www.cleverbot.com/"]http://www.cleverbot.com/[/URL] Here's a fun and interesting site I found, I'm curious to know how exactly it 'learns' from the user. This is how my chat went :D[QUOTE]User: How are you? Cleverbot: Quite good, thank you. How are you? User: I am terrible. Cleverbot: Why is that? User: Because you hate … |
|
Do people who use these API's even know how to program? Ive never used XNA before, but it seems like the average Joe can download it, copy past from some tutorials and make some triple A game title. It kinda pisses me off. If anyone here begs to differ, let … |
|
super annoyed by that friggen HostWay add up top? Whenever you move your mouse over it, it drops down and fills your entire screen. Hard to avoid not hitting it with the mouse =(. NEW AD PLEASE! |
|
[code] #include <iostream> using namespace std; template <typename T> T total(T numValues) { } int main() { cin.ignore(); cin.get(); return 0; } [/code] Write a template for a function called total. The function should keep a running total of values entered by the user, then return the total. The argument … |
|
[code] void NewCustInfo(CustData &cust) { cout << "Customer Name: "; getline(cin, cust.name); } [/code] CustData is a structure that is declared, and the name data member of that struct is of type string. For some reason when I call this function(there are no compile errors), it displays the cout statement, … |
|
Why are you able to declare them using the class keyword or typename keyword? Is there absolutley no difference? Thanks |
|
Re:
Hello, I'm trying to print out on the screen the the sum of a perfect number, and i can't quite figure it out how to code it. For example I now 6 is a perfect number so i need [ 6= 1+2+3 ] to print out on the screen. Any … |
|
Re:
Hello, I got a problem. Whenever I use rand() and I rerun the source I get the same results each time do u know whats wrong? |
|
Re:
[I]<<thread split>>[/I] Who exactly? The OP left the forum 4 YEARS ago. And there the thread lay, nice and quiet until a day ago. |
|
[url]http://en.wikipedia.org/wiki/Brainfuck[/url] Interesting. One day once I figure out c++, I might give this a whirl! |
|
Re:
I NEED HELP WITH THIS ASSIGNMENT. I HAD THE WHOLE ASSIGNMENT DONE AND MY COMPUTER CRASHED AND LOST EVERYTHING. THE ASSIGNMENT IS DUE BY SUNDAY AT ANYTIME. I KNOW PEOPLE DONT LIKE IT WHEN YOU ASK FOR SOMEONE TO DO IT FOR THEM BUT IM NOT ASKING THAT I JUST … |
|
[code] void encrypt::transform() { int length = 0; char *buffer; char ch = ' '; int i = 0; fileEncrypt.open("filter.txt", ios::in | ios::beg); fileEncrypt.seekg(0, ios::end); length = fileEncrypt.tellg(); fileEncrypt.seekg(0, ios::beg); buffer = new char [length]; fileEncrypt >> ch; while(!fileEncrypt.eof()) { buffer[i] = ch; i++; fileEncrypt >> ch; } for(int j … |
|
I was just in class, learning about STL and class templates. My teacher said you cannot split the class declaration and the function definitions into the normal header/cpp file like you can with non template classes. Is this true, and if so why? I assume it would have somthing to … |
|
Re:
I need to use this to make a program to find the prime factorization of a number, please help me get started. input a value to factor while input value > 1 let leftToFactor = input value let factor = 2 while factor <= leftToFactor while factor divides leftToFactor (i.e. … |
|
[code] #ifndef BASE_H #define BASE_H class base { public: base(); struct baseInfo { int SlotCount[4]; }; private: protected: }; base::base() { } #endif [/code] This is my header file, but how do I access the struct and its members through an object of the base class(through main)? I cant find … |
|
Is there a way to use toUpper with a string, or do you have to loop it through an array of chars? Ive been googling everywhere, but havent really found any examples on how to properly use it. Thanks |
|
Re:
I don't know anything about programming but I would like to figure out how to program this idea I had for calculating prime numbers. I know that this looks a little bit jumbled, but logically it should work. My basic idea is that the square root of the first number … |
|
Re:
Hi guys, I have to write a program with a class that will take the number of the day in a year and display the month and day of that number. I'm stuck from the start. Can anyone give me a start that I can run with. I also need … |
|
Is there another reason besides having a clean, easy to read source file then to use overloaded functions? Thanks |
|
[code] #include <iostream> using namespace std; int main() { double var1 = 0; var1 = 2/10; cin.ignore(); cin.get(); return 0; } [/code] Its not setting var1 to .2 it is keeping it at 0. wth? it does 10/2 = 5, but then it does 2/10 = 0. |
|
MessageBox(NULL, (LPCTSTR)"Test1", (LPCTSTR)"Test1", MB_OK); This code is popping up the window correctly, but it displays all squares. Whats wrong =( |
|
Do any of you guys know if Winsock is a popular API that is used for companies hiring programmers? Thanks |
|
[code] #include <iostream> using namespace std; class A { private: int a; }; A::A() { a = 10; } int main() { A obj1; cin.ignore(); cin.get(); } [/code] It is giving me the error Error 1 error C2600: 'A::A' : cannot define a compiler-generated special member function (must be declared … |
|
This is an assignment for my c++ class im taking. [code] #include <iostream> #include <fstream> using namespace std; const int NAMESIZE = 50, DATE = 25; struct inven { char name[NAMESIZE]; int qnty; double wholeCost; double retailCost; char date[DATE]; }; void displayMenu(); void addRecord(fstream &); void displayRecord(fstream &); void modifyRecord(fstream … |
|
Re:
So today I was driving my car to work and I see an old man fall of his bicycle. Thinking that he might have a heartattack or something I quickly pulled over the car to help him. I had to jump a small ditch to get to him. When I … |
|
Is this API striclty for 3d applications including sound and modeling etc.... or can you program windows forms as well? Just wondering |