49,761 Topics

Member Avatar for
Member Avatar for jmcorpse

I think there may be a math error in my program and I may not be seeing it. Is it possible for someone to go over it just to make sure it is ok. I have done everything I could think of to try to fix it, but it is …

Member Avatar for Kanoisa
0
116
Member Avatar for avataralien

I am trying to create a cpp file that will enable user to download the content from a web URL & stored it to a desired html file. I am running on Linux. The program will call GNU wget CLI program to grab the content & stored it to a …

Member Avatar for avataralien
0
185
Member Avatar for silvertooth07

i'm having problems with the edit function on my program. when i enter something, it crashes. it prints out "File not found" endlessly. [code] #include<iostream.h> #include<fstream.h> #include<conio.h> void info() { cout << " **********************************************" << endl; cout << " * Case Study - 2 *" << endl; cout << " …

Member Avatar for silvertooth07
0
138
Member Avatar for Zege

Hello, I am working on a project for school, and the professor and I got cut short while he was explaining this to me. I am hoping I can get some advice on what to do next... here are the directions he posted: [B]Have your compressor class read in bytes, …

0
37
Member Avatar for cortez716

I'm trying to write a function called (sumTo) that takes as [B][U]arguments two integers[/U][/B]. My function should use a loop to sum all of the numbers between the two (This includes the starting and ending numbers) and return the sum. I want the function to allow for either argument to …

Member Avatar for cortez716
0
182
Member Avatar for Orion2k

well first of all I ask u people don't try to give me advices like use QT instead that waste my time lot I want a direct answer how to do this cause this is really important C++ Module in my college has just started well the whole yesterday night …

Member Avatar for Ancient Dragon
-1
152
Member Avatar for 4221dave

I'm having some trouble, I'm using Dev C++ and I want to make my exe file and my dll file into one. So if i use my exe on another computer it tells me it's missing "libmySQL.dll" So I don't have to have two files. My current code is: [CODE]#include …

Member Avatar for sfuo
0
122
Member Avatar for OneRunner

So, first off lemme explain what a substitution code is in case you don't know. In cryptography, it's a system by which one letter is replaced with another predetermined letter. For example, if "I" turns to "E", and "F" turns to "V", the word "If" would be written as "Ev". …

Member Avatar for OneRunner
0
172
Member Avatar for ekailan

