Beginners - July 2014 (Page 41)

by Drak
Doubles trouble
As part of an arithmetic competency program, your students will be given randomly generated lists of from 2 to 15 unique positive integers and asked to determin...
Jul 2, 2014 at 7:48pm
[8 replies] Last: In your first snippet, your for loops are nested. You're going to out... (by AbstractionAnon)
Function Math
I have written this code for my class and the only two issues I have (big issues lol) are that the math performed in the function displays an output of 0.00 in ...
Jul 2, 2014 at 7:31pm
[5 replies] Last: One general comment. You're using pass by reference a lot. While tha... (by AbstractionAnon)
Class named Time
Hi, so I'm making a class named time that takes a number that the user inputs, for ex 63, and tell the user how many hours, minutes, and seconds that number equ...
Jul 2, 2014 at 6:53pm
[4 replies] Last: Line 6: I still question why amount is a member of the class. Lin... (by AbstractionAnon)
Where to go next ?
Hi every one iam learning C++ and many concepts of Object Oriented Programming,but the information iam still missing is where to go next? and what i mean by th...
Jul 2, 2014 at 6:16pm
[3 replies] Last: Lets take a look at some examples: GUI/Front-End Developer:This will ... (by Jakee)
Prime Numbers
Hi I'm new here. I'm trying to learn c++ on my own so I need all the help I can get! :) I'm having trouble figuring out what's wrong with my code. I'm trying to...
Jul 2, 2014 at 5:28pm
[11 replies] Last: I think the key here was line 22 with the --N so I didn't have to ... (by mattswk)
Maybe any Easy question for you
First of all, I don'y know POINTERS and OTHER HIGH LEVEL PROGRAMMING cuz I study C++ in my school. Secondly, I use Borland C++ Version 3.0 I am trying to cr...
Jul 2, 2014 at 5:21pm
[4 replies] Last: [quote=ar2007]If you delete line 37 and line 43, the program works. Y... (by cire)
by mehak
constructors and destructors
can we call the constructors and destructors explicitly?
Jul 2, 2014 at 5:04pm
[1 reply] : Yes constructors can be call explicitly, and normally are. But destruc... (by jlb)
Class named light
Hello I was attempting to construct a a class named Light that simulates a traffic light. The class’s color attribute should change from Green to Yellow to ...
Jul 2, 2014 at 5:03pm
[7 replies] Last: Ok so I ended up solving the problem. Thank you keskiverto for your he... (by tehnoobshire)
by LGOOZ1
Why does my code crash?
I'm kind of new in C++, only about a week in. I'm using VS10 for writing my exercises from a C++ book. I have previous C experience but does not seem to help to...
Jul 2, 2014 at 4:45pm
[7 replies] Last: This is an exercise from a book, so naturally at this stage some less ... (by LGOOZ1)
Properly Define Constructor/Destructor
Can someone teach me the proper method to define a constructor/destructor? I am trying to bypass the following error: myPhysListHadron.cc:(.text+0x4c5...
Jul 2, 2014 at 2:54pm
[9 replies] Last: I am checking my classes for undefined virtual functions, I assume thi... (by dptru10)
working with array
hi all this is my program #include <iostream> #include <fstream> using namespace std; main() { float x,y,z,dar,i; ofstream list("list.txt"); cout<<"gheym...
Jul 2, 2014 at 1:57pm
[4 replies] Last: my problem begins from a You can't assign anything to a . a is n... (by AbstractionAnon)
flowchart C++
Hey guys Can you guys help me in my assignment. My professor gave us assignment in flowchart about looping and we have to write the output of this flowchart. ...
Jul 2, 2014 at 1:54pm
[18 replies] Last: Thank you all guys :) now i can finally sleep. the simulation is up t... (by xenovia12)
problem in loc ptr
Write your question here. #include<iostream> #include<conio.h> using namespace std; struct node { int data; node *next; }; typedef node *list...
Jul 2, 2014 at 1:31pm
[2 replies] Last: Line 50: You're trying to assign a pointer (ptr) to an int (loc). Th... (by AbstractionAnon)
Expected primary expression before ';' token
Hi Everyone, I'm writing a calculator program and when I compile I get the following error code. Expected primary expression before ';' token (which is li...
Jul 2, 2014 at 1:14pm
[5 replies] Last: Note the difference between = and ==. (by Peter87)
by h4ever
is there substitute for scanf/scanf_s?
Is there any substitute for command scanf to extract number from char array? I found one problem with it: it waits for keyboard input. Do I use it incorrectly o...
Jul 2, 2014 at 12:07pm
[3 replies] Last: Oh, thanks. The scanf does not do what I expected. This code works lik... (by h4ever)
reversing the order of letters of words
Plz help me in a concept of reversing order of letters of input word without using string or pointer.Just a simple turbo c++ program I want!
Jul 2, 2014 at 10:26am
[19 replies] Last: thanks so much (by maher123)
Qt
The code is here .when i compile it says error writing to -:invalid argument what could be the problem??? help me im totaly stuck here #include "fin...
Jul 2, 2014 at 9:48am
[1 reply] : Also tell me where to find tutorials on Qt .... i do not want drag and... (by Salman0349)
by matlex
my huffman encoding
This my first try for huffman encoding! bitreader.h #ifndef BIT_H #define BIT_H #include <fstream> typedef unsigned char byte; class bitwriter { ...
Jul 2, 2014 at 9:34am
[2 replies] Last: thanks works great! (by bellerofonte)
by lays
problem about virtual method hiding method of baseclass
I write a base class with a method being virtual. But the problem occurs when I need a different signature with the method in the derived class: class ba...
Jul 2, 2014 at 9:10am
[4 replies] Last: thanks all! (by lays)
C program: Why am I not getting Segmentation Fault? Is it UB?
I am reading the book: Computer Systems, A Programmer's Perspective. I wrote the following code just for my own understanding: #include <stdio.h> int ...
Jul 2, 2014 at 9:06am
[3 replies] Last: ok, thanks for the responses! (by abhishekm71)
July 2014 Pages: 1... 3940414243
  Archived months: [jun2014] [aug2014]

This is an archived page. To post a new message, go to the current page.
Registered users can post in this forum.