49,757 Topics

Member Avatar for
Member Avatar for matt21mcr

Hello everyone, I am writing this post again because there were ambiguities in the previous one. I need help with this task tomorrow. I will present what I have, what I got from you and ask which code is best to use to perform this task. I will start with …

Member Avatar for Reverend Jim
0
617
Member Avatar for namra

i am new to c++ and m having a problem in making a scientific calculator plsss help me i dun know how to make the power function work here is my program m working in visual studio 2005 ,c++ getiing this error error C2064: term does not evaluate to a …

Member Avatar for Jawad_9
0
8K
Member Avatar for mister-fett

I am new to C and C++, but I wrote this calculator in C++. It compiles okay on borland 5.5, and can do addition, subtraction, multiplication, and division of two numbers. If you type any characters except numbers, +,-,*,/,or e, there will be lots of beeping noises and error messages! …

Member Avatar for Jawad_9
0
1K
Member Avatar for xyrena

hello, I am trying to learn c++, and I am trying to run this program to display the correct answers in the end. the user will be asked to input their answers to the 20 questions on the list. for what I have read, I think I should be using …

0
184
Member Avatar for pevin

hai everyone im supposed to create a futsal reservation system which has 3 courts customer name should be shown in the booking table till now the customer name is printing on the table ...but i dont know how to save the name

Member Avatar for tinstaafl
0
227
Member Avatar for coljam

I have a CSV file with a bunch of columns, but I only need the information for the 11th column. How do I read through each line and skip to the 11th column and then store those values in a vector? I'm struggling to find clear information on how to …

0
178
Member Avatar for einnosys

How to read .CFG file in c#, and make in object so we can modify using that object.

Member Avatar for rproffitt
0
172
Member Avatar for kosunsanya
Member Avatar for DaniWebUser_1

