Beginners - November 2011 (Page 58)

by smelas
passing array to a function
 
Hello, #include <iostream> int main() { int array1 = {2,3,6}; for (int i=0; i<3; ++i) { std::cout <<...
[2 replies] Last: smelas, I hope this helps, this is how I learned how to pass arrays in... (by gwiz)
trying to save a game, load a game, or quit
 
I'm having trouble figuring out the concepts of how I would load and save a game of mindsweeper. I thought I could use something like.. #include <iostream> #i...
[1 reply] : You should put some variable name. For an example: Declare int variab... (by happykiller)
problem with trying to print output
 
#include <iostream> #include <stdio.h> using namespace std; int maint(){ int num1; cout << "Enter a number:"; cin >> num1; if(num1 == 1){ fp...
[7 replies] Last: C++ knows nothing of printers. Nothing. It also knows nothing about ke... (by Moschops)
Check for whole number.
 
hi, only at this a couple of weeks. im stuck with a problem in that i need the user to enter two numbers, and to then check if the second divides exactly into t...
[2 replies] Last: y = c*x + r Check if r is 0 (by ne555)
by alhanz
Counting problems
 
Ok heres the problem, I have a list of options in a menu. One of the options can only be pressed ONCE!! If pressed one more time it will show a message that...
[2 replies] Last: Just a general remark: your first line doesn't make sense. You're chec... (by Gaminic)
finding minimum through array & random number generator
 
#include <iostream> #include <string> #include <ctime> #include <cstdlib> using namespace std; int main() { int count; int choice; i...
[1 reply] : The problem is you never initialize max,min , so they contain junk (o... (by eypros)
question in swapping
 
i have a little problem i want to make 32 bit swap i have this number 0x 434232340a4cd995 and i want it to be ox 0a4cd99543423234 here is my code but it doesn't...
[1 reply] : When you say swap you mean something different than this: There are 2... (by eypros)
header files and source files c and c++ difference
 
hi I have to use "c" when working on the gameboy advance and I'm trying to learn some diffrences going beyond the lack of classes and abstract datatypes. ...
[no replies]
by clouds
priting out individual wages for employees with function
 
Hi guys, I am trying to use array with function to print out wages of each employees. something wrong with my function of the last part of my program, givi...
[no replies]
Starting a For loop at (-1)
 
Is there any reason that I can't start a For loop at (-1), rather than the usual choices of 0 or 1 (or any other positive integer)? I'm not getting an error mes...
[3 replies] Last: Thanks! (by joatmon)
looping a contact number
 
...can somebody help me solve this problem..??? if the user has no input..error message should appear(should not be empty/you must input contact number)...but ...
[3 replies] Last: OK...did your teacher specifically ask you to use getch()? If so, is s... (by mzimmers)
by clouds
class with Array
 
Hi guys, I am very new to c++ programming.Can you please give me an idea how I can use array in class? Do I put like class PayRoll { priv...
[no replies]
Checking if a move has been made?
 
Hello, I am currently making a Dots-And-Boxes program. I think it would be easiest to output the grid as a for loop. Example: for (int i=0; i<x; i++) ...
[no replies]
by bvs
wireless sensor network clustering
 
Hi all, I am doing a simple project in wireless sensor networks, adding security against wormhole attacks. The requirements are: 1. need to position t...
[no replies]
need glut to open file
 
I am developing a small game with OpenGL that is like a frogger on its side type thing. I tried to give the .exe file to my friend and he can't open it because ...
[1 reply] : Somewhere on your computer you should find glut32.dll (or glut64.dll).... (by shacktar)
by sbsbsb
error C2228: left of '.*' must have class/struct/union
 
The following is source code from my professor. It generates 4 C2228 errors at the bolded places below. I've browsed the forum, but any help or a link to anothe...
[2 replies] Last: Thank you so very much! Now to start work on the actual project. (by sbsbsb)
by aj918
Loops????????
 
I am taking my first C++ course. My book hasn't been a great help. So far anything that I have questioned I have been able to find an answer to online. This ...
[2 replies] Last: @Massive Thanks, that helped me make a little more sense out of them. ... (by aj918)
Creating a GUI
 
I'm creating a C++ pokemon game that allows you to choose your pokemon and level but the program generates the moves and everything else for your pokemon. The ...
[10 replies] Last: I got your links Clearly you did not... The first link I posted had ... (by ascii)
by pooshi
More Hashing Problems
 
I have been provided a function with certain perimeters that I must use. When I run the code I get "Unhandled exception at 0x0020129d in LabShell.exe: 0xC000009...
[no replies]
getline()-ing a char?
 
In a struct, I have this: const int Len = 40; char fullname ; In another file, I must get data from the user to put into the array... Though I'm no...
[1 reply] : use a function called strcpy, you must have #include <string.h> #... (by RonTheMoron)
November 2011 Pages: 1... 5657585960... 65
  Archived months: [oct2011] [dec2011]

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