49,766 Topics

Member Avatar for
Member Avatar for tristanhall

I'm trying to make a blackjack program for my comp sci class and one thing I can do for extra credit is add a feature that allows a user to play a new game at the end of the first game (and replay games after each game). My thought is …

Member Avatar for tristanhall
0
207
Member Avatar for sadben.khan

Hi, Im having this problem in which the program freezes, the the code in the function called doesn't execute. Help would be much appreciated. // spellchecker2.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include<cmath> #include<iostream> #include<fstream> #include<string> using namespace std; bool inDictionary(string word, string dictionary[]); …

Member Avatar for sadben.khan
0
226
Member Avatar for nick.rechtien.5

Hello all. I am working on a program for class and having a bit of a problem. The program is supposed to ask the user to enter a text file in which read from. Then asks the user for the name of the animal you are searching for. Then if …

Member Avatar for nick.rechtien.5
0
281
Member Avatar for ryl294

START Input TimeEnd,TimeStart If (TimeStart>=1&&TimeEnd<=7) totalPayment=(TimeEnd-TimeStart)*1.20 Else{basicPay=(7-TimeStart)*1.20 overTime=(TimeEnd-7)*1.75 totalPayment=BasicPay+overTime } Output totalPayment END

Member Avatar for Moschops
-2
256
Member Avatar for Johnathon332

hey guys, I am currently having problems with my OpenGL ES 2.0 application. I think I may have done my matrices wrong im not sure, but I cannot see my quad rendered to the screen. I believe it is something to do with the matrices I have set up which …

0
161
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
405
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
141
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
149
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
275
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
87
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
150
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
991
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
126
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
293
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
250
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
258
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
525
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
168
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
336
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
424
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
632
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
144
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
253
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
281
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
284
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
332

The End.