Beginners - March 2011 (Page 3)

Noob here studying c++ Declaring variables!
 
hey guys just started my degree and am having quite a bit of trouble, First off i have a quiz which i would really like some help with as im struggling, its lik...
[18 replies] Last: Technically, their values are objects, AFAIK, but the distinction is... (by filipe)
by Hanabi
Adding header file to eclipse
 
Hello I am currently reading "Programming Principles and Practices using C++", I have reached a point where the code includes a "std_lib_facilities.h" he...
[8 replies] Last: first name is invalid syntax - first_name would work though.... (by hanst99)
Assignment (1,2)
 
I am to make an application that will grade a multiple choice exam with 10 questions. Here are the correct answers for the exam. 1. B 2. D 3. A 4. A 5. C ...
[24 replies] Last: The former will always be evaluated as false. Actually, it will onl... (by hanst99)
Encryption program only encrypting part of the file.
 
My program asks for a file input opens the file encrypts the text with a special key then send the encrypted text to another file. the problem is that it only e...
[1 reply] : oh and i cant seem to figure out how to make it loop through the progr... (by Annihilator500)
by snakec
c file handling pronblem
 
hi every body can some one help me with thi problem i have a text file which is following hi Hello this is my Hello to the Hello world i write a code in ...
[6 replies] Last: Good job, filipe! (by kooth)
How do I process code on the GPU?
 
Hello everyone, I'm new to OpenGL and I have the following problem: I have some source code and in order to make it faster I want it to be processed on the ...
[1 reply] : I found some samples using OpenGL, Direct X, and some other stuff on N... (by kevinkjt2000)
Functions Program
 
I am having trouble with this program for school. Here are the directions he stated: You and I are working on a Bank program in which I have created the main an...
[11 replies] Last: I didnt use voide withdraw(&balance): because the balance is always c... (by PanGalactic)
Changing the size of a table
 
Hi! I'd like to change the size of a table. For example when asked "How many rows you wanna make?" You can choose max 10 rows eq. When I´m inputting nu...
[2 replies] Last: If you're using c++, use a vector. (by rocketboy9000)
what's wrong with this code?
 
#include <iostream> #include <string> #include <sstream> using namespace std; class player { private: char Firstname ; char Lastname ; float R; float...
[14 replies] Last: @hunkeelin : i think you should like this code ! #include <iostream>... (by Conan)
Result of variable's in my object
 
Ok before i show you the code i'll explain what i want to do with it. I just want to multiply the variable quantity with balance to display the result(variable ...
[5 replies] Last: Well, i answered my question myself. Excellent! Troubleshooting you... (by closed account D80DSL3A)
Question of typedef
 
I would like to create(just a practice) a simple container below is my code template<typename T, size_t N> class myArray { typedef T value_t...
[4 replies] Last: Thanks a lot (by stereoMatching)
Returning a Class Object
 
I seem to be having difficulty passing a class object back to another function. void menu(){ vector<int> x; deque<character> characters; character temp...
[4 replies] Last: Okay, I fired up gdb, and ran the program in it. The seg fault showed ... (by ciphermagi)
Please assist
 
If I run my program I keep on getting the same results where I am supposed to get 2 different results. I know the problem is in my second function but I cannot ...
[3 replies] Last: 1. you can picture function's return 's as a result or output or outc... (by matsom)
Help with a Classes/Inheritance and I/O streams project!
 
I'm working on a project for class that I know very little about... Once we got to "classes" I became very confused and I'm having difficulties grasping all the...
[4 replies] Last: Well considering that computers are though of as over-powered calculat... (by Mathhead200)
need sanity check on array declaration
 
If I have something like... struct Obj { Obj() { // initialize stuff } }; int main() { Obj stuff ; return 0; } Would st...
[2 replies] Last: Okay, thanks. (by pabloist)
Void funtion; code won't compile
 
If I change the function type to int, it will compile. Why won't it compile when I change it to void? #include <iostream> using namespace std; void s...
[3 replies] Last: Why not just call the function independently? The sum() function, if i... (by Zhuge)
by Krebel
Error C2664
 
I recieve the error and I have no idea what it emerges. I have searched to find why this is happening between my arrays. Any help would be appreciated. err...
[4 replies] Last: It looks fine as is, so my guess is that perhaps you have a prototype ... (by Zhuge)
Question about arrays
 
Basically I have to write a decryption program that reads in text from a .txt file, decrypts it, and outputs it to a new .txt file. I am having trouble getting ...
[1 reply] : infile_cypher.get(letter); returns infile_cypher , not a char value... (by PanGalactic)
by tonnot
How to concatenate << operator on an instance of MY_object
 
I have a class named W_debug. I want to use it at my_oher_class. I declare it at my_other_class.h W_debug w_debug; and / or ( To try if it runs...) W_debug *...
[6 replies] Last: thank you very very much. (by tonnot)
problem with a program
 
Module Three Program Program: You and I are working together to create a transaction program for a bank. My job is to create the main function that will r...
[6 replies] Last: yes function definitions, sorry. And thanks for outlining the code. I ... (by Shannon1981)
March 2011 Pages: 12345... 52
  Archived months: [feb2011] [apr2011]

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