Beginners - February 2013 (Page 19)

by T4l0n
float array into function
 
so i made this with int which works properly: #include <iostream> using namespace std; int blue(int array , int num); int main (){ int red ={2,9,...
[7 replies] Last: thanks (by T4l0n)
HELP Trouble With Switch (1,2)
 
I'm having trouble calculating the score of the game. I'm not sure what's wrong so I posted the whole program. I changed the 10 cg's (computer generated numbers...
[21 replies] Last: Nevermind... ignore the post above.. I figured that out. One more ques... (by GammyGoulds)
by DELB
Matrix Effect Main Loop Help
 
int _tmain(int argc, _TCHAR* argv ) { int j = 7; while (true) { int i = 0; // Output a random row of characters while (i < 80) { std::cout << Get...
[5 replies] Last: Hi DELB, I really think you need to go back to basics with C++ You've... (by jim80y)
std::bad_alloc issue
 
Hello, I am working on a program which creates a large pointer array of numbers and then performs several iterations of operations in them. int * u = new int...
[2 replies] Last: Sorry, that was a typo. NVN should have been N. (by goliath11)
by fluffy
boiling point of substance ERROR
 
Im not sure whats wrong with this.It is to ask for the substance bioling piont and tell what it is. Its not compiling. Any ideas? #include <cstdlib> #includ...
[8 replies] Last: Did you read the second post? The one by Duoas? That's the important o... (by LB)
Arrays and Pointers
 
Hey guys, I am very new to C++ and I have a question about arrays and pointers when it comes to determining string length. This is what it's asking: Write tw...
[3 replies] Last: Some handy reading: http://zanasi.chem.unisa.it/download/C.pdf Cha... (by TheIdeasMan)
run this, then re-run it at the end, there is a problem with the gotoxy
 
#include <iostream> #include <string> #include <windows.h> using namespace std; void gotoxy(int x, int y); void clrscr(int x, int y); void input()...
[no replies]
help with this code
 
this doesnt work whats wrong? im a begginer please help #include<iostream> #include<stdlib.h> #include<string.h> using namespace std; struct agenda{ ...
[5 replies] Last: I just told you what's wrong. The code calls read() with no param... (by AbstractionAnon)
by ferfax
inData/outData
 
Hey guys, currently learning the basics. Got a project we we have to write for class and I've got stuck. I wanted to improve the base concept and make it more...
[4 replies] Last: Wow that was really easy thanks man. (by ferfax)
Can anyone show me how to do this problem
 
C-Style String Manipulation Program Write two versions of each of the following functions. The first version (1) should use array subscripting. The second ...
[3 replies] Last: We're not going to do your homework for you. Make an attempt. We'll... (by AbstractionAnon)
by admgr
Help with declaration and implementation
 
Could anyone help me with this tutorial about how to approach it and what to write into the program. //This tutorial assignment will practice the declara...
[1 reply] : You need to write the body of each of the functions outlined. We'r... (by AbstractionAnon)
by rcast
Differences between int& foo and int &foo
 
Is there any difference between int & foo; // 1 int& foo; // 2 int &foo; //3 ????
[8 replies] Last: Alright good, I was a bit confused by the different placements I've se... (by rcast)
boolean test
 
Hi this is my first post. I am taking a programing class for the first time and I am having trouble with one program we are writing. In this program the user pi...
[15 replies] Last: Thank you both I think this will give me enough info to finish this pr... (by adam32885)
openGL question
 
I want to set (0,0,0) to the center of my window. I have done it before, but I don't remember how.
[no replies]
Palindrome Checker: not running correctly
 
This program should reverse a string and be able to check if a word is a palindrome. Everything besides the palindrome checker is working. Any suggestions? ...
[2 replies] Last: You are only checking the first char in your word and in the reversed ... (by Smac89)
Problem with getline()
 
do{ cout << "First name: "; getline(cin, name); system("CLS"); cout << "Last name: "; getline(cin, lastname); ...
[2 replies] Last: would (s)he have to use cin.clear then? (by closed account Dy7SLyTq)
Need assistance with a tutorial on basic functions
 
Below is an entire tutorial from an online source. If possible, I would appreciate any help. I basically need a little direction of how to get started. I hav...
[1 reply] : What is it that you have a hard time grasping? (by TheGrayWolf)
problem in two dimensional array
 
hi help me please , I have a big problem in arrays i want to exchange rows with rows like this A B C D E F G H I J K L M N O ...
[4 replies] Last: Thank you very much , :) (by mohammed1112)
by skpdh
problem with extern and global variable
 
I am trying to use a variable which needs to be accessed across multiple files: Here is how I have it defined //Data.h #ifndef DATA_H_ #define #ifndef ...
[3 replies] Last: You're correct that it's best to avoid global variables. Looking mo... (by AbstractionAnon)
Need Help with Trace to find the value assigned to e. Assume a, b, c are integer, d and e are double.
 
Hi I'm taking an intro to C++ class. I'm lost on a HW assignment Trace to find the value assigned to e. Assume a, b, c are integer, d and e are double. a....
[5 replies] Last: Oh ok Thanks everyone (by mrmd001)
February 2013 Pages: 1... 1718192021... 67
  Archived months: [jan2013] [mar2013]

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