Beginners - May 2009 (Page 7)

by Forte
Stupid question
 
int main() { int m ; int t; for(int i=0;i<3;i++) m =i*10; for(int j=2;j>0;j--) { t=m ; ...
[3 replies] Last: Breaking your sourcecode into logical passages: for(int i=0;i<3;i++)... (by Bazzy)
having trouble with prime algorithm finding prime numbers inside arrays
 
this is my program.... it gets array input from user... then goes threw the data and finds prime numbers.... I've changed around the code plenty of times and st...
[3 replies] Last: oh wow... now i see 2 little flaws i made... lmao thanks a lot man....... (by brokenbot)
stuck on next step
 
My code below is six rows by six columns of zeros in which I would like to eventually like the last five left side cells to be numbered, and the last five top c...
[1 reply] : Hi CRBottini, I assume your print function is supposed to output the... (by fauntleroy42)
how to send data through coms
 
i need to send data throgh my com1 exit. how am i doing it? thanks
[2 replies] Last: thanx duoas (by gilkahan)
Issue with vector<vector<int> >
 
So, I'm trying to make a very simple class where I have a vector<vector<int> > that I am using as a 2d array, basically. The thing is I keep getting this error...
[5 replies] Last: Yeah that's good. (by firedraco)
by Kanner
Assigning Physical values to pointers
 
I am using C++ to write a program for a u-processor circuit. In trying to control hardware, I have things mapped to specific memory addresses. I know I will h...
[2 replies] Last: http://cplusplus.com/forum/beginner/1777/ (by Incubbus)
cannot get it to run right.
 
Just trying to print out one line for a spreadsheet where I will eventually have five.Getting error: no match for 'operator<<' in 'std::cout << rowOne' #incl...
[5 replies] Last: Thanks Guys, big help. Now I am trying to get labels for the rows and ... (by CRBottini)
by awross
Reading in a file causes a seg fault
 
I'm writing a program to store a library of tv shows. I'm trying to store the tv shows in an external data file that will be read into the program on startup an...
[2 replies] Last: Whatever list is, you are reading too many records. Also, you ar... (by Duthomhas)
by Joe101
Constructor Confusion
 
Can someone explain why the car's default constructor is not being called? main: #include <iostream> #include "Car.h"; using namespace std; Car::C...
[5 replies] Last: thanks! (by Joe101)
by Noha
Graphic library in C++ (1,2)
 
Hi all, I tried to include the graphic library in C++ as in C: #include <Graphics.h>, but got an error saying: "no such a file or directory".. How bad! How th...
[21 replies] Last: Thats what wanted to hear, because don't want my mind to be messed up ... (by Noha)
by meb111
String input
 
Ok I have been having a problem... When I ask for a string and use spaces it stops at the first space. I dont want to use a char array. And heres my code: ...
[5 replies] Last: Isn't the getline needed part of the <string> header? Why would you w... (by kempofighter)
by Forte
Error?
 
#include "bg.h" #include <fstream> #include <iostream> #include <math.h> using namespace std; int main() { bgCreateWindow(); float x=...
[4 replies] Last: Lol, that was easily a bad mistake on my part. Thanks. (by Forte)
[Linker error] undefined reference to `vtable for OBJECT
 
Hey all, I'm having a problem that i simply cannot fix. here is my code: StaffMember.h #ifndef StaffMember_H #define StaffMember_H #include <string> ...
[4 replies] Last: redefined the wage() function for the derived classes how do i go... (by NerdyOgre254)
Container
 
Please Help me this Program i tried but am so young in programing; Two files be placed , to certain composition of (warehouse of) simple project entering...
[1 reply] : 1. This is not a homework service. 2. Even if it was, the paragraph i... (by helios)
by Noha
Linked lists!
 
Are linked lists part of OOP? Didn't find it in the tutorial here! Just wonder if it used in C++.
[2 replies] Last: Cool, thanks :) I have a lot to learn until can use STL properly! (by Noha)
trouble with for loop printing data(arrays)
 
hey im making a program that has two arrays. This program takes input from user and puts into the arrays using for statements. After all numbers entered its ...
[5 replies] Last: alright thanks guys problem was solved (by brokenbot)
asking question about negative variables...
 
im trying to make a kinda complex algorithm.... this algorithm will use a bunch of goto statements inside two for functions for (int a=0; a<=b; a++) ...
[6 replies] Last: thanks all... and sorry it took so long to get back i program once eve... (by brokenbot)
Base class array with deried classes
 
Hello, I have a problem trying to access functions from the derived classes that are not virtual functions. So in my code I can not use the add(sting s) or ...
[3 replies] Last: Alright. That makes sense. I've been winging this whole program so n... (by tfrazi21)
Did I convert this correctly
 
I am trying to convert 0xffffffe0 to binary using 2 com. I come up with 83. But that does not seem right. E0 = 11100000. what did I do wrong?
[2 replies] Last: Wait. Are you trying to convert the hex representation to raw binary, ... (by helios)
circular variables
 
I'm running bloodshed and I typed in // operating with variables #include <iostream> using namespace std; int main () { //declaring variables ...
[6 replies] Last: The variable program is the "it". Sorry about that. I had the variable... (by monkeyfeet)
May 2009 Pages: 1... 56789... 21
  Archived months: [apr2009] [jun2009]

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