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

Flesch bool
 
So I'm trying to write a program that counts the number of syllables, words, and sentences in a txt.file or any given input using boolean functions. I'm stuck o...
[3 replies] Last: There is just a warning there because if none of your if/else if state... (by Hippogriff)
how would I mathematically check for a 3D point inside a volume?
 
In 2D I checked to see if a point was inside a shape by creating triangles between 2 neighbouring points and the centre of the object, then checking the angle t...
[8 replies] Last: http://www.google.com/search?q=Sutherland-Hodgman+algorithm (by toum)
by bobr
Please help with this code (second part of code is in comments bellow)
 
can someone help me fine tune this code a little more!? this code converts units and uses pass by ref but I need help refining it! #include <iostream> #inc...
[1 reply] : void weight_to_us(ConversionType conversion) { int kilograms,... (by bobr)
by yollo
Problems with saved matrices
 
Hello. I have this function: void GemFil2(double A4 ,double A8 ) { int j,i; ofstream UdFil; UdFil.open("OrtMat48.txt"); UdFil<<4<<"...
[no replies]
by bobr
Please Help
 
I am new to programing and I am in my first programing class. My teacher recently spoke about what he called the big 3. THE BIG 3: overloaded Assignment operato...
[4 replies] Last: " The Big Three ", or more commonly known as " The Rule of Three ", is... (by closed account zb0S216C)
by bobr
Pass by Reference HELP PLEASE
 
Okay so in the code bellow I was suppose to use pass by reference though this was not listed in the directions I was given.....could someone please show me how ...
[6 replies] Last: Thanks for your help coolio! (by bobr)
by CroCo
Reading data from a file?
 
I'm trying to send data from a file ( line by line ) over the Internet. This file has numbers. Each line has three double numbers. Example: 1.0020 -2.033 1.0...
[no replies]
Can someone help me with this?
 
So i got this for homework. I need to create a class vector as a template and define operations on vectors. And this is what I made.Can someone check it a...
[6 replies] Last: np xD (by Anmol444)
I need help!!
 
So i got this for homework. I need to create a class vector as a template and define operations on vectors. And this is what I made.Can someone check it a...
[2 replies] Last: the best one is return 1; in main() (by Chriscpp)
CSimpleString Class
 
This is the class: // Soln8_02.cpp #include <iostream> // For stream input/output #include <cstring> using std::cout; using std::end...
[8 replies] Last: Oh yea I forgot they start at 0, thanks! (by Anmol444)
windows search engine
 
hello can any body tell me how windows search engine works?what type of data structure is used in WSE?and what is the time complexity of WSE? kindly reply me as...
[3 replies] Last: Dear calculator , info about data structures, algorithms and techniqu... (by MiiNiPaa)
by cerlmc
Need help with Tax project
 
c++ federal income tax must be withheld from the employee's gross pay. for this project, federal income tax is 10% of gross pay for the first $1000, 15% on the ...
[3 replies] Last: @tfityo to post You can try something like it: will not help ;) (by Chriscpp)
Couple Questions! (1,2)
 
Does ios stand for Input/Output Supervisor? Also in this code cout << std::setiosflags(std::ios::left); Does that mean that ios is a namespace insid...
[29 replies] Last: I did look it up and figured out what it did and I knew what the bitsh... (by Anmol444)
by Jace
Text Adventure issue
 
I am working on a text adventure right now, and it's pretty good if I do say so myself. But right now there is one big issue that continues to vex me. Help woul...
[5 replies] Last: I'm pretty sure your program will go through the if/else statements fi... (by Daleth)
Resetiosflags and Setiosflags
 
In this code: // Ex8_15.cpp // Extracting words from text #include <iostream> #include <iomanip> #include <string> using std::cin; using std::cout; using std:...
[4 replies] Last: Oh ok, got it thanks! (by Anmol444)
by AceK
HOW DO I MAKE TWO CLIENT APPS COMMUNICATE WITH EACH OTHER THROUGH A SERVER
 
Hi there, I've coded this client/server application and it works fine becuase a client can send a message to the server, so is the server to the client and muti...
[2 replies] Last: I would like to see your code, since I would like to learn to do this ... (by SamuelAdams)
What exactly is Encapsulation?
 
On wikipedia: http://en.wikipedia.org/wiki/Encapsulation_(object-oriented_programming) And in my book it says: "The idea of an object containing the data imp...
[4 replies] Last: Alright I shall xD (by Anmol444)
Fixed point implementation of nan () c++
 
i am doing fixed point implementation in c++ and i am trying to define "notanumber" and support a function isnan( ) which returns true if the number is not-a-n...
[4 replies] Last: The way I understand your first post is that you want isnan to take tw... (by Peter87)
Need Urgent help in code optimization
 
Hello Forum, I am not very familiar with string class. Following is the sample code I have written. It works fine but I think I need a lot of optimization in...
[1 reply] : why do you think this few lines need optimization? what is it suppose... (by coder777)
by naz
error
 
cout<<"Harry Potter Is Best Seller Movie Of The Cinema"<<endl; } else if(TOTAL_REVENU_2 > TOTAL_REVENU_1 && TOTAL_REVENU_2 > TOTAL_REVENU_3) { cout<<"Engli...
[2 replies] Last: what error are you getting? (by abhishekm71)
May 2013 Pages: 1... 2425262728... 47
  Archived months: [apr2013] [jun2013]

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