Beginners - April 2011 (Page 13)

array display
 
hi i am new to c++ and i need some help in my programming. I dont know how to display a single character together with string on an array format as shown below...
[2 replies] Last: thanks for that but is there any shortcut that you can use to assign ... (by newprog)
by ascii
calculator troubles
 
im making a calculator to which you should be able to input something like: 12+54 and get 66. im working only with addition and two numbers right now and am ...
[3 replies] Last: I can't imagine your professor getting mad at you for using programmin... (by TheNoobie)
Problem with the Homework
 
Hello everyone, I'm having some trouble with my homework. I need to write a snake game, thus my snake needs to move continuesly. The problem is that when i pres...
[2 replies] Last: Another thing you could do is use a container to store the user input.... (by m4ster r0shi)
using arrays and copy constructors
 
well I have a class of type student. Each student has two data members: a name ( char pointer ) and a gpa (double ). In main I create a array of type student a...
[6 replies] Last: THANKS SO MUCH!, your print advice really helped me out. Before I did... (by organicjustice)
by xamo18
Write to random access file from struct?
 
Hi, I am having some trouble writing the contents of a structure to a random access file. I am supposed to parse the string, copy it to a structure and write it...
[no replies]
by ert3
Getting Started
 
I am new without education on this subject. I have a new Computer running Windows 7 Home Premium. I have purchased a book called "Sams Teach Yourself C++" ...
[2 replies] Last: Thank You cristi121, everything worked just as you said. It felt good... (by ert3)
Changing a string date to an array spot
 
I'm trying to take a string date (m dd) and turn it into an array spot. This is a hotel reservation simulation and my hotel is only open in June (30 days), Jul...
[1 reply] : Ok so I'm using a substring and it looks like this: cout << "Please... (by closed account 9hv4jE8b)
if you update a variable in a for loop, how do you access the updated value outside the loop?
 
Pertinent code segment(I doubt you need all 458 lines :) ) for (k = STARTDIGPOS; k <= shortArrSize + 1; k++) { temp = a - b - carry; ...
[1 reply] : Just as you would access any variable that is in scope. Here's an exam... (by Moschops)
Correct Me !!! Please!
 
hello all, i have learnt c++ with a book. That taught me to use system("pause"); when i have ask for help before i have endless comments regarding how wrong th...
[1 reply] : http://www.cplusplus.com/forum/articles/7312/ (by closed account 3hM2Nwbp)
Whats Wrong ?
 
hi, this short practice program wont work and i dont know why could you please help me. #include <iostream> #include <cstdlib> #include <cstdio> using ...
[6 replies] Last: could you please explain getch(); or cin.get(); i do not know how to... (by PracticingProgrammer)
error 'Create': identifier not found
 
Hi guys, I need your help as I have a problem when I tried to debugging of the application. Here it's the code: // Form1.cpp using namespace System::Data...
[1 reply] : This looks like a .NET language, so I'll take a wild guess and say it'... (by Browni3141)
by Krulle
Dynamic memory allocation of object within object
 
Hello, I'm a beginner and tried to find on google what I am doing wrong... I'm using Microsoft Visual C++ 2008 express edition. I execute my program in ...
[3 replies] Last: Thanks for your response fun2code and naraku9333. I understand I did s... (by Krulle)
How to use extra Header/.CPP file?
 
I want a void function in an extra healer/.cpp file and in the main program call it. can some one give me a small example code on how to do this?
[3 replies] Last: it keeps asking me for #include "stdafx.h This is a problem with y... (by Moschops)
What does my proff mean by this?? Operator double
 
I suppose to write a Fraction Class program. The instructions give a list of constructors and function names we have to have. On of the function names we have t...
[2 replies] Last: cool thanx (by jokerfwb)
Question about Queue: Pls advise
 
This posting is over. sorry for that.
[2 replies] Last: Any Help? (by gongzhen)
R6010 - Abort()
 
I am getting a debug error when my program reaches: throw invalid_argument( "Month must be between 1-12" ); The error is: R6010 - abort() has been called....
[1 reply] : That's normal. Uncaught exceptions terminate the program, as they shou... (by Athar)
Why does this work this way??
 
I'm doing homework assignment dealing with classes and inheritance. I have everything working like it is suppose to. My output matches the sample output. This i...
[4 replies] Last: Wow thanks a lot. I have been scared of the use of pointers this reall... (by jokerfwb)
I need HELP!! ASAP
 
I started writing a c++ program but am at a loss! Any Help would be highly appreciated! My program asks for this: implement a class that models a tally counter...
[9 replies] Last: you havent made any instances of the class yet, you really need to go ... (by ascii)
Writing object to file:
 
Hi, I am trying to write object to file. The code runs fine; but the data file contains unidentified characters. I am working on window 7 using MS studio ...
[1 reply] : please put in code tags. just click the <> on the right and put your ... (by ascii)
by ascii
adding digits from a char array to an int
 
hi! im writing a console calculator that so far only supports addition. the user should be able to enter something like: 3 + 6 and get 9 returned my ...
[no replies]
April 2011 Pages: 1... 1112131415... 55
  Archived months: [mar2011] [may2011]

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