Beginners - November 2010 (Page 18)

problems with arrays
 
hi this is my set of codes: bool fireCannonBall(int cannon_x, int cannon_y,int targets , int target_x ,int target_y , int no_targets) { int obj_no1 = 0; ...
[8 replies] Last: yes man you help me a lot and i really appreciate it... (by elvis0288)
What am I doing wrong?
 
For the following code, I received a very low score. I can't get more specific answers from the teachers assistant, and the instructor has never seen or grade...
[1 reply] : 1) Use the subscript operators... 2) Why no for loop at the end? 3) ... (by firedraco)
How to overwrite a .txt file with a .cpp document dev-C++?
 
Hi! Currently im making a little program that can overwrite a .txt file i have included in my .cpp file (ifstream infil("biljett.txt"); I made an example....
[7 replies] Last: johanbest said: Is it possible to make it overwrite a specified part... (by jamesmk)
Comparing and Changing Duplicate Values in 2D Array
 
I am using the following code to check if the first two values in any row of my mx4 array are equal, and if so, to change the value of the 'duplicate' row. Rig...
[2 replies] Last: Okay, basic mistake was that in each of my loops, i will equal j, so t... (by zach2123)
Class with static variable, within Template class
 
I am trying to define a static data member within a class.. Which is within a template class, making each variation of the class have its own value. Get an e...
[6 replies] Last: Yeah, I've decided to split it up. Thanks for that. template<> ... (by Krisando)
by ChrisC
Overloading operators - Questions
 
Ok, so in class our newest program assignment is to overload +, -, *, /, =, and << operators. I've written a class that handles Fractions and right now I a...
[6 replies] Last: Yep, I see where you're coming from now. Was on a different page I gue... (by ChrisC)
C++ and asm putting values into an array
 
Hi guys Firstly thank you for anyone who views this your time is appreciated. I am learning assembly via C++ ( asm) . I have declared an array in c++ and wou...
[no replies]
Input/Output
 
I need some help on what I'm working on right now I'm not asking for an answer maybe some help or a push in the right direction. Here is what I'm asked to do "...
[no replies]
Bubble Sort Parallel Arrays
 
Hello I have been working on a solution to a particular problem where input is read through a file containing the following data Green 91 92 93 Fox ...
[no replies]
Strange behavior
 
So, I coded this simple class: #include <iostream> using namespace std; class FManager { int field ; bool checkWin(int, int); bool used...
[2 replies] Last: *headdesk* Yeah, I was using field.move(3, 3), checking beyond the sco... (by Tarou San)
loop question
 
So I finshed my program for the paint/wallapaper calc, Now Im wondering how do I put a loop in at the end to make it repeat the processing so it'll run the prog...
[1 reply] : int main(){ char choice; do{ //your program goes here ... (by hamsterman)
making a do while within a if statment for a basic attacking system
 
basicly im making a simple attacking system and i need help on making the do while within the if statments. heres the code #include <cstdlib> #include...
[1 reply] : sorted it out on my own using voids etc (by babycakes)
by mzdr
comparing number in an array
 
ok so I have a filled array and wish to compare the numbers within the array to determine the Highest and the Lowest number now I know I need a for loop for th...
[2 replies] Last: void get_hrTmps (int hr_tmps ,int tmp_num); //function for user inp... (by mzdr)
Confused on c++ programming for figuring out perimeter and cost of fence
 
Here's the problem A new house has been constructed in the shape of a rectangle and its backyard needs to be fenced. We need a program that will calculate th...
[7 replies] Last: You still need to keep the function prototypes above the main function... (by Browni3141)
need hlp with C++ code
 
Please tell me why do i get this error saying "error C2181: illegal else without matching if". The last else statement doesn't work. There is a red line under t...
[9 replies] Last: I might be getting this rule mixed up with Visual Basic. I'm pretty su... (by Browni3141)
by nels15
Having trouble with school project
 
This is my assignment for my programming class at school and I am so confused and really need help with this. Here is the assignment. Please help if you can. ...
[2 replies] Last: okay. well really i don't understand it very well and i think i have t... (by nels15)
by toks
problem with string
 
Hello friends, well, actually i dont like the title ... But, i have the code below : char temp = "I am from Jupiter" string useful ; // the useful ...
[6 replies] Last: Thanks sohguanh, i did not notice that reference . i am trying ... (by toks)
by Fedot
Synchronize Time
 
/* asctime example */ #include <stdio.h> #include <time.h> int main () { time_t rawtime; struct tm * timeinfo; time ( &rawtime ); timeinfo ...
[1 reply] : You should look for some information about socket programming. You sho... (by screw)
by Brayan
Decimal to binary...
 
I've written a program witch converts dec to bin: #include "stdafx.h" #include <iostream> #include <conio.h> using namespace std; int main() { in...
[1 reply] : line 22 should be a=i-1; line 23 the condition should be i>=0; ... (by jsmith)
Extracting from strings
 
I have a string called string arraywall In arraywall is wall 10 10 20 20. How do you extract the numbers from this into 4 float numbers. Thanks Bo...
[1 reply] : stringstream ss(arraywall ); float a,b,c,d; ss >> a >> b >> c >> d;... (by Athar)
November 2010 Pages: 1... 1617181920... 42
  Archived months: [oct2010] [dec2010]

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