49,761 Topics
| |
If my goal is to consider f1 and f2 to hold the numerator and denominator of two fractions and multiply f1(9,8) by f2(2,3). i don't understand how to write the MultipliedBy function if I only have two member variables in the class it's self. I feel like i'm just missing … | |
Hi people, i was trying this program while understanding the basics of input/output a txt file. SO this is a program while asks the user to input the name of the text file. If it exists, then it will read it else, it will create it and it will prompt … | |
Our assignment was to write a tic-tac-toe program for my programming class. It is person vs. computer and the computer makes "random" moves, even if computer is going to lose they will choose a random place to put their x or o it is all correct, now what I have … | |
hey guyz... i have VC++ 2010 project... (DYNAMIC LINK LIBRARY) and i have to use that dll (which is made byy c++) in VB 6 as reference... when i am using it... giving me this msg... 'Can't Add a Referenve to specified file' how to solve this...??? please help me... | |
why does code 1 gives segfault error whereas code 2 doesn't, both are basically same, do anyone have any suggestion? 1. #include <iostream> using namespace std; template <class T> class nodes { template <class U> friend class linklistchain; private: nodes<T> *adrs; T data; }; template <class T> class linklistchain { … | |
Hey I have a problem regarding skewness of non square objects when i scale them with respect to screen size and then rotate them in an orthographic view on the z axis. This is my code for setting it up to draw. The problem i am facing is that when … | |
Error E2188 eidstructures.hpp 26: Expression syntax Error E2257 eidstructures.hpp 64: , expected Error E2188 eidstructures.hpp 73: Expression syntax Error E2257 eidstructures.hpp 81: , expected Error E2188 eidstructures.hpp 90: Expression syntax Error E2257 eidstructures.hpp 96: , expected Error E2188 eidstructures.hpp 105: Expression syntax Error E2257 eidstructures.hpp 111: , expected Error E2108 … | |
hi guys , im designing a c++ code for an assignment and im badly stuck.i have to create a programme word checker to change plurals to nouns. i have it completed but have to store it as statistics. so when the user selects the VIEW button at the end of … | |
write a program in c++ to determine the highest score of any set of scores | |
I'm writing a binary tree program to do the following actions: a. Print out the tree in inorder b. Print out the tree in preorder. c. Print out the tree in postorder. d. Print out the number of nodes in the tree. (Traverse the tree and count the nodes) e. … | |
| hello am trying to start another exe from my c program , am usign createprocess() but am getting error that , the commond is not recognized as internal or external STARTUPINFO startupInfo = {0}; startupInfo.cb = sizeof(startupInfo); PROCESS_INFORMATION processInformation; CreateProcess( bpath, // bpath is char and have C:\myf\myapp.exe NULL, NULL, … |
When I wrote something like cout << "Every age has a language of its own"; It's supposed that the sentence between the two quotation marks will not be targeted directly to the screen, but will be stored somewhere first before directed to the screen. What is that place in which … | |
so basically the thing is nearly complete, and im just trying to get it to work, im pretty sure i just havent closed off some statments and such, but i cannot for the life of me see where, or how to get the error messages to leave me alone in … | |
Hi I would like to create a function that appends a character to a character array.. this is what I have got so far.. [code=c] char * appendCharToCharArray(char * array, char a) { char * ret = (char*)malloc(sizeof(array) + 1 + 1); strcpy(ret,array); ret[strlen(ret)] = a; ret[sizeof(ret)] = '\0'; return … | |
How to convert C++ code to C. Write a program in C that asks a user for the name of a file. The program should display the first 10 lines of the file on the screen (the "head" of the file). If the file has fewer than 10 lines, the … | |
hey guys ! i am working on a card game .. so far i have printed the cards and then shuffled them .. Now it says that Each player has a stack of cards. At the beginning of the game before dealing, this stack is empty. When dealing the cards, … | |
Hi guys i know that in linux you create a c file and use make or gcc or clang to compile it and then run it. My question is how do you run a c file or c++ file in vs2012 with out creating a solution. Also how do you … | |
how to decrypt dll?? i have asdecr.dll file how to decrypt this dll?? please explain in detail | |
#include "stdafx.h" #include <iostream> using namespace std; int getScore(int& score); int calculateGrade(int score); int _tmain() { int courseScore; cout << " Line 1: Based on the course score" << " this program computes the " << "course grade." << endl; getScore(courseScore); int calculateGrade(courseScore); system ("pause"); return 0; } int getScore(int& … | |
i am posting the code below.... please tell me where the error is ..... i am new to codeblocks.... the error comes at swt and iswt function as undefined referrence........ #include <iostream> #include <fstream> #include "wavelet2d.h" #include <vector> #include <string> #include <cmath> using namespace std; int main() { cout << … | |
as a programmer what will you do to refresh your mind about the program you learn to do. its been a 1 year i never created program. but i familiarize myself languages that i use like C++,visual basic,html.php. | |
What is the most efficient way to read a bit at a particular position in a byte? | |
For some reason I keep getting the errors: "cop4530::BST<int>::buildFromInputString(std::basic_string<char, std::char_traits<char>, std::allocator<char> >)", referenced from: "cop4530::BST<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >::buildFromInputString(std::basic_string<char, std::char_traits<char>, std::allocator<char> >)", referenced from: Im positive that it has to do with something with the function that that begins at line 114, please help. | |
Guys i need your help i just want u to help me create a simple real life project with c++,i've just finished learning it and i passed it,so i would like to see it work in real life,besides i would also like to see my programs work out of code … | |
# Pseudo Code # Hello, I have just joined a new class called "Programming Concepts". This subject is still very new to me. I am having trouble understanding what I need to do. If somebody could explain to me what my assignment means, I would really appreciate it. Providing some … | |
I need help running my program this is what it asks me for "Write a program that asks the user for the name of a text file. The program should display the first 10 lines of the file on the screen. If the file has fewer than 10 lines, the … | |
A newb programmer here I have a project involving pedestrian simulation I'm planning to use libpedsim.dll in python with Ctypes but so far I cannot make the functions working Can anyone point out how to make use of this DLL? This is the class documentation: http://pedsim.silmaril.org/documentation/libpedsim/latest/classPed_1_1Tscene.html This is the link … | |
I am trying to implement a priority queue with an unsorted array and hit a wall when I received a Segmentation fault:11. I used gdb and got the error: Program received signal EXC_BAD_ACCESS, Could not access memory. Reason: KERN_INVALID_ADDRESS at address: 0x0000000000000000 0x00000001000017fa in Item<std::string>::setKey (this=0x0, k=3) at PriorityQueueArray.h:27 27 … | |
When im using fstream.h its giving an error with using namespace std, how ever when i use simple fstream without .h , it is not giving error but not reading the file, How can i use fstream object using fstream.h header file along with using namespace std? Your urgent response … | |
Hi, I'm working on classes with pointers. I do have a main function that calls this. This program compiles. But the input from the user isn't getting passed to the other functions. The user_input function should take the response and pass it to the create_posting then it is outputted to … |
The End.