Beginners - October 2011 (Page 38)

by bfelts
Counting Upper and lower Case letters
 
I have a struct struct charCount { char letter; int count; }; How would I read from a file and determine the frequencies of A-Z and a-z?...
[1 reply] : Does it help if I mention, 'a' - 'a' = 0 'b' - 'a' = 1 'c' - 'a' = 2 ... (by closed account DSLq5Di1)
Having trouble with an equation!
 
So I have been teaching myself C++ for 2 weeks now since they don't offer a programming class at my highschool. I have been able to figure out most of my proble...
[8 replies] Last: Hello, xTehOnex Wrote: Yeah the ((Vf * Vf) - (Vi * Vi)) / (d * 2) ... (by Jugurtha Hadjar)
Nested loop?
 
How do I show this output using for loop statement? 1 23 345 4567 Thanks in advance :)
[14 replies] Last: Thanks Kyon. I thought of something like that earlier! But I didn't re... (by hellohellomoon)
Telling program not to output value when...
 
Hi, I am writing a program to output a dollar value in 20's bills, 10's bills, 5's bills, and singles. So if I had something like $54, it would display 2 x 20...
[2 replies] Last: Wouldnt this be a lot simpler to do. Just add "__ x $(whatever amount)... (by knicole89)
Phone Directory Program Problem
 
Im having a hard time figuring out what is wrong with my program. I need to write a program that looks up a phone number in a file containing a list of names an...
[2 replies] Last: Void phonedir(string firstName, string lastName) { Int flag = 0; inFi... (by dznguy)
error C2011: 'class' type redefinition
 
So for my Intro C++ class I have to do an assignment using inheritance where there are 3 classes; Package, TwoDayPackage, and OvernightPackage. The latter two ...
[2 replies] Last: Yeah, that's not the case, my source file is as follows: include "Pac... (by Sparkthunder)
Code terminates trying to open file
 
Hi. First post here so if I'm posting in the wrong place or something, please do say. I am trying to open a text file in C++ using the following code: // Ope...
[4 replies] Last: This is still incorrect. It should be (strlen(argv ) + 4) (3 to hold ... (by Lucas Tiridath)
Char variable question
 
okay so this is my code for a really simple variable test, #include <iostream> using namespace std; int main() { int thisisanumber; //A non-dec...
[4 replies] Last: thank you man. in the end all i had to do is type in at the end of t... (by Ilyas Kamil)
How do I do this?
 
char answer ; while(answer == 'Yes'){ if (a== 136) { wichita.pedal(); } else if (a == 236) { ...
[6 replies] Last: Actually, I figured the last problem out. Thanks Shack you were a big ... (by hellohellomoon)
by bfelts
Using Structs to count the capital and lower A-Z
 
I have already looked for a solution to this problem, but as of right now I'm still not having any luck. Here is the instructions: Write a program whose main f...
[1 reply] : I just need help figuring how to count the lower and upper case charac... (by bfelts)
Equation...
 
I'm working on a problem that needs me to write a program that will compute this: 1.0/n + 2.0/(n-1) + 3.0/(n-2) + .... + (n-1)/2 + n/1 n is a positive integ...
[4 replies] Last: Thanks! That helps a lot, actually. I'm very new as well, so don't wor... (by disneydork11)
Substitute for switch (1,2)
 
I just wanted to know if there is any substitute for switch statement which is easier looking. It shouldn't be arrays because I haven't learned that yet.If I ha...
[24 replies] Last: [quote=qwertyasdfgh]@EricDu : none of them LOL. Mine is neater. I say ... (by helios)
I simply can't find this logic error.
 
My professor said to find the logical error within the char shift function, but I can't figure it out. This course is accelerated and so is moving a bit more ...
[no replies]
CLR Frm Application
 
Hi I'm trying to follow a youtube tutorial for an animation. At the start a window appears where it's possible to drag in items from the toolbox. This do...
[7 replies] Last: Whitenite, Many thanks, got about as far as you now. Graham (by GraemeR)
Declaring an output txt in header?
 
My professor today told me I had to put my code to open a .txt file for output to go into above main(). She said the reason for this was because she hasn't taug...
[2 replies] Last: thanks you! (by Cosimo Vilardo)
by Vaice
Numerical methods_C++_a formula
 
Hello friends, My name is Veselin Nikiforov and I am a student of chemistry and informatics. For a course project please, if you can, for some help in this ta...
[2 replies] Last: Hello my friend, So this is not very easy to understand because this ... (by Vaice)
Die Roll with Arrays
 
I'm really not understanding arrays; for my project I had to simulate a die rolling 2,000 times and keep track of how many times each was rolled. How can I fix ...
[1 reply] : for(i=0, i<=rolls, i++){ die = (rand()%6)+1; rolls = rolls +1;... (by Maese909)
What do these errors mean?
 
This code is from a slide my teacher posted for us in class, but he took it down before I could double check to make sure I typed it all in right. I have the f...
[2 replies] Last: The errors are not caused by your typing, they mean that the linker ca... (by EricDu)
by Akusa
Help with Random number game.
 
Okay well my assignment is to write a program that generates a random number from 0-100, allows the user to guess the number, Lets the user pick three different...
[2 replies] Last: thank you it works now :) (by Akusa)
by buggys
string in visual c++ form
 
OK So i was trying to make a plugin for my sql and win sock Login Server, however apparently visual c++ 2010 form can't #include <string> and there is so such t...
[2 replies] Last: lil snippet of what i'm using it for is private: System::Void butto... (by buggys)
October 2011 Pages: 1... 3637383940... 59
  Archived months: [sep2011] [nov2011]

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