Beginners - October 2011 (Page 56)

Whats Next?
 
I just really finished the basics and I am wondering where do I go from here? I have thought about getting into open source but I am not very good at reading ot...
[2 replies] Last: Oh by basics I meant dynamic_casting , polymorphism , OOP , etc. But I... (by TheMassiveChipmunk)
by ShaunL
If Statement and Switch Statement Program
 
My teacher assigned me a program in which I have to make a switch statement version of a past program we completed. Can anyone help me convert it? /// Lower C...
[no replies]
Random Number Guessing Game
 
Hey so for school I have create a random number guessing. I'm currently have problems getting it to loop back to the beginning of the program if they press y or...
[6 replies] Last: @Krofna lol yeah c++ gets me annoyed at times so ill type whatever. (by tmaynard)
Fstream
 
I am using fstream to pull a hint from a .txt file i knoow there is the getline coding i just do not know how to use it. the file i will be pulling from is t...
[2 replies] Last: so if it were the first hint (line 3) cout <<" your first hint is... (by stevew9948)
stack around the variable...error (1,2)
 
Hi all, I'm having an issue with a program I'm writing.. I keep getting a debug error: Run-Time Check Failure #2 - Stack around the variable 'numTimes' was ...
[20 replies] Last: ahh thank you disch i was able to get past the crash by adding an else... (by efficacious)
by memmed
C programing
 
how can i write in C 4th value under the root of 3?
[5 replies] Last: Different from what? (by Athar)
add (1,2)
 
thanks
[20 replies] Last: The reason for deleting my codes is because i don't want to be accused... (by johnhuge)
Generating random numbers
 
im super new to C++ and i would like to know how i can write a program that accepts an integer number from a user say N and generates N random numbers from 0 to...
[6 replies] Last: Oops, I forgot. Do what he said. (by Pyrius)
by Yuko
Error in linked list at certain combination of member functions
 
Hi there, I have been writing a class "linkedlist" and a small test file. There are some weird things happening under certain circumstances. The private ...
[6 replies] Last: That was the solution! Thank you! First I had: struct NodeType; t... (by Yuko)
sin cos tang
 
I want the user to input a degree of an angle and then use that degree and do the sin cos and tang function but so far no luck #include<iostream> #include...
[1 reply] : You're assigning 3.14 to an integer. It should be a double. As a resul... (by Athar)
by eppo
running two classes at once
 
so i'm designing my first C++ program, basically its in two parts. one part is using filewatcher and if a file of a particular name is created in a directory i...
[1 reply] : Multithreading, I suppose. The boost libraries can do this for you, bu... (by fafner)
string issues. simple.
 
i have a string that will not hold anything past one word. why is this and how to i get it to do so? im using it to simply initiate another output which i know ...
[4 replies] Last: No problem :) (by tyl998)
Pls help. looping problem..!
 
hi there.. new in c++ and Im currently working on a program that calculates ages (years and months). I declared all variables to int. and i use looping when the...
[2 replies] Last: yeah for one code tags would help a billion. two, goto loops are gener... (by f1ddl3r)
Convert Stack Program to Queue Program
 
I am trying to convert a working stack Program into a queue Program. The output results of the queue program should be the reverse of the stack. The queue outpu...
[no replies]
removing all instances of a certain integer from a linked lis
 
Im doing a project and i cant figure out how to remove all the instances for a certain integer from a linked list(The list can only be trans-versed once) can s...
[6 replies] Last: Line 15 would become: currentNode = listTop; // this would fix the p... (by Azagaros)
argc, argc Command-line[HELP]
 
I am trying to open the file and read text from it. Book showed me the example but it is not working. #include <iostream> #include <fstream> #include <cstrin...
[2 replies] Last: I don't want code like yours(new header cstdio) i haven't got it in bo... (by happykiller)
Need help with Patterns
 
Hello, I must be having Alzheimer's or something because I just can't seem to remember how to display this program properly.. I am supposed to display a pattern...
[5 replies] Last: This is what I got: #include <iostream> using namespace std; int ma... (by illlojik)
by lpool
writing if else code
 
I am trying to write the following code in Visual C++. Could someone check and see what I am typing in wrong? #include <iostream> using namespace std; in...
[3 replies] Last: Tip: post the compiler error's message. (by andrezc)
by tyl998
How do I implicitly cast between user-defined related templated types?
 
Hi all! This is my first post to these forums and I'm also fairly new to C++. I was being introduced to the idea of templates and to the idea of classes havin...
[3 replies] Last: My class holds a pointer to typename T, and I've overloaded operators ... (by tyl998)
using a lot of variables
 
#include <iostream> using namespace std; int a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12; int main(){ 1 <= a1&&a2&&a3&&a4&&a5&&a6&&a7&&a8&&a9&&a10&&a11&...
[6 replies] Last: 1 <= age && height && weight && date_of_birth /*etc*/<= 6; Just l... (by shacktar)
October 2011 Pages: 1... 545556575859
  Archived months: [sep2011] [nov2011]

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