Beginners - December 2009 (Page 13)

by lumbee
Trying to read data from file into array...
 
...the code I am working with is below. The cout statement inside the while prints the appropriate character to the screen fine, but the myData = ch statement ...
[2 replies] Last: ...thanx melkiy...amazing how you just can't see a problem like that..... (by lumbee)
by epszxz
How I can get multiple cout?
 
I need to get a "cout" to print multiples times without having to do the "cout" manualy? Is there anyway to do it?
[3 replies] Last: printf, or make a menu function or some such that takes an array as pa... (by gcampton)
how do you use eof?
 
Hi guys I'm trying to write a program for class and I'm having trouble getting it to read all the values in the input file and outputting them. Sorry about aski...
[8 replies] Last: no eof marker? what kind of error? (by gcampton)
by Krypt
The
 
here
[3 replies] Last: I see no code. But is the program drawing as if it were a maze generat... (by Spinage209)
rArrays needed to keep track of multiple objects?
 
So i am doing a lab and i am wondering if i need an array to keep track of all the objects? Say i am drawing cubes every time i click a button. It has gravit...
[2 replies] Last: Yea, i asked around today. Thanks anyways. (by Spinage209)
goto skip_loop;
 
#include <iostream> #include <string> #include <windows.h> using namespace std; int main() { SetConsoleDisplayMode(GetStdHandle(STD_OUTPUT_HANDLE),CONSO...
[4 replies] Last: Much better form: if (dolazak == "da"){ cout << "Volim te cu... (by Disch)
Simple Web Crawler
 
Hi all, I'm new to C++ but not to programming. I'm trying to create a console application where I would enter the URL of a specific stock/financial message b...
[no replies]
Passing array to functions with pointers
 
I really need some help with my last assignment of the semester. I cant figure out how to pass arrays to functions. I have been thinking it would work best if I...
[3 replies] Last: instead of myfile >> numarray.... Edit: nvm, didn't read first post... (by gcampton)
Finding a specific line in a file?
 
I was wondering if anyone new of some text to read or if they know of the syntax itself on how to search a file for a specific string. After I find that string ...
[13 replies] Last: you can have a running count, or as you say use vectors. (only reason ... (by gcampton)
Program
 
Even if I put runetime library to Multithreaded debug, people can't open my program on other computers. Please help.
[1 reply] : Google vc runtime redist. (by helios)
by Kuzco
Box-drawing characters
 
Hi there. Do anyone know how to use box-drawing characters in console applications? I use Visual Studio 2008 if it matters :)
[4 replies] Last: "\xDE\xAD\xBE\xEF" (hexadecimal) or "\336\255\276\357" (octal) (by helios)
by alnews
How to fill an array with some specific elements of a matrix?
 
Hi all, I'm a new member of the forum. : ) The Basics of Computer Science course that I'm attending is coming to an end and I'm exercising as much as possibile...
[6 replies] Last: Yes, it was so simple, how stupid was I! Here's the full working code... (by alnews)
Fun(object** p,int n) not calling child member function
 
void get_station(station **p,int n) { cout << p << endl; for (int i=0;i<n;i++) { cout << "ADDRESS p[" <<i<<"] in #get_station# " << p << endl; cout...
[8 replies] Last: ^_^ (by JRevor)
simple program
 
#include <iostream> #include <string> #include <windows.h> using namespace std; int main() { SetConsoleDisplayMode(GetStdHandle(STD_OUTPUT_HANDLE),CONSO...
[7 replies] Last: Thanks dude *solved* (by closed account 2E0XoG1T)
Anybody use eclispe?
 
I am having trouble using eclipse, I use it for java so I downloaded the c++ version, but just making a simple class to test there is no output in console. ...
[no replies]
Need adive with a portion of my tic tac toe project.
 
void getInput() { do { bool isMoveValid; string playerInput; cin >> playerInput; // Check for a valid move if (playerIn...
[6 replies] Last: When you use .at() on the string, it returns a character. You need to ... (by Zhuge)
by zzvsst
a problem about switch&while statement.
 
This is an example about switch statement in the book I'm reading. This program is used to determine how many vowels in a char. Here are the codes: char ...
[5 replies] Last: When you input an EOF character, then the while loop evaluates cin as ... (by Zhuge)
adding a menu to my program
 
here there, im trying to insert a menu into my program, it only need to be a simple one so that the user can select which stage of the program they would like, ...
[2 replies] Last: yes, I like to put menus in do while loops: do { cout << "ME... (by Soko)
Nooby Question
 
My text wants me to predict what the value of x is after the statements are executed. The answer in the back gives 2.8; however, when I test it on my computer ...
[4 replies] Last: Sweet. Thanks. Thats what I came up with when I plugged it into Dev-... (by mushroom000)
pass by reference college assignment
 
Hello. I've searched your archives and found a similar question to mine and although I found your replies useful I am now stuck. I am doing a project call NEW...
[11 replies] Last: Yes, that's it. The indentation is weird though; why are all of the cu... (by Zhuge)
December 2009 Pages: 1... 1112131415... 23
  Archived months: [nov2009] [jan2010]

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