-
Replied To a Post in array sorting where you input values from a file,sort it and save the sorte
??? -
Replied To a Post in help
So what part are you having a problem with? We will not do your homework for you. Just posting the assignment without anything else is not the way things work … -
Replied To a Post in why doesn't the unsigned long long work?
You would need some sort of arbitrary precision library. [The GNU MP Bignum Library](https://gmplib.org/) is pretty good. -
Replied To a Post in when to usee c++ over java?
Yes Java is multi-platform but that can misleading as well. Different java runtimes can produce different behavior. If you use something from a newer version of Java it might not … -
Replied To a Post in Reading a file into Qt
What do you mean by they didn't work? You should be able to compile the following program on any standard compliant compiler. #include <iostream> #include <string> int main() { std::string … -
Replied To a Post in how to get the middle word of string?
Nevermind. Deceptikon you beat me to it. I will say that you can make this work for sentences with more then 3 words using stringstreams and a vector. -
Replied To a Post in Could you help me with my c++ assignment plz?
So what do you have so far? This site is not about giving it is about helping. If you put in the effort we will **help** you. **help** does not … -
Replied To a Post in recursive cin function
Ashley I would rewrite your last post as void copy() { string x; // do I still have input? if (cin >> x) { cout << x << endl copy(); … -
Replied To a Post in How to Fix These Errors
`int arr_3d[4][3]` means make an array with 4 rows and three columns. On line 9 you have `{1, 2, 3, 4}`. How many columns are in that row? -
Replied To a Post in recursive queue problem
What happens if you call `peekfront()` on an empty queue? -
Replied To a Post in Loops in c++
That comes from mixing input types. Mixing `cin >>` with `getline()` will cause this. One way to stop it is to put `cin.ignore(std::numeric_limits<std::streamsize>::max(), '\n')` after every call to `cin >>`. … -
Replied To a Post in C++ program that reads such distance as centimeters
What do you have so far. We will not do your work for you. Converting centimeters to meters and kilometers is a pretty simple process. I will give you a … -
Replied To a Post in Reading and Checking Unusual Characters
If you are going to use either wchar_t or wstring then you need to use wfstream for file operations. -
Replied To a Post in Reading and Checking Unusual Characters
Well ╠ is expressible by the ascii code of 204. As far as working with unicode you might want to look into the std::locale library. -
Replied To a Post in Compiler compilation
All of your code is compiled by the compiler. As far as you loop question is concerned look at this: for (int i = 0; i < 10; i++) { … -
Replied To a Post in Prime number generator in C++ Spoj Problem..Giving Runtime Error.
You need to change all of your comparisons in your loops from `<= end` to `< end`. The reason for this is if `i` or `p` equals `end` then you … -
Replied To a Post in String comparison (string manipulation) and sorting, need help
There was a thread that I participated in a few years back and maybe you will get some insight from it. It was a natural string comparison challenge by Narue. … -
Replied To a Post in how to read file in c++
Yeah I wouldn't argue at that point. -
Replied To a Post in crossing between map and its key of type set
So you have a set that hold all of the line numbers a give word appears? Then you need to store all of the words in that text with thier … -
Replied To a Post in how to read file in c++
I know that. He wanted the code so I told him to give me money. It was an unresonable request like him just asking for code. -
Replied To a Post in how to read file in c++
Give me money and you have a deal -
Replied To a Post in CreateProsess problem
You could pipe the cmd text to a file and then parse that file for the information that you need. -
Replied To a Post in Assignment
Okay. Now what? -
Replied To a Post in Can't figure out what i'm missing won't compile
You are missing a return stament in your main function as well as a closing curly brace for the main function. -
Replied To a Post in Error initializing a map
@ OP if you have a compiler that supports c++11 than you can use the std::map initializer list constructor. It would change your code to loo like this void ArcherArmor::ArcherArmor_shop(){ … -
Replied To a Post in Pointers and arrays
The only way I know to make a pointer array with x values is the following. int * numbers = new int[x]; // where x equals some integer number -
Replied To a Post in Logic behing program to generate Armstrong number
>> i am bit confused about the logic to calculate number of digits in a number! What do you mean by number of didgits in a number? An armstrong number … -
Replied To a Post in Environment
??? Are you trying to ask a question? -
Replied To a Post in Logic behing program to generate Armstrong number
Okay. what do you have so far? You can take a look at [this](http://www.cs.mtu.edu/~shene/COURSES/cs201/NOTES/chap04/arms.html). -
Replied To a Post in inline function
Check this out [Click Here](http://www.parashift.com/c++-faq/inline-functions.html) -
Replied To a Post in Suggestion for Account record
What is fil3? You are oppening account.txt in `inFile.open("account.txt",ios::in);` -
Replied To a Post in segmentation fault in printing out linked list
Get rid of line 14. On the last time through your loop you will reach the end node which shouold be null. Then line 14 tries to access it and … -
Replied To a Post in short,long,typedef,const
Nice find there vmanes. -
Replied To a Post in NULL pointer - why i didnt get any errors ?
Try this and let me know If you get the second cout statement #include <iostream> using namespace std; class A { private: int _dmember; public: void func() { cout<<"Inside A!! … -
Replied To a Post in do-while triangle
No one is going to do your work for you. There is little difference in a do-while loop compared to a for loop. Yopu just have to make your own … -
Replied To a Post in Programming Lotto game 7 of 39
So what do you have? What problem are you experiencing? -
Replied To a Post in c++ finding same record
Got beat to the answer. Ignore post. -
Replied To a Post in compiler construction
So besides the fact that your code is almost complete unreadable whats your problm? -
Replied To a Post in How to put simple Sleep c++ function togetther
I actually prefer seeing `int clocks_per_ms = CLOCKS_PER_SEC / 1000;` to `int clocks_per_ms = 1000;`. It lets the person reading the code now exactly what you want to do. Also … -
Replied To a Post in Looping Using Recursion
I'll throw in my two cents as well. I am currently going to college here in the states and from what I have seen in my classes most programmers are … -
Replied To a Post in Why can't my program find the file?
Try putting the file were the .exe file resides. -
Replied To a Post in Please find and correct the error in my c++ program. "Linker Error: Undefined symbol
This is from line 023 double AreaOfTriangle This is from line 102 double AreaOfTrianglw Notice anything wrong? Also dont hijack and old thread with a new problem. Start a thread … -
Replied To a Post in error LNK2019: unresolved external symbol "private: void __thiscall CHand::
What is the full error you are getting. Just posting 400+ lines of code and a partial error message as your title generally doesnt get you very far. -
Replied To a Post in Add array Problem
In your function you need to declare a local variable to hold the sum of the array elements and then return that. You do not want to store the sum … -
Replied To a Post in White space and cin.get?
what does the input to your program look like? -
Replied To a Post in Is using functions and classes "ok" for developer organization?
How would you write code without using functions or classes? From what I know about code creation you want to compartmentalize your code as much as possible. Breaking it up … -
Marked Solved Status for Passing Values To A Thread
Hey Daniweb, I have recently started working with threads in the c++11 library. I started with a simple dispatch mechanism where I have a queue and that would get passed … -
Replied To a Post in Passing Values To A Thread
Mike thank you once again. You have given me a lot of food for thought. I will defenitley look into using `std::future` and `std::async`. -
Replied To a Post in Passing Values To A Thread
Thank you Mike. I always appreciate when you respond. I had a felling it was something along those lines. And I am using a mutex to protect the access to … -
Created Passing Values To A Thread
Hey Daniweb, I have recently started working with threads in the c++11 library. I started with a simple dispatch mechanism where I have a queue and that would get passed …
The End.