Beginners - April 2009 (Page 18)

by Bv202
^x
 
Hi, I'm following absolute beginner tutorials c++. Now, in the first exercise, there is asked to let the user input a number (variable "number" for example) ...
[6 replies] Last: it will be better for you if you try to write the function yourself an... (by writetonsharma)
How to make it work on my computer?
 
Ok I know yuour need a compiler to run the program C++, but how do i make it just work on my computer...Like if i write a program and want to test on one of my ...
[4 replies] Last: I know that but where do I put it, do I hit run and wait for the littl... (by Gonzo 3 5 7)
by s56
typedef, define and array
 
when I'm using something like #define DIR_TOTAL 4; ... typedef int T15Array ; istead of typedef int T15Array ; I have pointless error m...
[4 replies] Last: thanks, with #define DIR_TOTAL 4 also works :) (by s56)
by mkl15
write corrupts data
 
So, i'm trying to copy data and add 32kb of 00 between every 32kb (don't ask why) However, the data gets corrupted after the first 32kb, so the first 32kb from...
[12 replies] Last: That was an attempt at psuedo-code. (by kbw)
Create Desktop shortcuts in C++
 
Can I get some help to create a Desktop shortcut and a Beep sound in the PC speaker in C++ ? Thanks in advance, (youngstar)
[2 replies] Last: Will post you a code to create that in some time.. :) (by writetonsharma)
For Loop and Creating Averages
 
If I want to make program that calculates the averages I have a problem with the averaging part. If I have 5 different people on each team and there are three t...
[5 replies] Last: #include "stdafx.h" #include <iostream> using namespace std; ... (by closed account 48T7M4Gy)
storing variable & char ?
 
How do i store a variable as char and number? Do I have to use a string?
[3 replies] Last: okay thank you (by DoomCarnage)
by Bv202
I can't compile?!
 
Hi, I've decided to learn C++, so I've download Visual c++ A few days ago, I've tried some basic things from a tutorial and it worked fine, but now, now I w...
[2 replies] Last: Hey, After a couple reboots, it seems the problem is solved. Thanks... (by Bv202)
Hello
 
I am new to this web site...I am take Programming 1 C++...I have one question today...I have a compiler at home but at work I can not download a compiler becaus...
[1 reply] : see this: http://www.comeaucomputing.com/tryitout/ might help ... (by writetonsharma)
stopping a loop
 
Can someone help me understand how to stop the loop when the user search for an item? I noticed that if I use only int x=0; the program works as it is suppose...
[7 replies] Last: int found = -1; int lengthOfFoodList = 100; cout << "Enter a pr... (by closed account 48T7M4Gy)
Please I do not understand these programs of my homework!!!
 
What will be the output of int n=4; while (n <=13) { n +=3; if (n>9) break; } cout<<n; What will be the output of n=2; bool s...
[6 replies] Last: good one kevinchkin..!!! (by writetonsharma)
How would I write this????
 
Write a template for a function that will return the larger of two data types. Give the definition of the template only (no prototype necessary).
[1 reply] : http://www.cplusplus.com/forum/beginner/9861/ (by Duthomhas)
How would I write this????
 
Write a template for a function that will return the larger of two data types. Give the definition of the template only (no prototype necessary).
[1 reply] : This is a pure homework question. You must learn to do it yourself. (by Duthomhas)
by Dr01d
Multi-dimensional matrix to file
 
Hello, I am trying to put on a file a multi-dimensional matrix something like the code below. I can write and read a vector ou a uni-dimensional matrix t...
[1 reply] : Watch your loop indices. for (int a=0; a < 5; a++) for (int b... (by Duthomhas)
Having trouble with ADT's, Overloading, and Classes together
 
I'm trying to create an address book application, and HAS to use this AddressBook class and header file (unaltered): const int ENTRY_SZ = 256; class Addre...
[no replies]
Creating a txt file from program
 
How I can I create a txt file from my program?
[2 replies] Last: Thanks! (by Tarou San)
weird behavior of string shifting program
 
Hello everyone! I have a program that is supposed to shift a text to the left by n characters.For example, if I have the text "abcdef" and I shift by 2 charact...
[no replies]
Homework assignment I dont completely understand
 
Create a C++ console application that allows two players to participate in a tic-tac-toe game. The program will be responsible for deciding who wins the game. ...
[1 reply] : Ok I went back and revised some... Anyone want to help me and expla... (by drakenathaniel)
Expression can not be evaluated
 
having some trouble with printing name out to file any thoughts Person.h #ifndef H_Person #define H_Person #include <string> using namespace std; ...
[1 reply] : I don't see a problem but...try using this instead of implying it: ... (by firedraco)
by Gondee
Contents of string array not printing. Printing location insted
 
Hello, first post =) I'm making a tennis stats program, simple one. and i have data about each point in 2 arrays, each 3d and each string. When i print the c...
[4 replies] Last: That was it. Thanks Gumbercules!! I don't know why that would be the c... (by Gondee)
April 2009 Pages: 1... 1617181920... 28
  Archived months: [mar2009] [may2009]

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