Beginners - November 2013 (Page 10)

Making a Clock with Classes help
 
Okay for class I have to write a program with the following instructions. I'm just going to copy and paste the instruction so I don't miss anything. In the ass...
[2 replies] Last: Any help at all? I don't want the program written for me I just want h... (by jkelly18)
Writing a Program that Can be Run Multiple times
 
How would you get a basic program to accept multiple entries? Right now I only know how to make a program that 1. Accepts input 2. Prints something ...a...
[6 replies] Last: Nevermind, I replaced the "cout << "You entered: " << stockname << "\n... (by kolo7880)
debugging error - exceptions
 
i have debugging error: "First-chance exception at 0x7694c41f in oop_ex2.exe: Microsoft C++ exception: char at memory location 0x002ef4d4.." i have inner cla...
[2 replies] Last: Also, adding to yulingo 's observation: word <'65' - single quotes ... (by JockX)
32767??? help!
 
Im, making a little text-based game, but whenever I call the dislay() function on any of my weapons, the console will return the max int #. Run it in your own I...
[2 replies] Last: thanks, i havent gotten to use id or descrip yet. (by ASCII14)
PassWord program
 
Hey guys, I got a little help earlier with my CheckPassword Function. Everything works exactly correct, just as it should. However, when i get into the third ...
[4 replies] Last: Jock, never mind. you fixed it! thanks for the help. :) (by drzazga)
Change code to read a 3x3 matrix to an nxn matrix from a file
 
Hi. The code below reads in a 3x3 matrix, how can I modify it so that it will read in an nxn matrix? Thank you for your help, Harry #include...
[1 reply] : The simple solution is to loop nxn times and read and push one number ... (by yulingo)
Trying to get input from file and send to a class
 
Let say I have this file "inputfile.txt" and the file contains the text below... First Name: Ron Age: 40 And I want get the txt after the ": ". For example I...
[6 replies] Last: http://www.cplusplus.com/forum/articles/40071/#msg218019 (by ne555)
by hilft
exception question help!!
 
why do I get a compilation error in the code below? what do I do to fix the problem? #include <iostream> #include <exception> using nam...
[1 reply] : catch(double x) { x *= 2; } cout << x; // in this scope x is unde... (by JockX)
by hilft
exception question help!!!
 
When I compile/run this code, I get an error message. Is this an execution error? Also, my guess about the problem in this code is that due to catch(int i ) ...
[1 reply] : I don't know much about exceptions but I think the data type that you ... (by Garion)
How to read a text file in Visual studio
 
Hello, as part of an exercise I wrote a piece of code to calculate some dimensions using data from a file. It worked in the lab where I was shown how to, for wa...
[1 reply] : Try "clean" and "rebuild all". (by yulingo)
by Kirito
Passing arrays to Functions
 
Hi, I'm really new to programming and I'm having trouble using a function to let a user input array values and then passing those values to other functions. Can...
[1 reply] : Arrays are zero-indexed, so if you have an array of SIZE elements, you... (by yulingo)
Help please for (me) reading a text file I open
 
I need help reading from a text file that I opened. What the result is looks like a list of what I think are the address of the data in file // #include "st...
[2 replies] Last: thanks here is what i came up with // Lab6_W01045456.cpp : Defines th... (by jamiejimbo622)
c++ dot product with vector tables
 
Hi, I'm learning c++ at university and I need to make a program that would calculate the dot product of two vectors. So I need to : -ask the size of 2 vecto...
[18 replies] Last: What you have there may be overkill. I was thinking more along the lin... (by booradley60)
serious matter
 
create a programthat illustrates your knowledge and undrerstanding of using OOP in C++. the program is designed to assist in the scheduling of classroom assignm...
[3 replies] Last: You seem to have a mis-understanding of what this forum is for. We ar... (by Stewbond)
by Blank
conditional operators...
 
how would i translate this code to an if/else statement? the second code who see there is what i have but i dont know if it's correct total += count == 1...
[8 replies] Last: @Computergeek01, I see no point what so ever in your comment. Did you ... (by snowright)
Getting file into dynamic array with class
 
I am trying to read from a which first input is how many records are in. The rest is the id of the student, first name, last name, and then exam grade. However,...
[3 replies] Last: I also keep getting a error that states" unresolved external symbol" (by joeyeld7)
by Elize
can't create more than a certain number of threads
 
I wrote a raytracing program that takes a very very long time to finish, so I have been trying to multithread it using pthread_create(). It works perfectly for ...
[2 replies] Last: Okay, I derped. After reading some tutorials, I tried to make the thr... (by Elize)
Help with letter guessing and arrays
 
Hello, I am on the verge of completing an assignment but I have run into a bit of a snag. I am to alter a program from my text so that if a letter is used twic...
[5 replies] Last: Worked on it a bit more and replaced the above with this... //Entry... (by Ramadonis)
by umax11
Array Values
 
Could anyone explain why this returns -2?? #include <iostream> using namespace std; int main() { int a,b,c,d,e = 3; int billy = {a,b,c,d,e}; ...
[1 reply] : It could output any number at all, since a is not initialised. Only... (by Chervil)
by simi
Function call operator
 
Hey guys, I am struggling to find my way out of this situation. I just want to call the operator within the () operator, which will be finally used/written...
[2 replies] Last: Header File: typedef unsigned int Uint; typedef vector<Uint> TVint;... (by simi)
November 2013 Pages: 1... 89101112... 80
  Archived months: [oct2013] [dec2013]

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