General C++ Programming - March 2014 (Page 12)

Simple Program Issues Help!
 
#include <iostream> #include <iomanip> #include <cctype> using namespace std; //***********************************************************************...
[2 replies] Last: wow i feel so dumb thanks for the help! (by Inthemountainair)
operator precedence
 
Quick question about operator precedence. The arithmetic operator has higher precedence than comparison and comparison has higher precedence than the logical op...
[3 replies] Last: Don't confuse operator precedence with the order in which things are e... (by Peter87)
Writing a plugin framework
 
So I'm trying to accomplish something that right seems to hard for it to be worth it. I'm trying to write a plugin framework/system for my game. I have read abo...
[1 reply] : No, there is no universal method since nobody can agree on an executab... (by NoXzema)
fraction class assignment, help please!
 
posted this in beginner, got no answer, could really use some help, having trouble understanding all the parts of creating a class. I'm supposed to write a cl...
[2 replies] Last: my bad, won't happen again (by orangemexican)
GUI , Family tree
 
hi , i have a very simple Family tree project using GUI..... and i have two forms ! the first form ask the user to enter the number of child the...
[no replies]
Balancing AVL tree
 
HI All, I am going through insert operation in AVL tress and balancing them later and I put in lot of effort to understand how these left or right rotation ...
[no replies]
Structs and Arrays to program a menu
 
Entire code so far provided but I need help with the showmenu function. Once it's established that a certain item has been selected (thus set to "true"), what t...
[no replies]
How to check equivalent of randomly generated alphabets?
 
//This code gives randomly generated alphabets and if equal will //cout the alphabet which is equal 1 #include <iostream> 2 #include <cstdlib> 3 #include ...
[1 reply] : Your code is probably not doing what you expect. When you say checki... (by Mats)
Can someone help me write this C++ program?
 
Write a C++ program that asks the user to enter an even number only. If the user enters an odd number the program should use input validation to ask the user to...
[1 reply] : If you're not sure how to begin a program, start writing out the steps... (by wildblue)
malloc problems, but no errors.
 
Hi I have written function readFile bool readFile(char* infile_name, char* file_content) { FILE* file_ptr = fopen(infile_name, "rb"); if (file_ptr == N...
[2 replies] Last: Found the problem. Here are new function. bool readFile(char* infile_... (by Shinigami)
by eastw
Compile error
 
Hello guys, I'm currently having problem to have a proper output. I should have gotten names instead of their address. Assume my text file content: Y Joseph/...
[4 replies] Last: cout<<fam.member <<endl; (by ne555)
by edo
Determinant Of Matrix 3x3
 
i need help please!!!!!!!!!!!!!! Write a program that finds the inverse matrix to the given matrix of size 3x3. In the calculation you need the function to...
[no replies]
vector of classes and how to access them properly
 
So far I got how to create the classes ok today but I would like a vector of classes(I think). im trying to access the virtual functions with a single command t...
[2 replies] Last: thank u very much, that worked for storing the monsters and calling th... (by morngrym)
by stdeez
dynamic function calls (hard to title the problem)
 
First of all: Sorry for the really bad title I wasn't sure what to title it as. I could've named it something like "noob questions" but I figured that would be...
[5 replies] Last: class Foo { int x_; public: Foo( ) x_( 0 ) {} // ctor 1 Foo( i... (by keskiverto)
by NDSE
Segmentation Fault
 
SEE MOST RECENT POST OF MINE FOR UP TO DATE ISSUES! #include <string> #include <sstream> #include <fstream> #include <iostream> #include "itemManager.hpp" v...
[3 replies] Last: I have re-written the system using RapidXML; a completely new file typ... (by NDSE)
how could i edit a text file using f stream
 
i have a assignment which sayswrite a c++ program that converts each charecter afteer a period '.' to an uppercase charecter heres what i've done and its just r...
[no replies]
Input to a structure array not working?
 
I wrote this program to help me create a list of medical resources and their attributes, a task I have been performing repeatedly lately. I'm still fairly new t...
[1 reply] : at the bottom, you're using i as the index instead of what it should b... (by zsteve)
Cannot load OpenCV library
 
Hi, I am trying to run a console program but for any reason it displays an error on the cv.h line. Can somebody help me, please?
[5 replies] Last: As NT3 mentioned earlier if you are going to include with <> you must ... (by giblit)
by leo255
C Program: Trying to use getchar/putchar exclusively to build a simple calculator
 
Hi guys, I'm trying to build a basic calculator using only getchar and putchar (printf is fine for displaying error messages). It very simply takes one numbe...
[no replies]
what exactly is stdin?
 
I know that the definition of stdin is the standard input stream where you can write data to. However, what kind of datatype is stdin? For example, below we put...
[1 reply] : #include <stdio.h> extern FILE *stderr, *stdin, *stdout; http://pub... (by JLBorges)
March 2014 Pages: 1... 1011121314... 36
  Archived months: [feb2014] [apr2014]

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