Beginners - November 2010 (Page 12)

Arrays
 
How i write this code? No I will explain the code clearly? some one help me....!:( Example of two identical (Exactly same) arrays: Array1 Array2 1 1 2...
[2 replies] Last: Ill get you started with inputting the first array notice that i us... (by shredded)
by hit45
C++ tutorials question about variables
 
I'm new on this stuff for the most part. I'm practicing using the tutorials on this site; Documentation-C++Tutorials-Variables/data types. I'm trying the on...
[8 replies] Last: ;p good one. The tutorial uses that as the example. I learned about 's... (by hit45)
by cboyll
matrix function?
 
im trying to write a simple program for a class where u write a function that takes a number (n) and a character and prints a matrix of NxN then uses a menu to ...
[no replies]
Passing by Reference
 
I wrote this function: ostream& operator<<(ostream& out, LoginData& a) { out << a.getLogin(); return out; } and I originally wrote the first line ...
[4 replies] Last: passing by reference allows you to access the data as if it were by va... (by jsmith)
Confused with loops and random numbers
 
I've been very confused on how loops work and how random numbers work. I want to make a loop that will end once 1000 is chosen. I want 1000 to be chosen from ...
[1 reply] : pseudo-code: declare number_chosen; do number_chosen = ra... (by jsmith)
What is this?
 
string string1("Confused"); int length = string1.length(); char *ptr1 = new char[length +1]; *ptr1 = 0; string1.copy(*ptr1, length, 0 ); *ptr1 = '/0'; ...
[1 reply] : string1.copy(*ptr1, length, 0); *ptr1 = '/0'; Neither of these ... (by Disch)
Array input from file
 
The compiler says my program is fine, but it doesn't work properly. In my program I put the first number from a file into integer employee_size, and the rest in...
[1 reply] : the test file contains: 10 3 0 1 2 4 -7 1 3 2 1 (by Spiffy P Mcgee)
How do I fit this program into a array and function?
 
This program I'm working is just for studying purpose's for a c++ test I'm having soon and would like some context on how to make this program by switching its ...
[no replies]
by Eyecon
Functions Question
 
Hello, I want to make a function which will cin a string will count the characters and will give the word and the number of the characters back to main()...
[11 replies] Last: char Setsolution(char array , int n); Setsolution( solution, wordsiz... (by ne555)
Getting undefined reference to vtable errors
 
I'm guessing it's because I've written this incorrectly, but I'm not sure what to look up in order to figure out what's wrong. undefined reference to `vtable...
[2 replies] Last: Oh..wow, I feel like an idiot. Thanks. (by pabloist)
File input using >> problems
 
If someone could explain to me why this code doesn't work, that would be great. #include <iostream> #include <iomanip> #include <fstream> using namespace ...
[1 reply] : for (int count = 0; count < employees ; count++) why would you comp... (by hamsterman)
Problem with inputing numbers
 
Hello, this is my first time taking a programming class and I started with C++ at my local community college, unfortunately I seem to have run into a problem in...
[1 reply] : The format is wrong, use "%lf" for double (by ne555)
by Nico
How to use variables from a class in an other class?
 
Hello all, I am trying to use and change the values of a variable in other classes. I'd think this should not be to difficult, but I don't get it to work as...
[2 replies] Last: Thank you for your reply. I agree the code is a bit messy at this mome... (by Nico)
Fraction functions
 
Hello, I am a beginner in C++ and need some help with some functions.. Write a function of shortening fraction. Write functions to add, subtract, multipl...
[2 replies] Last: // Datoteka: N14.cpp // Funkcije za krajsanje ulomka, za sestevanje, ... (by majselx)
by lare26
Terminated unexpectedly
 
I ran my code and got an error. Process terminated with status -1073741676 (0 minutes, 10 seconds) The console terminated unexpectedly. Here is my source: #...
[4 replies] Last: Thanks for your help, hamsterman. Somehow I fixed it. It was the way I... (by lare26)
Build array of values from data file.
 
Hello, I am new to this forum; please forgive me if this question has been previously posted. I did scan the site, however, some of the answers were over my...
[15 replies] Last: that's because 'test' already does the reading, so it happens twice. (by hamsterman)
by firix
referenced in function " void *thiscall B::`scalar deleting destructor'
 
Hi, a.h #pragma once #ifndef _A_H_ #define _A_H_ #include "b.h" class B; using namespace std; class A { public: B *b; int i; A...
[18 replies] Last: thank everyone.. (by firix)
by Citis
programming operator +
 
Can I programme the operator + for new data types, like the below example? typedef int pinax ; /*programe the + operator?*/ int main() { ... p...
[5 replies] Last: Thank you, this really helps. (by Citis)
by Maniax
Game Programming
 
For quite a while i have been learning the basics of C++. I read all the documentation on the site and practiced by making different programs. But now I want to...
[3 replies] Last: I downloaded and installed SFML and it seems awesome :) Thanks :) (by Maniax)
how do menus in games work?
 
I implying in the sense that in games on ps3 and 360, the player can easily press back and go forth easily. Whereas, In comparison, in my menus (c++ console)...
[7 replies] Last: Thanks I'll have to check with my lectures with regards to SFML, anywa... (by Blessman11)
November 2010 Pages: 1... 1011121314... 42
  Archived months: [oct2010] [dec2010]

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