Beginners - March 2017 (Page 33)

Need Help with a tic tac toe program !!!
 
hi guys i need help to program a tic tac toe game with a static board ! Thanks for your help ! We need help to show our board
[1 reply] : Since you haven't shown any code, we don't know what help to give you.... (by AbstractionAnon)
a
 
aaa
[8 replies] Last: You can find more than one solution for the "print diamond" part. Here... (by Enoizat)
by yamada
a cpp program for n students having student name and roll number
 
so as the title suggests , I wanted to write a program using structures pointers to enter n students names and roll numbers , so I wrote the program below tha...
[1 reply] : Your third snippet is closest to being correct. However at line 14 (a... (by AbstractionAnon)
Size Of an Object of Inherited Class
 
Q.What is the size of the object FRIDGE in bytes? class Kitchen_Products { char Model_No , C_Name ; int year; protected : auto fl...
[1 reply] : It is implementation-defined. eg. Linux, x64, clang++/libc++ 96 bytes... (by JLBorges)
The program jumps one step ahead
 
I have a program that calculates the something bla bla bla and I need the user to input some numbers from the keyboard and when I select the function that does ...
[1 reply] : You only want it to look like: please insert first number < moo! inco... (by jonnin)
Classes and const member functions
 
I have two classes called Point and Triangle. class Point { public: double x; double y; Point(double a, double b): x(a), y(b) { }; class T...
[2 replies] Last: Thank you, that solved the problem. My rotated function in Point class... (by DeKonTiki)
by quixdi
Bringing in a file as an array using functions??
 
Homework Question: I'm trying to get a file to open up using a function, going into an array. Then having the possibility of searching for information within t...
[2 replies] Last: Replace line 79 with perror("File error: "); and see what it prints.... (by Thomas1965)
LinkedList Object Array Swapping
 
I am having trouble trying to do a simple selection sort for a LinkedList array that contains big integers. void selectionSort(LinkedList list , int size...
[1 reply] : It looks like you have a problem with the output function not the sort... (by coder777)
Newton-Raphson method with approximate derivative
 
I have written the following code for the Newton Raphson method, which takes as input two function pointers, one that points to the function f(x), the other poi...
[7 replies] Last: Oooops! Sorry, how silly of me! Thanks, integralfix. Now it works perf... (by Claudius7)
Template and dynamic allocation
 
Hi. I've got an assignment today, and I'm having trouble with doing it... The assignment is.. 1. Make 3 functions. 2. "add" function saves data. 3. "get...
[4 replies] Last: Thank you!! I passed. (by wasteproduct)
by rantiv
Vectors
 
I need to get rid of the space after it outputs the last weight. #include <iostream> #include <vector>// FIXME include vector library using namespace ...
[2 replies] Last: Got it! Thanks! (by rantiv)
Defining chars as more than one option (Uppercase vs Lowervase)
 
Hey programmers, I'm new to C++ and I'm trying to make a basic roulette program. In the instructions, we're supposed to take bets in the form of single letters,...
[7 replies] Last: Its funny how people all over the world start with similar things haha... (by katapult)
help with project 2
 
In this project we are going to be expanding the into the rest of the ways to structure our programs. We will be focusing on loops and functions in addition to ...
[no replies]
How would I pass by reference?
 
I believe I passed by value instead of reference. #include <iostream> using namespace std; float ADD(); float SUBTRACT(); float MUTIPLY(); int num1,...
[4 replies] Last: im dumb tdog: start your own thread and state there what is your pro... (by gunnerfunner)
why we write int in hello world
 
in the typical hello world program why do we write int? int main() { std::cout << "Hello World!"; } we do nothing with an integer there. so ...
[8 replies] Last: @TheldeasMan Really? Thanks for the correction! (by ufrnkiddo)
help with an encryption/decryption program.
 
i keep getting the errors .\encrypt.cpp(5): error C2447: '{': missing function header (old-style formal list?) .\encrypt.cpp(118): error C2447: '{': missing...
[2 replies] Last: I have corrected the errors but I am not getting any output. #includ... (by mayukhC)
operations and operators
 
Hi cplusplus, I am a complete beginner with no coding experience and using bjane (the creators) book to try and learn this langue. So please forgive me if this...
[4 replies] Last: I'm not exactly sure what you are asking but I hope this helps. In you... (by joe864864)
c program please correct the below code
 
c program please correct the below code. #include<stdio.h> #include<conio.h> void main() { int a ,b ,c ,m,n,m1,n1; int i,j,k,ch; clrscr(); printf("Enter...
[6 replies] Last: printf("\nt\Matrix Manipulation"); this is not correct. you need pr... (by jonnin)
Pointers and logic trouble
 
Hello everyone. Let's just move on my problem. Here's the code: #include <iostream> using namespace std; int main() { int a ; int *ptr=new int; ...
[2 replies] Last: you can change how much stack you have on a lot of systems/compilers a... (by jonnin)
Memory leak/dynamic allocation of memory.
 
Do i have to "delete" the pointer I declared in the function **ptr_fj? #include<iostream> #include<string> #include<iomanip> using namespace std; int **pt...
[2 replies] Last: great thx a lot :D (by spax1111111)
March 2017 Pages: 1... 313233343536
  Archived months: [feb2017] [apr2017]

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