I've recently started learning C and I have a simple program that I can't get to work. (I'm pretty sure C++ and C are similar enough at the basic level not to cause any problems in this forum). I've tried it by substituting the scanf("%s", myName) captured string data with …

Member Avatar for rproffitt
0
1K
Member Avatar for Pierce_1
Member Avatar for kg16w

Hey guys! I got super behind in my C++ class and I feel like I dont really know what I am doing. I've been trying to piece together from other examples of password coding, but I got a little lost in the sauce. Anyways, the requirements for this program is …

Member Avatar for rproffitt
0
419
Member Avatar for Detsibli

I am a student learning, I was tasked with the following; > Create a class called AddressBook. Create the address book with a dynamic array and when the object is created, the programmer should specify the maximum number of items in the addressbook. (e.g.) AddressBook myAddressBook(20); It should contain a …

0
293
Member Avatar for zdreggs

Hello, I am trying to understand how to use C-style strings in C++. My goal is to store a C-style strings into a string type array. If I pass "This is a test" into word_token, it displays: This Is A test So from here I believe my setup is almost …

Member Avatar for rproffitt
0
259
Member Avatar for BirdaoGwra

Hi, I am getting an error while making a vector. frame.h #include <wx/wx.h> class Frame : public wxPanel { public: Frame(wxPanel* parent, int xx, int yy); ~Frame(); private: int x; int y; } frame.cpp #include "frame.h" Frame::Frame(wxPanel* parent, int xx, int yy) :wxPanel(parent) { x = xx; y = yy; …

0
841
Member Avatar for WatchingSafe

Here is the input file. 12345 67890 I want 123 in array1. I want 678 in array2. int array1[10], array2[10]; int n, i=0; ifstream x; x.open("input.txt", ios::in) while( (!x.eof()) || (i<3) ) { x >> n; array1[i] = n; i++; } //here should be the command for next line i …

Member Avatar for rproffitt
0
162
Member Avatar for ImmutableIcarus

I'm still stuck on this one question, can someone help me with this? 4.) Write a program that asks the user to type positive integers. When the user types a negative value the program writes ERROR and asks for another value. When the user types -1 that means that the …

Member Avatar for rproffitt
0
301
Member Avatar for ImmutableIcarus

Thank you in advance for anyone who is willing to help me. Can someone give me the answers and briefly explain what you did? I have been stuck and frustrated with these questions for about a week now, so I'm asking for help. There are two questions that I need …

Member Avatar for Reverend Jim
0
425
Member Avatar for kimmy2467

new to programming. everytime i try ti comppile this program i get an error message saying expected unqualified... here is the code and the question that the code was made from Write a program that uses a loop to print the numbers from 10 to 20. int main(); int crt …

Member Avatar for nullptr
0
219
Member Avatar for kimmy2467

im new to programming. every time I try to compile my programs I get the message saying "expected unqualified id before '{' token. heres an example: int main() #include <stdio.h> int a, b; printf("Enter the first value:"); scanf("%d", &a); printf("Enter the second value:"); scanf("%d", &b); a = b + (a++) …

Member Avatar for rproffitt
0
206
Member Avatar for Nick_31

Hello, I am stuck on how to exactly do this problem if anyone could offer me any help with either a worked out solution or just some pseudocode that would be great. Here are the rules and information about the assignment below. Assignment: What is The Game of life? Not …

Member Avatar for JamesCherrill
0
454
Member Avatar for ImmutableIcarus

Write a Program that asks the user to input a positive integer. If the user inputs a negative number, program should output "ERROR" and ask for /the user's input again. If the user inputs the value of 0, the program says "NO AVERAGE". If the user inputs a -1, the …

Member Avatar for Reverend Jim
0
352
Member Avatar for Nick_31

Hello, I am stuck on where to go with this assignment for checking if the sliding puzzle is solved right or wrong. I will include the context of the assignment so you can see what needs to be included. If you could just share some code or pseudocode to get …

Member Avatar for rproffitt
0
431
Member Avatar for jimmichaels29

analyze the problem. walkthrough the code. I would like to charge for this solution $10 to Renewal Computer Services, if I may post here (kids & teens free). when -50 is reached, doesn't blow past the maxvalue+1U and cause a cpu-hogging forever loop, it doesn't actually reach -50 equivalent (UINTMAX-49). …

0
186
Member Avatar for Meno_1

#include<stdio.h> #include <iostream> #include<stdlib.h> using namespace std; int main() string custname,carmodel,carnum; int days=0,rentalfee=0; cout << "Sila isi nama anda : "; cin >> custname; cout<<endl; do{ cout<< "Sila berikan pilihan model kereta pilihan anda !"<<endl; cout<<"Tekan A untuk model Axia."<<endl; cout<<"Tekan B untuk model Saga."<<endl; cout<<"Tekan C untuk model Exora."<<endl; …

Member Avatar for ravss
0
267
Member Avatar for Rohan_12

HI everyone, _SBLOCK *allocateMemBlock(size_t size) [ _SBLOCK *block = (_SBLOCK*)sbrk(0); void *memadr = (void*)sbrk(0); void *allocate_mem = (void*)sbrk(BLOCK_SIZE + size); if(allocate_mem == (void*)-1) [ return NULL; ] else [ block->next = NULL; block->isfree = false; block->size = size; block->memoryAddress = memadr+BLOCK_SIZE; return block; ]

Member Avatar for ravss
0
2K
Member Avatar for engr_3

Hy I have my data in file as Energy,utili,surplus,shortage 1,2,3,4 5,6,7,8 9,10,11,12 And I want to read this data column wise and then I want to write it to another file so that I may be able to perform some operations on it Please help

Member Avatar for DGPickett
0
316
Member Avatar for Mark_48

Hello, I am looking some help with a program. I am trying to parse the following file into a dynamic Array "Database[8][5]". Device ,Gain (beta),Power Pd(W) ,Current Ic(A) ,BVceo(V) 2N3904 ,150,0.35,0.2,40 2N2202 ,120,0.5,0.3,35 2N3055 ,60,120,10,90 2N1013 ,95,50,4,110 MPE106 ,140,15,1.5,35 MC1301 ,80,10,0.9,200 ECG1201 ,130,1.3,1.1,55 I seem to beable to parse the …

Member Avatar for rproffitt
0
362
Member Avatar for Elhussein

1) Write a program to take as input three integers for (a) incrementing, (b) skipping and (c) ending. Your program should start counting from zero, incrementing by a, skip b and end at c. Example 1: input: 2, 6, 12 output: 0, 2, 4, 8, 10, 12 2) Write a …

Member Avatar for rproffitt
0
276
Member Avatar for Taha_3

I got stuck with this problem and it will be great if someone gives a solution.

Member Avatar for JamesCherrill
0
155
Member Avatar for Dragonmh

I have been at this for weeks and I am able to get most of the errors cleared on my own. I am stuck on these errors and I am unable to find out what is really wrong and going on. I am still pretty new at this. The code …

Member Avatar for rproffitt
0
337

The End.