General C++ Programming - August 2015 (Page 15)

Ship Class Misunderstanding Problem
 
Ok so I'm stuck with a few errors from VB and not sure how to sort them out. Here is my code... #ifndef SHIPH #include "Ship.cpp" #include <iostream> #...
[4 replies] Last: Also, you have defined two different Ship classes, in one of which ... (by Alrededor)
code blocks: how add a variable to watches window?
 
i have these varaiable: button btnarray button have getTop() member. how can i add it to watches window and show it's value?
[1 reply] : after more search, i found what i needed. i must go to getTop class me... (by Cambalinho)
Secant method implementation problems
 
Hello! I have been trying to create an implementation of the secant method in C/C++, but I seem to be coming across a few problems. I don't know if my code is ...
[14 replies] Last: Thanks for all the help, I think I've found a decent solution now by c... (by shoulderman)
AutoMove Circle Shape
 
Hi, I was looking for some help to try and understand how i can get a circleshape (SFML Library) to move across the page like how you would find in a game of po...
[2 replies] Last: Yanson, thanks for that really appreciate it, managed to add it within... (by aftabn10)
help with code for robot
 
Hi there I'm new to C++ and I'm having trouble with some code for a small robot I'm building called Magbot which I found in a magazine. IM currently trying to b...
[3 replies] Last: well: if (irrecv.decode(&results)) { where is your declaration for ... (by mutexe)
Insertion & Merge
 
Please I need an Insertion Sort & Merge sort code and the CUI showing the time Please its urgent Thanks.
[1 reply] : don't double-post http://www.cplusplus.com/forum/general/170865/ (by Gamer2015)
Insertion & Merge
 
Can anyone please show me show a full operating of front end designed in C++ using all necessary criteria's of Control User Interface for an Insertion sort and ...
[2 replies] Last: This page has some pretty good front ends for a number of sort algorit... (by doug4)
SWITCH CASE
 
Using class and public write a c++ program that prompt the use to enter both his or her parent blood group,the program should be able to display the possible bl...
[1 reply] : Please note that this is not a homework site. We won't do your homewor... (by keskiverto)
by pep101
Create a reference in a class but initialize it later?
 
Hello! I believe one cannot do that because of compiler reasons... but anyway, can anyone help me solve the idea? I would like to create a node and, when pass...
[5 replies] Last: Thanks!! (by pep101)
by leourb
For loop import txt file data
 
I have a problem with importing some data from txt file. Formatted file data in .txt file is: ( int int double ) e.g. ( 16 21 18.0 ) I have created a f...
[2 replies] Last: Hi Gamer2015! I wrote that way because I want to store it in my objec... (by leourb)
Else if statments don't work
 
I'm making a grading program for practice, and no matter what I enter, it always gives me the first if statement. #include <iostream> using namespace std; c...
[6 replies] Last: The if (Grade == x) is simply a shortcut meaning "replace x with a n... (by closed account E0p9LyTq)
Using C++ for amazon like forum
 
Hello Everybody, I am wondering is c++ good for something as of an auction website like Amazon? Which frameworks are the best for something in this magnitude? ...
[3 replies] Last: Google brings up two interesting frameworks: http://www.webtoolkit.eu... (by coder777)
Deleting a File
 
I am trying to delete a file. This code deletes the listing but not the file Private Sub Button4_Click(sender As Object, e As EventArgs) Handles Button4.Cl...
[1 reply] : this is not a VBA forum but since you ask for deleting a file here's t... (by Gamer2015)
Array assignment without square brackets
 
I am working on an assignment that asks for a single statement to satisfy the following: Without using the fp pointer, and without using square brackets, set...
[3 replies] Last: Yer welcome. It's the stupid stuff that's the weirdest in C and C++. (... (by Duthomhas)
why a static function only accept external static variables?
 
why a static function only accept external static variables and not no-static?
[12 replies] Last: maybe that's why :P i was using the lParam (by Cambalinho)
Export data from an array to a csv file
 
ofstream outfile; outfile.open("C:/Users/Saad/Desktop/result.csv"); for(i=0;i<655;i++) { for(j=0;j<655;j++) { if(arr !=0) { outfile<<arr <<e...
[6 replies] Last: Thank you so much.... :-) (by mohdadnan111)
class and arrays
 
i have a button class with SetText() and GetText() and MouseClick(lambda variable) members. see these line: button a ; a .SetText("hello 1"); a .SetText("hell...
[2 replies] Last: sorry no. imagine that the MouseClick() on all 'a', have the same valu... (by Cambalinho)
by kim 1
Repetition and Selection
 
For the "printf("Total for %d bills: RM%.2f\n",count,subtotal);" the subtotal would print out exactly the same like the 2nd bill of "printf("**Amount for bill #...
[no replies]
How to generate non repeated numbers?
 
Hello guys, I am new to c++ and I was trying to make a function which generates non repeated numbers. Would u guys mind helping me have a look on my code? her...
[7 replies] Last: Thank you so much guys, I think i have to take a look on vectors frist (by garyfang)
Atof explanation
 
I`m looking for explanation how this atop works: /* atof example: sine calculator */ #include <stdio.h> /* printf, fgets */ #include <ctype.h> ...
[1 reply] : What are you expecting as the output? (by jlb)
August 2015 Pages: 1... 1314151617
  Archived months: [jul2015] [sep2015]

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