General C++ Programming - May 2013 (Page 32)

problem with using the tea algorithm methods from wiki
 
i have been trying to call out the tea algorithm from wikipedia. However i keep getting a segmentation fault. May i know what is wrong with my code? Am i calli...
[2 replies] Last: ok thanks man! I solved it, its kind of a silly error. Thanks for you... (by CLearner88)
Tic Tac Toe Help
 
Hello, I am trying to revise my code, however, I am unsure of what to do for these last two things. First, how can I get my program to represent the board wi...
[no replies]
by Shala
Program that eliminates whitespaces
 
im trying to write a program for class that when it reads it, it corrects all the spacing and capitalization. so for example, the phrase "the quick bRown fox...
[3 replies] Last: syntax: #include <iostream> #include <string> using namespace std; ... (by Shala)
trouble with pointers
 
Hi, Ive got a struct called Node that contains, among other things, a pointer to a vector of pgm objects. (pgm is a class i've created) struct Node { int lab...
[2 replies] Last: Thanks mate, I need to do more coding, I should have picked that up. (by Crakrjack)
by Nonlin
Make a counter that increments slowly and show it in one place.?
 
The best I could come up with is this. while(true){ wisdomCnt++; _stprintf_s(szBuffer, _T("%i"), wisdomCnt/10000); TextOut(hdc,120,10,szBuffer, _tcslen(s...
[6 replies] Last: SWEET IT WORKS GUYS! Thanks for sending me in the right direction. All... (by Nonlin)
Nested class trouble
 
The trouble seems to be with my ++ operator, I'm not sure I'm doing the definition right #include <cstdlib> template <typename T> class List { struc...
[6 replies] Last: But one needn't stuff the definition of the operator in the class defi... (by cire)
I Need Help with Main.cpp in C++
 
Its been a awhile since I Used C++. I have the header file and the class.cpp but i lost the main.cpp that I used to run the program and I cant remember it.I was...
[1 reply] : http://www.cplusplus.com/articles/z13hAqkS/ (by Bourgond Aries)
Can someone please explain to me how the operators >> and << work?
 
It is very unclear on every explanation I have seen. People always say something like, it shifts the raw bits, as if that makes and sense. http://msdn.micros...
[4 replies] Last: The idea is that you can "overload" an operator for your own data type... (by Duthomhas)
Reading Random lines from a text file
 
Hi, Would someone please tell me how to read random lines from a text file using "C", without repeating same lines.
[10 replies] Last: I've written the code. http://libraryofcprograms.blogspot.com/2013/05/... (by Rehan FASTian)
Statistics pack?
 
Hi, is anyone aware of any GOOD statistics packs/libraries in c++? If possible, I would need them to be QUICK, as I have a lot of data, and don't want gen...
[7 replies] Last: well, I don't like the ideas at stackoverflow that much, as they usual... (by hansaaa)
Std Deviation and mean help with program
 
How do I put std dev and mean funtions in this problem? I need to put this into my program: double mean(double x , int n); double stddev(double x , int n);...
[1 reply] : http://www.cplusplus.com/forum/articles/42672/ (by Bourgond Aries)
help with errors
 
Can someone check this code out and help me fix the errors. I'm pretty rusty at this and cannot figure it out Thanks #include <iostream> #include <ioman...
[4 replies] Last: The errors are caused by incorrect placement of braces. For example th... (by Fransje)
Multithreading - Simple std::thread::join() class
 
class thread_guard { std::thread& t; public: explicit thread_guard(std::thread& t_): t(t_) {} ~thread_guard() { if(t.joinable()) { t.join(); } ...
[3 replies] Last: Cubbi, thanks for the answer. I will try that! Bourgond Aries, the (... (by NorFredrik)
quick question on what's being printed
 
Hopefully you can help me. So I know the answer is 1 and 2, but I am not fully understanding the main() section. What if I changed A* to B*, would I go to class...
[2 replies] Last: In your program, B is derived from A, which means that all Bs are As, ... (by doug4)
Help with Blackjack Program
 
I have no idea where to begin but I need it started with JUST these codes. Please help thanks Enter the following source, which will set up the 2D array and...
[2 replies] Last: Not sure how detailed you want to be with this code because you haven'... (by Smac89)
by shaw7y
A find program
 
So I have to do this : Write a program find, which searches the files and prints all lines of these files containing a given word. The program is invoked wi...
[14 replies] Last: http://lmgtfy.com/?q=c%2B%2B+command+line+arguments (by SamuelAdams)
ERROR IN THE CODE AND CORRECTIONS
 
can any one tell me the error in the code......and its soln....... #include<iostream.h> #include<conio.h> #include<stdio.h> struct BATSMAN { cha...
[1 reply] : #include<iostream.h> //.h versions of headers are deprecated and sho... (by MiiNiPaa)
undefined reference to member function()
 
Whenever I compile my program, I get these list of errors: main.cpp:23: undefined reference to `Map<int, int>::Map()' main.cpp:24: undefined reference to `Map<...
[12 replies] Last: By default, in an IDE, a source file is a .CPP file, and a header file... (by S G H)
by aruna
Errors in inheritance program..!!!
 
Can someone please help me in the code for inheritance. I have created a base class Instrument deriving Wind,Percussion as derived classes with function play()...
[6 replies] Last: okk will try again..!!! (by aruna)
by Pludge
Bubblesort and print out help
 
Hi. SO i have most of the code for this program which is supposed to sort ascending and descending. However, when I enter the numbers, just as the program is su...
[no replies]
May 2013 Pages: 1... 3031323334... 47
  Archived months: [apr2013] [jun2013]

This is an archived page. To post a new message, go to the current page.