I am trying to convert char to wchar , but its not working !!the else case always executed in this code [CODE] char p[500]; while(getline(inFile1, line)) { //we read p from file that contain only one word "why"............for testing strcpy_s(p, 500, line.c_str()); string search = p; const size_t newsize = …

Member Avatar for ekailan
0
277
Member Avatar for vello

[CODE]#include <iostream> #include <fstream> using namespace std; char a[11][11]; bool free(int x, int y) { if (x < 1 && x > 10) { return false; } if (y < 1 && y > 10) { return false; } for (int i = -1; i < 1; i++) { for …

Member Avatar for Lerner
0
205
Member Avatar for Duece_68

Hey can anyone explain the following code to me [CODE = C++] #define SQUARED(x) {x * x} int main() { int i = SQUARED(3 + 2); return 0; } [/CODE] Why does 'i' in the above code = 11 and not 25????

Member Avatar for arkoenig
0
147
Member Avatar for Orion2k

what are the advantages and disadvantages of these two. I know MFC is an old outdated technology but still people use MFC and OWL ,the main reason OWL is good over MFC ,it produces smaller GUI executable and don't need .NET framework and and lower level compare with Wxwidget and …

0
67
Member Avatar for Martje

Hi all, I was following a tutorial on how to make .dll's since this is my first time making 1 but when i went to build the .dll i got an error saying : [QUOTE]definition of dllimport function not allowed[/QUOTE] my header and source is simple : Header.h : [CODE]#ifndef …

0
56
Member Avatar for helpfullProgram

Hello everybody! This is an amazing place you have built up here and I have never ceased to be amazed by the knowledge available... I have just one question which might seem quite easy to the right person so here goes. I am working with the console in C++ so …

Member Avatar for SgtMe
0
197
Member Avatar for neil_mahaseth

Is there any difference between a sorted link list and an ordered link list? If there is any difference please show it by giving an example. Thanks

Member Avatar for Narue
0
199
Member Avatar for peterman.k

Hello all, So I am a college student learning c++ (planning to major in computer science). Just my luck, the computer science department using visual studio for their entry level classes, which I have been using with no issues for the last year via a VM; I can access the …

0
159
Member Avatar for xiansen

hey guys, i am to program a simple blackjack program that generates two random cards for the user and ask if the user wants to stay or hit it. so far, when i tried to compile the program, nothing showed up and showed me this message: "The program '[492] alt.exe: …

Member Avatar for xiansen
0
171
Member Avatar for behavet

how can i make program using arrays related to my course civil engineering?

Member Avatar for SgtMe
0
45
Member Avatar for behavet

how can i make program using arrays related to my course civil engineering? answer please?

Member Avatar for kes166
0
95
Member Avatar for anantk

I'm working on a soccer management program I had some other members of my group to compile data on 400 real life players into a text file. I planned on reading the text file using a program ,converting individual players into objects and then writing them to another file (in …

Member Avatar for anantk
0
128
Member Avatar for Rizwan606

does any one know how to Print the contents of the array on even index??

Member Avatar for Rizwan606
0
360
Member Avatar for dorien

I have a dummy question for you... I am trying to access a function from a class (Key) from another class (Music), but it gives the error: [CODE]‘thiskey’ was not declared in this scope[/CODE] So I guess the Key object thiskey is not public for this class. What I have …

Member Avatar for kes166
0
181
Member Avatar for jehdo

Objective This assignment has been designed so that you understand the concept of using dynamic memory allocation in C++. After the completion of this assignment you should have a good grasp on: o Array of Objects o Use of new Operator for dynamic memory allocation in C++, for user-defined types. …

Member Avatar for Fbody
0
594
Member Avatar for Ali ahmad
Member Avatar for peterman.k

Okay, so I have created and array of a maximum degree, which the user defines, and then inputs their own coefficients according to the size of the polynomial. For example, I ask for degree, they type 2, and then input 1,3 and 5 to create a polynomial: 1 + 3x …

Member Avatar for peterman.k
0
260
Member Avatar for omfgtom

So, this is the little compound interest program i wrote that is due tommorow. As far as I can tell it should be working, but it says something about an undefined reference? All help appreciated. [code]#include <cstdlib> #include <iostream> #include <cmath> #include <iomanip> using namespace std; int main(int argc, char …

Member Avatar for Valaraukar
0
112
Member Avatar for smithr3

Hi there. The problem that I'm experiencing here is quite a specific one, and after a few searches, I concluded that I ought to just ask. Tbh, I'm a little bit unsure what to search exactly! I have calculated earlier in my program various values in various arrays, angle[], t[], …

Member Avatar for Ancient Dragon
0
125
Member Avatar for ashishchoure

Hi, I am just trying to do some down casting. here is the code. [CODE] class Base { public: void virtual test() { cout << "Base Test"; } }; class Derived : public Base { int i; int j; public: void testD() { i = 8; j = 9; cout …

Member Avatar for Fbody
0
120
Member Avatar for timb89

One aspect of comp science that really lets me down is loop invariants. A question from a past paper that i cant get is to find the loop invariant of the following segment of code: [CODE]bool linearSearchIter(int a[], int n, int target) { int i = 0; bool found = …

Member Avatar for Narue
0
151
Member Avatar for arkarjun

hai, i am developing a program which helps in reserving a ticket in railway. i am facing problem for the cancellation process. i had done all file operations (open,write..) in binary mode.... expecting a fast solution.......

Member Avatar for Fbody
-8
237

The End.