General C++ Programming - November 2013 (Page 34)

What is the problem in this program of Quadratic equation ?
 
It is only running the first condition(disc<0) #include<iostream.h> #include<conio.h> #include<math.h> void main() { float a,b,c,x1,x2,disc; cout<<"Ent...
[3 replies] Last: disc >= 0 by definition of sqrt(). These two expressions are missing ... (by helios)
need help need help in calculations
 
need help in calculation with functions at bottom after the end of the main program. mine only calculates one person. and also need help with the bubble sort (n...
[4 replies] Last: need help (by GokuK97)
nesting algorithm
 
hi i have problem with this algorithm (nesting) my nesting is 2d i want to creat a big rectangle with Dimension from user and creat Some small rectangles wit...
[no replies]
Friend of nested template class
 
Consider the following program below, which compiles without a hitch on MinGW GCC 4.8.1: template <typename T> class Outer { class Nested1 {}; tem...
[1 reply] : template <class T> class Outer; //The class exists and it is a templa... (by ne555)
C++ error message dealing with arrays
 
The output that is produced with the candycrush.txt input file can be found at http://faculty.cs.niu.edu/~byrnes/csci240/pgms/output7.txt. Copy the input f...
[no replies]
Code Readability
 
is this code read able or not #include <iostream> #include <conio.h> using namespace std; int main() { int j = 0; for(int i=0;i<10;i++) { j = i+1;...
[3 replies] Last: @ Sarmadas If OK please mark this thread as Solved .... (by condor)
by zagzag
nested switch vs if/else
 
So I am making a program where it reads three characters like OFH and depending on the combination of the characters it makes different actions. Like it reads O...
[1 reply] : Instead of nested conditional loops, I would prefer to first read all ... (by abhishekm71)
Coming Garbage values
 
Hi, I have a written a simple code..In my code the value of 'a' is printing Garbage value.. const unsigned int a=AV_RN32A(src-stride);//stride is 1 The ac...
[2 replies] Last: ofcource..ok..I will explain my logic.. I have writtten my logic like... (by vswapna)
Trouble reading text file
 
I'm a college student looking for help :( my project includes opening and reading a text file ("customers.txt"). this is my text file: 6 Joe P 10.02 Y Mary r ...
[6 replies] Last: const char path = "<put the complete path to the file here>" ; read... (by Scott7975)
Nested looping
 
Enter the number of rows(n) to get following output; for eg. n=12 output-> 0 12 345 67 8 9 01 234 56 7 8 90
[no replies]
OS Development - v86
 
Hello, I am an 8th grader and I'm writing an operating system called arcrascent os from SCRATCH (no linux or anything). I have a pretty mature kernel with a goo...
[no replies]
Cosine Similarity
 
I am new to C++. Trying to understand this program which calculates C++. Can anyone help me to understand this program? Link - http://www.cplusplus.com/forum/ge...
[no replies]
Customers plan
 
//using bloodshed dev c++ compiler //How can I output the name and a two digit number next to it //example would be Indiana Jones 20 #include<iostream> #inclu...
[3 replies] Last: if(num < 100) { if(num < 10) { cout<< "0"; } ... (by IWishIKnew)
net income program
 
Hello everyone so im having a little trouble with my program. Im supposed to create a program to read a file calculate the net income and print the full name, t...
[4 replies] Last: ahh ok i see how it creates a problem thank you (by rnunez1989)
by xute
need help with a program i am writing
 
Hi there i am just starting out with c++ and learning on my own. i play a mud that uses its own calender . http://wiki.midkemiaonline.com/Calendar is the ...
[no replies]
if (variable != integer)
 
Hello. I need to have an if statement that says that if a variable is not an integer, do something, and else (if it is) do something else. How can I do this? An...
[6 replies] Last: !cin invokes the istream::operator !, which is documented here: http... (by Disch)
by zagzag
costume manipulators
 
i have the following manipulator in my fsu namespace How can i make s.fill reset to default after each use? std::ios& fsu::HexFill (std::ios& s) ...
[4 replies] Last: okay thanks a lot I will do it with fsu::BlankFill . hahah yeah custo... (by zagzag)
local scope and references
 
In the below example, we instantiate a thermo object and we pass it as an argument to set_thermo. Now the fact that I passed that object by reference, does that...
[3 replies] Last: WHat if I use this instead: With this definition: That definition... (by Disch)
Vowel test boolean return values
 
I'm trying to test if a character is a vowel. I made a separate function for the test, I'm not really sure how to get my return value to output whenever I call ...
[2 replies] Last: Thank you so much! (by taynicolette)
Constructing a tree from an array for a DFS solver
 
I am making a maze solver using DFS and I want to implement the search tree for it but I am a bit new to artificial intelligence and I want a little bit of help...
[no replies]
November 2013 Pages: 1... 3233343536... 46
  Archived months: [oct2013] [dec2013]

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