General C++ Programming - April 2014 (Page 31)

Counting in c++
 
I'm making a program in which it will read an input from a text file and then count the numbers of spaces , characters , words . Here is what i think it would ...
[1 reply] : oh yeah and the input.txt look some thing like this : 27 asdxzc &#^$... (by iamkhanglhp)
Recursive calls
 
Hello I am very confused on this homework I am doing. I know you make think i am lazy for doing this but I am desperate and really need the help. I've done most...
[1 reply] : Have you though about e.g. instrumenting the code and running it? #i... (by Abramus)
How could I go back in the Main menu using this code that I have constructed
 
Hello I'm new here! I just wanted to ask, how can I go back to Main menu using this code that I have made (I know it's not yet finish but please help me T^T) ...
[1 reply] : Hiya, use a while loop. http://www.cplusplus.com/doc/tutorial/control/ (by mutexe)
by fafner
Pointer as parameter is null
 
In my raytracer-project I have the following function: bool hitObjects(Ray &ray, std::vector<Object *> &objects, Vector3& normal, Material *mat) { dou...
[6 replies] Last: Can't say I fully understand why that works yet, but it does! The key... (by coder777)
Whats wrong?!?!
 
#include <iostream> #include <string> using namespace std; class Date { private: int month; int day; int year; ...
[6 replies] Last: @kannanmj Thank you so much ugh that was bothering me so much i knew i... (by klayrahx7)
i need help pleas
 
hello every one i need to draw this shape in c++ pleas help me. just the stars , without the ((.)) ............................................*............
[1 reply] : Well, what have you done so far? "I need help" will not get your any h... (by giblit)
Compiler/IDE misunderstands my functions
 
I'm coding in Dev C++ IDE. And here are some (parts) of my code: #include <string> #include <vector> using namespace std; struct Thing { stri...
[3 replies] Last: I think cire's way solved the problem. Change the constructor to: Gu... (by dleanjeanz)
Why i cant dereference an iterator at the end of the list?
 
Why this code works Elenco e1; e1.add(Persona("a","b")); e1.add(Persona("c","d")); e1.add(Persona("e","f")); e1.add(Persona("e","f")); e1.remove(2); ...
[4 replies] Last: thanks :) (by Franconet)
Array Txt File Project
 
Hello, I have a project due in Computer science in which I have nearly finished, but I am having trouble trying to configure the code to output correctly. Any h...
[1 reply] : what exactly is the problem? (by coder777)
Overloading + operator
 
Hey guys. I have been working on an assignment where I have to add three objects of a class Matrix. The class should have the flexibility to add more than two o...
[2 replies] Last: You made my day Man. :D That was what I was looking for. Thanks alot b... (by DaniAlves)
Functions lab
 
Need help to see what I did wrong and/or what am I missing Object: Write a program to compute the final score and the letter grade of students in a class of ...
[3 replies] Last: @17 double testscore(MAXCOUNT) This should be double testscore ... (by kannanmj)
Get live data to simulate algorithm
 
How to get live streaming of stock data from yahoo finance? Using C++. Thanks! I need the code and fetch the data so I can do calculations on the price and volu...
[1 reply] : https://code.google.com/p/yahoo-finance-managed/wiki/YQLAPI (by Joshhua5)
Syntax problem using heap allocation
 
Hi, I have the following working section of code: const unsigned int arySize = numSteps * numSteps * numZPlanes; double phase1D ; blitz::Array<double, 3...
[3 replies] Last: Many thanks. (by badger10)
vector within struct: syntax confusion
 
Hi all, my first post happens to be a question: What is the proper syntax to use a vector within a struct? Here's an example of what I want to do: #in...
[2 replies] Last: Zhuge, You are the king. It works now. I suppose I did that because... (by goatgoat)
Function Prototype
 
#include<iostream> using namespace std; int welcome() { cout<<"\t\taggregation programn"; cout<<"2 integers "<<endl; } int result(int ,int ) ...
[6 replies] Last: thankyou (by feehily)
by Aarix
simple problem but confused.
 
Hey, I'm trying something to have a number change its value based on another number in an attempt to get a pattern going so im starting with one value constantl...
[4 replies] Last: It seems to me like you don't know how program flow works. Why not jus... (by xismn)
hello
 
hey guys need some help on a question. show the prototype (i.e. declaration) of a function that passes an int by value, a float by value, and a char by value...
[10 replies] Last: ya, sorry. thanks for your time I'm still new at this. i can tell C++ ... (by MaseratiDeluxe)
C++ Run Time Check Failure
 
I dont know why the compiler sent me the Run-Time Check Failure in Option 2, 5, 6. Why the compiler do that ? I already try to solve it but I cant :( #inc...
[2 replies] Last: '5' and '6' have array overruns, you are lucky to get a run time error... (by erty)
Save the indexs of a multi-dimensional arrays ...
 
Hello, I am working on the game of fifteen.Yes this is home work. I was wondering if it is possible to save the indexes of an element in a two dim array. I need...
[3 replies] Last: Thanks guys (by otisphat80)
Themes for visual C++ xpress?
 
i only know how to change text color .. and background .. as you can see on the pic .. but i want to chance it whole visual c++ to be dark color or black.. p...
[4 replies] Last: sorry you are right, anyway im going to download 2013 then .. i saw t... (by SrgjanLDTeam)
April 2014 Pages: 1... 2930313233... 41
  Archived months: [mar2014] [may2014]

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