Beginners - September 2011 (Page 14)

help....
 
Need help on the code for a program I need to write. Display date in 8 digit format. Need code for month, day, year and date. Must use setw function for prop...
[5 replies] Last: Here's the code I have sofar..... // TYPE YOUR NAME // A BRIEF PRO... (by jaypa24)
Error message after declaring instance of class
 
I'm using Windows 7 Starter Edition and Code::Blocks. It gives me the error message at 'char text = "What is the meaning of...";'. I'm obviously doing something...
[10 replies] Last: I run it, it accepts one answer and says that's wrong, accepts anothe... (by shacktar)
Not working
 
I'm new to c++ and I'm excited that I debugged my fist a program by myself form someones source code. The tutorial source code wasn't working so I debugged it! ...
[3 replies] Last: I would use a getline. It will capture a whole line of user based text... (by Code Assassin)
by Oswld
Help with class members
 
Hello, i am working on this chunk of code from a textbook and im kinda stuck. The code purpose is to help explain lists in c++. Im supposed to define the member...
[no replies]
C++ Homework?? (Area of a Shaded Region) (1,2)
 
I gotta make a c++ program that calculates the area of a shaded region when the user types in the radius. The picture is square with a circle tightly circumscri...
[21 replies] Last: You need to close your if statement in the proper place, with the synt... (by malice)
Ping?
 
Can someone right me a program where user enters ip then the prompt window in visual studio c++ displays the ping info? thanks
[9 replies] Last: Hmm, I'm not sure. I'd contact an admin. (by ascii)
by jczeh
debuging code im xtremely new to C++ i dont undrstnd how 2 fix the errors it says i hav when i try to compile
 
this is the code i've been trying to get compiled,but i have no clue how to fix my errors. i only understand basic concepts such as structure (where to but scaf...
[3 replies] Last: Can you please put your code within [co de][/co de] It makes it muc... (by TheMeerkat)
by Faux
Text file help
 
I need help making two substrings(I think) to get the integer values (course hours, grade) for each course. I thought I had it but every time I ran the .exe it ...
[1 reply] : anyone? (by Faux)
Visual Studio 2008 - .h and .cpp files
 
Hi guys, I have a very basic question. I have been using DevC++ for some months in order to learn C++ basics . Now I have to switch to VS2008, and I am compl...
[3 replies] Last: Sorry, just fixed this as well, many thanks! (by araculsa)
Noob question
 
Hello, I am having a problem with this program, I am supposed to enter a series of numbers, and after entering the numbers I need to display the largest and sma...
[10 replies] Last: After much contemplating I was able to solve it :D Thanks to Max Edgar... (by illlojik)
Error: No match for 'operator<<'
 
I was assigned a program where the main calls a Word object and the Word object counts the vowels, consonants, digits, and special characters in the word. I've ...
[6 replies] Last: Thank you so much webJose! Everything compiled and ran perfectly after... (by ColossalAmbition)
Can you load code from another file
 
If i were to just write code in a different file on the same project, could i load that file in and have it read that. I have a split choice and both will have ...
[10 replies] Last: The OP wants to include code. #include is what is needed: #include ... (by webJose)
True or False
 
The value of the expression 7 + 8 <= 15 is true. I know these are very basic, but they are homework questions and i just started out and i am getting confuse...
[3 replies] Last: You could just use a calculator. Almost every computer has one.. (by Code Assassin)
by Karn
Allow invalid input only once
 
Hello. I'm trying to make a program that asks some input which has some limits (e.g. not negative), and if an invalid integer is entered, error message is print...
[1 reply] : You can do something similar with a 'while' loop, this is my idea: ... (by alex9)
string.length() equivalent for arrays?
 
I'm writing a simple program to help me solidify what I've learned and to also give me opportunities to learn new things, anyways, is there a function I can cal...
[13 replies] Last: @ddwiters45 I'll read up on c_str(), thanks (by c0d3Man15)
Problem about rounding(truncating)
 
what function should I use to truncate a real number into an integer? ( find the largest integer that does not exceed that real number) I used to use int(x) (ty...
[7 replies] Last: Halves can be represented exactly by floating point numbers, so ???.... (by helios)
by vlad61
Mutant vampire bunnies
 
Hello im working on the last beginner program on this list http://www.cplusplus.com/forum/articles/12974/ "Graduation" I have constructed my bunny class - th...
[19 replies] Last: OMG TY! it worked how awsome! Now where should i go to learn more abo... (by vlad61)
function problems
 
I am attempting to use functions but keep getting errors any help would be great #include <stdio.h> #include <stdlib.h> #define TAX 0.05 int main() { t...
[3 replies] Last: Thanks alex9 that seemed to sort it out. Oh and quirkyusername ya this... (by Josh Carswell)
by CIS
while loop
 
Hi, I am a really beginner, I need help with this loop, I know it is an infinite loop but what else is wrong with it? int x=0; while (x) { ++x; cout<...
[6 replies] Last: Great! Thank you very much!! (by CIS)
by markm
difficulty with void pointers
 
Hi all I am a beginner at C++ programming and I am working my way through the c++ Language tutorial from this site but I am having a little difficulty with t...
[3 replies] Last: Your welcome. (by ddwinters45)
September 2011 Pages: 1... 1213141516... 48
  Archived months: [aug2011] [oct2011]

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