Beginners - April 2013 (Page 29)

5 errors im getting
 
the errors im getting are: In function 'int main()': error: expected 'while' before '}' token error: expected '(' before '}' token error: expected prima...
[7 replies] Last: Thanks iHutch :) (by Fransje)
Tetris Help
 
Hello, I have an assignment to program Tetris and I need help. I decided to make the program read the shapes from a text file. How do I do it?
[1 reply] : Presumably you're familiar with file streams? It seems a little odd t... (by MrHutch)
by zmlink
ok think i got this really close to working cant figure out whats wrong!
 
algorithm i have to use.. // Start // Declarations // num dollars // output "Please enter the a whole dollar amount (no cents!). Input 0 to termi...
[4 replies] Last: Just want to say that there is no need for this: bills = (dollars-(d... (by fg109)
Help me pls
 
How to open multiple file .txt in project using dev c++?
[1 reply] : Do you mean to read data from text files into your program? (by MrHutch)
split numbers into digits using vectors
 
I want to split number entered into digits using vectors (correct me if I'm calling it wrong). It doesn't work and I don't really have any idea why. It compiles...
[12 replies] Last: stoi is a function from the C++11 standard that converts a string to a... (by fg109)
Binary search tree issues
 
kjaswdqeeas
[6 replies] Last: thanks for not helping. I solved all problems. we are not paid her... (by writetonsharma)
This is starting to piss me off :-(
 
What is wrong with this code? Compiling error: `fullname' has not been declared struct student{ char fullname ; char hobby ; int ooplevel; }; int getinfo(...
[9 replies] Last: Even if you add the missing parenthesis this is not valid. Indeed. ... (by Catfish3)
by tpinon
multi D array clear buffer?
 
Learning multi-D arrays. I have this menu program I'm trying to write that is returning some number I'm not expecting for case 3 and I'm not sure why. Do I need...
[4 replies] Last: oh right! thank you again! (by tpinon)
Can I please get some help with my c++ homework?
 
This is the assignment For this assignment you will be required to write a C++ program which accepts a text file containing information about a series of hi...
[10 replies] Last: I read the tutorial and looked at examples online and I gave the assig... (by cbplayer)
Guess My Number problem!!
 
Alright Here Is The Problem Write A Program That Ask A user To Choose A Number Between 1 And 8 In His/Her Mind Then With 3 Question Guess The Number Here w...
[3 replies] Last: Thanks Man I Have To Say This Is My First Time With C++ and This is ... (by amir333)
Algorithm Help
 
Hello, I've been assigned an encoding/decoding project and I have not the slightest clue how I should start; I have a piece of code written, but i'm not sure if...
[2 replies] Last: I intend to place the final phrase into an array, ive edited it once m... (by Seyad Chowdhury)
Beginner/Intermediate Exercises
 
Hey, I tried searching for some c++ exercises on Google, but couldn't find many good ones. I was hoping you guys here could think of some exercises for me/other...
[3 replies] Last: in my experience exercises are a bad choice for getting to learn the l... (by piotr5)
two dimensional array data input
 
Hi all, I have a program I am writing which requires input of data into a two dimensional array. Specifically, I have to display a chess board, and then based o...
[2 replies] Last: Line 77 should look like this }while (choice != 's'); When you run ... (by Yanson)
Arrays into arrays - finding max and min?
 
so the program is 5 users input: Name >> age >> colour >> score using struct. e.g. Andy 1 red 69 Bob 2 blue 44 Cat 5 red 57 Dennis 12 yellow 87 Elsa 32...
[3 replies] Last: You could simplify your code a little if you used things from the C++ ... (by Catfish3)
Very simple question
 
I try to access a char array in a structure through a pointer-to-structure. But it comes with this error when compiling: incompatible types in assignment of ...
[3 replies] Last: You may want to look into std::string , Minimacfox. Then you could do... (by Catfish3)
by lmsmi1
Running File Associated with Executable
 
How exactly would I go about running a file via double-clicking it, then having my console executable open it and read it's contents? My problem isn't in the re...
[3 replies] Last: Exetuable name is the first argument or argument 0. Array indexes star... (by MiiNiPaa)
Quick For loop question
 
Hi, this will just be a few seconds. What do I put in the parameter of the for loop? Specifically this: For inputC <- 0 to 1 Do For inputA <- 0 to 1 ...
[3 replies] Last: - You have to increment the counter in for loops. - Add the for loop e... (by writetonsharma)
logic error?
 
so i wrote this whole program it compiles and runs on my system but was told it has a logic error can somebody help me find it and fix it? It supposedly occurs ...
[1 reply] : add cEntry->next = NULL; after line 80. do the same at other instanc... (by writetonsharma)
by Nebur
Unexpected error in a very simple program
 
Hi everybody, I 'm new in C++ programming and when I was doing a program to extract the integer part of a number, and also write the directly superior integer t...
[2 replies] Last: Take a look at floor, ceil and modf. http://www.cplusplus.com/referenc... (by Chervil)
degree symbol
 
I get the error "truncation of constant value" for the line below. How can I correct this? I want to make a degree symbol. Thank you. cout<<"Rotation o...
[2 replies] Last: I don't get any error on that line. If the compiler is definitely indi... (by Chervil)
April 2013 Pages: 1... 2728293031... 83
  Archived months: [mar2013] [may2013]

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