Beginners - August 2012 (Page 32)

PLEASE help I have just a few hours to send this in.
 
I need to write a program that uses a WHILE LOOP, gets integers from the user. Then, USING NESTED FOR LOOPS, creates a triangle of that number using asterisks. ...
[2 replies] Last: I've known some of my programs to take a few days. You should not wai... (by IWishIKnew)
Cannot make the get pointer of the file go in start
 
I have a problem with the following program... 1. In the first part, I try to count the lines of a text file. All things are good since here... 2. In t...
[4 replies] Last: Thanks friend for your advices ....!!! You helped me a lot ..!!!! (by ThomasMylonas)
by Zu007
Error im graphics program
 
/*A program to draw a space with stars*/ #include<graphics.h> main() { int gd=DETECT,gm; int i,x,y; initgraph(&gd,&gm,""); line(0,0,640,0); li...
[4 replies] Last: then check if graphics library is enabled or not?Don't know procedure ... (by Akshit)
Compiling Problem.
 
If you haven't seen my last post- I am new to C++. I'm having trouble compiling this simple program: #include <iostream> int main() { using nam...
[9 replies] Last: Thanks Bufflez, I took a note of that. (by Bobby94)
My First C++ Program xD
 
Im beginning to learn C++, right now I am in the variables lesson. I am using Visual Studio C++. Anyway, this is my first C++ program. It is very simple, it jus...
[16 replies] Last: Yes, it's working. Thanks guys! (by Bobby94)
by Owain
Dynamic allocation of multi-dimensial arrays
 
Hello, does anybody know how to dynamicly allocate multi-dimensial arrays? This dosent seem to work: void blah_blah(int x, int y) { int *foo = NULL; foo...
[4 replies] Last: int **pointer = new int *[range of elements] // this allocates a poi... (by BegProgrammer)
Assigned string value is different than returned value
 
Hi, My simplified code is the following: function blablabla(){ .... for(int i=0; i<2; i++){ for (int j = 0+4*i; j<4+4*i; j++){ stri...
[1 reply] : The object ostringstream name; is created in the function nameHist. ... (by Moschops)
Dealing With "for" Loop
 
Hi, guys If you are new to C++ and finding difficulty in dealing with for loop. Here's a program which can help you understanding the multiple for loop concept...
[no replies]
Yet another problem I can't solve
 
I have yet another program that I can't figure out and am relying the members here at C++ to offer some assistance: I have the program written but I am lost in...
[2 replies] Last: Can you show where the mistake is? (by jmckemy)
by tatai
average from column
 
I have 1000 rows in a column in a txt file. i want the average of each five row of the column. like average of 1 to 5, then average of 6 to 10, then 11 to 15 an...
[6 replies] Last: I am using the following code for the purpose. I need to get the avera... (by tatai)
Arrays With Pointers!!
 
Could someone please help me with this project. I have to have it turned in by Sunday August 12th. This is where I am so far. This is the original Resistor clas...
[2 replies] Last: The code here is the original class. I am suppose to redesign the code... (by treyriggins)
Need a point in the right direction
 
Hi I am working on a project for school and a point in the right direction please. I am not here for you to write the rest of the program for me but I am rea...
[3 replies] Last: That worked! Thank you so much! It was my IDE that was the issue. (by travisco)
by jorz
define
 
Hi all, can anyone tell me what the following means #if !defined ( _SOME_HPP_ ) #define _SOME_HPP_ my source #endif what does _SOME_HPP_ mean a...
[3 replies] Last: Its macro I suppose (by Akshit)
Path to Useful GUIs
 
What’s the quickest route to the implementation of useful GUIs for a novice? I have a number of Win32API resources, including the 1998 book by Petzold, and h...
[no replies]
Is there a way around this? LNK2005 already defined in xx.obj
 
I have 4 files: bank.h includes function definitions and structs. bank.cpp includes main()and function code. customer.h class for customer customer.cpp ...
[17 replies] Last: If you need a shared variable, use extern. Define it only one time in... (by scarywoody)
by raps
searching from a file
 
if in a file there are some data like as: red 10 40 yellow 20 50 green 30 60 then if i give input from keyboard : green then output will be : 30 ...
[4 replies] Last: Thats because your code only gets the first line, and you really shoul... (by IWishIKnew)
Is there anyway to outfile >> something only when outfile is not existed
 
Basically I am trying to make a data buy .txt file. I want the first column to be title of the data, but only the first column. I dont want to type in a txt the...
[14 replies] Last: Intresting. I haven't gotten to threads (I like to call "Threads" mul... (by IWishIKnew)
1value required as left operand of assignment
 
This is the code: void pickupitem(int item) { bool slotfound = false; for (int i = 0; i == itemcount && slotfound = true;) { i...
[3 replies] Last: Well, I added the other '=' in and now there is no error. And thanks n... (by tyriuth)
by Zu007
how to draw a graph for equation
 
i'm making graphical Calculator for equation. e.g Eq xy+y Inputs x=-10,y=-5,y=10 and draw a graph. how to make in c or C++ or OOP in C++
[2 replies] Last: these inputs to draw a graph. by these inputs how to draw a graph (by Zu007)
Getline help
 
I am trying to use the getline function inside of a function. I am calling the setMakeModel function in my constructor. void setMakeModel () { co...
[2 replies] Last: Thank you for the help it worked great. void setMakeModel () { c... (by Deathheart14)
August 2012 Pages: 1... 3031323334... 45
  Archived months: [jul2012] [sep2012]

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