User Profile

Collapse

Profile Sidebar

Collapse
HypeBeast McStreetwear
HypeBeast McStreetwear
Last Activity: Dec 3 '08, 11:35 PM
Joined: Sep 3 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • HypeBeast McStreetwear
    replied to cellular automata c++ help
    in C
    Like So...? I'm on my PC at home, so I don't have a compiler one here. Can you tell me if it at least looks... right? :-\

    Code:
    #include "stdafx.h"
    #include <iostream>
    #include <fstream>
    #include <math.h>
    using namespace std;
    
    ifstream inFile;
    ifstream inFile2;
    ofstream outFile;
    
    void printOut (int[10][10]);
    int OFForON (int[10][10],int,int);
    ...
    See more | Go to post

    Leave a comment:


  • HypeBeast McStreetwear
    replied to cellular automata c++ help
    in C
    Thanks man, I've been working on it and here's what I have so far. Unfortunately, I can't even get it to read in the file (As I suspected would be the problem).

    Code:
    #include "stdafx.h"
    #include <iostream>
    #include <fstream>
    #include <math.h>
    using namespace std;
    
    ifstream inFile;
    ifstream inFile2;
    ofstream outFile;
    
    void printOut (int[10][10]);
    ...
    See more | Go to post

    Leave a comment:


  • HypeBeast McStreetwear
    started a topic cellular automata c++ help
    in C

    cellular automata c++ help

    Hi,

    I've been doin a project for my C++ class pertaining to Cellular Automata. I'm having a little trouble so before I start I'll give you guys all the details so what I know, you'll know.



    In a nutshell I know I have to start with an array in "Generation 0" and the code essentially will create a copy but I don't know how to start.

    Can you guys help me? I mostly just need a template...
    See more | Go to post

  • Yea sure.

    [/IMG]...
    See more | Go to post

    Leave a comment:


  • [| -- C++ Help Please: Counting Vowels in a Given Text -- |]

    Hi I'm supposed to be writing a program that counts in a given text, the words that contain at least three different vowels (a,e,i,o,u)

    For my test run I have to use "unquestionably ", but I can't anything to work. Here's what I have so far.

    Code:
    #include <iostream>
    #include <string>
    #include <cstring>
    
    using namespace std;
    
    void stringout();
    ...
    See more | Go to post

  • Thanks alot for your help but I think Im just gonna settle with what I have.
    See more | Go to post

    Leave a comment:


  • Yea, Im reading my textbook. Its just a matter of what to write and where to put it in this program :-/
    See more | Go to post

    Leave a comment:


  • Ok. Im so confused. But yea, I get the prompts in the output box, like I can manually input AGE, SCORES etc. But just dont understand how to use the ifstream :-/
    See more | Go to post

    Leave a comment:


  • Ok it ran but I still get "Input Candidate's ID#"

    I know I have to put in the Candidate's # but where? And where will the program read the info from? The Notepad file?
    See more | Go to post

    Leave a comment:


  • Oh lol, thanks tho. I'm so close >=(

    I get this now error now:

    -
    Code:
    ----- Build started: Project: JudgeLab3, Configuration: Debug Win32 ------
    Compiling...
    JudgeLab3.cpp
    c:\documents and settings\half' amazin\my documents\visual studio 2008\projects\judgelab3\judgelab3\judgelab3.cpp(82) : fatal error C1075: end of file found before the left brace '{' at 'c:\documents and settings\half' amazin\my documents\visual
    ...
    See more | Go to post

    Leave a comment:


  • See now I get this output

    Code:
    ------ Build started: Project: JudgeLab3, Configuration: Debug Win32 ------
    Compiling...
    JudgeLab3.cpp
    c:\documents and settings\half' amazin\my documents\visual studio 2008\projects\judgelab3\judgelab3\judgelab3.cpp(10) : warning C4101: 'tievote' : unreferenced local variable
    c:\documents and settings\half' amazin\my documents\visual studio 2008\projects\judgelab3\judgelab3\judgelab3.cpp(82)
    ...
    See more | Go to post

    Leave a comment:


  • Yea, I modified it. Can you repost the program you have?
    See more | Go to post

    Leave a comment:


  • Thanks but I tried inputting a file but I don't know how.

    Is the output going to be on the Notepad file "results.da t" or in the black output box?

    Plus I keep getting this error:...
    See more | Go to post

    Leave a comment:


  • HypeBeast McStreetwear
    started a topic C++ Looping/Inputting data (fstream)
    in C

    C++ Looping/Inputting data (fstream)

    Hey Guys

    I have to make a program where it accepts/denies applications into a club. The program should read in information about applicants (None was given so I believe I have to make up some applicant info in Notepad) and output a statement of acceptance or rejection for each applicant.

    Each input line contains the follwing information about the applicant:
    • Applicant's ID number (0-9,999)
      Age (0-120)
    ...
    See more | Go to post

  • HypeBeast McStreetwear
    started a topic trouble with inputtin 12 vaules
    in C

    trouble with inputtin 12 vaules

    hi I am doing a program to accept people into a society and I have some of the code setup already but it won't let me input 12 different values, how would i do this?...
    See more | Go to post

  • HypeBeast McStreetwear
    replied to C++: Looping Issue
    in C
    Thanks man, I'll try that out.
    See more | Go to post

    Leave a comment:


  • HypeBeast McStreetwear
    started a topic C++: Looping Issue
    in C

    C++: Looping Issue

    Hello,
    I was wondering if anyone could give me a hand. I need to write a program that helps process applications for membership in a Club. Its supposed to read in information about applicants and output a statement of acceptance for each applicant.

    This is program I am using:

    [code=cpp]#include <iostream>
    #include <fstream>

    using namespace std;

    int main (){...
    See more | Go to post

  • C++ Experts please help: Solving for X & linear equations with C++??

    Hello everyone. I got a assignment that states.

    The set of linear equations
    a11X1 = a12X2 = c1
    a21X1 = a22X2 = c2

    May be solved using Cramer’s rule:
    X1 = c1a22 – c2a12
    a11a22 – a12a21

    X2 = c2a11 – c1a21
    A11a22 – a12a21

    Use these equations to design, write, compile, execute and debug a program that will solve for X1 and X2 in the...
    See more | Go to post

  • HypeBeast McStreetwear
    replied to C++ Algorithm Help
    in C
    Oh my god. Thanks! It worked!

    I really appreciate it!
    See more | Go to post

    Leave a comment:


  • HypeBeast McStreetwear
    started a topic C++ Algorithm Help
    in C

    C++ Algorithm Help

    Hi guys,

    I'm and Engineer major which means I have to take this C++ class.

    Long story short, I need help on our first assignment. I have to admit Im a complete N00B and I'm completely freaked out by this class.

    Long story short, I have to modify this formula:

    #include <iostream>
    using namespace std;

    int main()
    {
    double space, f0, f1;
    ...
    See more | Go to post
No activity results to display
Show More
Working...