49,761 Topics

Member Avatar for
Member Avatar for Yiggasay

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 …

Member Avatar for tinstaafl
0
402
Member Avatar for tanmay.majumdar2

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 …

Member Avatar for vmanes
0
139
Member Avatar for MrTang

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 …

Member Avatar for Nayana sharma
0
3K
Member Avatar for Allorango

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...

Member Avatar for Allorango
0
148
Member Avatar for mksakeesh

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 { …

Member Avatar for mksakeesh
0
271
Member Avatar for nousername19

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 …

0
86
Member Avatar for marcel.gybels

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 …

Member Avatar for Ancient Dragon
0
148
Member Avatar for clubberlangMayo

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 …

Member Avatar for clubberlangMayo
0
988
Member Avatar for ikeh theacla ij

write a program in c++ to determine the highest score of any set of scores

Member Avatar for Schol-R-LEA
0
123
Member Avatar for connor.wells.7946

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. …

Member Avatar for VernonDozier
0
292
Member Avatar for nova37

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, …

Member Avatar for untio
0
246
Member Avatar for AmrMohammed

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 …

Member Avatar for Tumlee
0
257
Member Avatar for nomorelogic

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 …

Member Avatar for nomorelogic
0
524
Member Avatar for bops

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 …

Member Avatar for NathanOliver
0
5K
Member Avatar for mical700

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 …

Member Avatar for deceptikon
0
1K
Member Avatar for waqas.zafar.125

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, …

Member Avatar for Agni
0
166
Member Avatar for otengkwaku

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 …

Member Avatar for otengkwaku
0
331
Member Avatar for Allorango

how to decrypt dll?? i have asdecr.dll file how to decrypt this dll?? please explain in detail

Member Avatar for Nutster
0
414
Member Avatar for shawn.main.7

#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& …

Member Avatar for deltascrow
0
625
Member Avatar for malloju

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 << …

Member Avatar for Moschops
0
142
Member Avatar for cherrymae.calma

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.

Member Avatar for deltascrow
0
78
Member Avatar for tomz6
Member Avatar for RonalBertogi
0
252
Member Avatar for dreday92

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.

Member Avatar for RonalBertogi
0
280
Member Avatar for Mbokodvo

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 …

Member Avatar for ddanbe
0
281
Member Avatar for NikkiStars

# 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 …

Member Avatar for NikkiStars
0
331
Member Avatar for stacey.rae.35

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 …

Member Avatar for nmakes
0
228
Member Avatar for LostStranger

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 …

Member Avatar for vegaseat
0
462
Member Avatar for tumblinmonkeym

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 …

Member Avatar for deceptikon
0
868
Member Avatar for AmerJamil

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 …

Member Avatar for deceptikon
0
969
Member Avatar for Melly3

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 …

Member Avatar for RonalBertogi
1
224

The End.