Beginners - October 2013 (Page 70)

I am having trouble calling a slope function in my code.
 
Why isn't my code working and how can i make it work? i am supposed to call the slope function while the user inputs x1,y1,x2,y2 and it outputs the slope. I am ...
[5 replies] Last: hey just kidding, i had my lines mixed up. it works perfectly, thanks ... (by jon smith)
by NSA
Urgent help needed!
 
Hello all, I'm new to the language C++. Recently our teacher asked us to write a code that does the following things: 1 - Remove all comments from a file...
[12 replies] Last: #include <iostream> #include <fstream> //#include <climits> #include ... (by JLBorges)
Custom Vector Implementation
 
So I'm trying to implement a custom vector class and I'm running into compile errors. Also, my code may or may not be totally off. Any help is much appreciated....
[16 replies] Last: Oh, that worked. Toldja I'm not very good at this. Well that problem t... (by Graeme Hart)
by dancks
code implementation of a break point doesn't work in bigger file?
 
I tried to write a breakpoint function to debug a strange issue in another program. I test it out first in its own small test program. It works fine. I put it i...
[4 replies] Last: I'd rather not post another thread, looking at that function, would th... (by dancks)
by Karpl
Unable to see problems with my code
 
I have tried to debug the program through Visual studio 2012, but keep getting an error about missing an .exe file. So I can't really debug the code to see what...
[11 replies] Last: I've already show you how to code `getJudgeData()' The prototypes in ... (by ne555)
C++ Assignment (Loops)
 
So I'm pretty new to C++ and I'm not really the best at using loops. Would anyone like to guide me through getting this output? "Write a program that asks the...
[1 reply] : My favorite for(int x = 0; x < num; x++) { //body } (by GRex2595)
help tracing a vector
 
Help tracing a vector Show the values in each vector after the following statements: int intArr = {2, 5, 11, 9, 25}; vector<int> vA(3,1), vB(5), vC...
[1 reply] : vA.push_back(2); = [adding 2 to the end that would give us 1 1 1 2 ... (by Brooklyn)
creating blank lines!! HELP
 
I'm taking a programming class in school and this is all very new to me. My homework question is to make it show 2 blank lines between each line of text . I c...
[2 replies] Last: //newLines.cpp //Output new lines. #include <iostream> using namesp... (by eyenrique)
Functions and call by reference
 
Write a program that first reads the height of each student in a school class. Then, the program should display the height of all students, sorted increas...
[no replies]
if else statement trouble
 
I've gone over my code for hours now, I asked some people in class and they couldn't help me. I see no reason why it won't run as it should. Program: This prog...
[9 replies] Last: Are you serious?!?!?!?!?!?! I just copy and pasted what I had here int... (by sitesurfer253)
please help getting a game to go from end to the start again using while loops,boolean
 
Hi guys i need help with getting my dice game to go back to the beginning of the game after the last line of code in the end. I dont understand what is wrong, b...
[4 replies] Last: It looks as if you're missing a " on line 121. (by xismn)
Please help me with this problem!
 
Yo man
[11 replies] Last: Ok this is my code so far. #include<iostream> using namespace std; ... (by Wharrap)
Reverse programming!
 
Shipping Widgets. We can ship up to 10 widgets in boxes of three sizes: A small box holds 4 widgets. A medium box holds 6 and a large box 10. Unused s...
[3 replies] Last: Alright at least you broke it down: int num_widgets=0; printf("How m... (by dancks)
Vecor
 
here why we have used " v(myints,myints+5) " there are 5 elements in array so why we haven't used v(myints,myints+4)?? because for 5 elements we use indexes 0 ...
[2 replies] Last: ^ but there is < sign not a <= sign in array ? is it the same in vecto... (by hellcoder)
help fixing small error!
 
I'm supposed to find the equation of a line and the slope but I keep getting an error on line 17 that says error: expected ';' before '{' . Don't know how to f...
[3 replies] Last: missing semicolon line 17 else m = (y2-y1)/(x2-x1); line 19 b = y1-... (by Chriscpp)
Stop the infinite loop without terminating the program
 
So far i'm trying to do a while loop but all I get is an infinite loop. It keeps displaying a message forever until you press ctrl + c. how to stop it and proc...
[7 replies] Last: AH! Thanks! It works now. (by Hedgehog Ninja)
How to implement OOP
 
I've just finished learning OOP for C++ but now I've realised when i start to write a programme i'm not quite sure how I would best implement it. For example be...
[1 reply] : You probably want one for the gameboard and one for each player. You'... (by GRex2595)
Displaying a table computing compound CD value ?
 
Morning, everyone ! I'm writing another code for my class, and I seem to be stuck. Everything runs perfectly, I'm just not entirely sure how to get the code to ...
[2 replies] Last: Well that much I know, but how do I code it so that the value actually... (by dennyblanco)
Why does screen have a value of NULL, when it has a value?
 
Why does screen have a value of NULL in the if statement, when it really has a value? bool init() { //Initialize all SDL subsystems if( SDL_Ini...
[2 replies] Last: You know what, I accidently put a semicolon after the if state. The co... (by Malaxiz)
by Ltp
Linked_List
 
I have this code, which generates 10 values randomly: #include <iostream> #include <ctime> using namespace std; struct node{ int value; node *nex...
[1 reply] : Your code has a problem. You do create 10 nodes, but you point to onl... (by keskiverto)
October 2013 Pages: 1... 6869707172... 86
  Archived months: [sep2013] [nov2013]

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