49,761 Topics

Member Avatar for
Member Avatar for m.a.u.

Greetings everybody, I have been using Code::Blocks for only a few days. I have developed lots of GUI applications in other IDEs. But, when I try to start a GUI project in Code::Blocks, I am having compile error, even thoough I change nothing in the generated project. I mean, even …

Member Avatar for JasonHippy
0
268
Member Avatar for Vikram Sehgal

Hello, I am making a 2d shooter game, and I dont knnow how to make the player's ship move left and right with left and right arrow keys... please help me. I have to finish this project before 6th... please help

Member Avatar for Vikram Sehgal
0
251
Member Avatar for Emma_3

I'm supposed to just read a file and display certain information. I wrote the file in notepad and have it in the correct folder for my project, but when it opens (it DOES open), it doesn't display anything. Ideas? #include <iostream> #include <fstream> using std::cout; using std::cin; using std::ifstream; int …

Member Avatar for Moschops
0
280
Member Avatar for rico.j.rico.3

How to write a program in C++ which creates a file “grade.txt” and stores student’s grade and name.

Member Avatar for ishaan3731
0
250
Member Avatar for TheFearful

I am having trouble finding out if I did the header correctly #include <iostream> #ifndef TREE #define TREE // Node class class Node { int key; Node* left; Node* right; public: Node() { key=-1; left = NULL; right = NULL; }; void setKey(int aKey) { key = aKey; }; void …

Member Avatar for Kristian_2
0
203
Member Avatar for jhender4880

I have this working like it should (I think) except that it is cutting off the first letter of the first display name unless I add a space before the name. I have tried using just using cin >> soccer[i].name but it doesn't work, it skips over the name entering …

Member Avatar for tinstaafl
0
2K
Member Avatar for samson.dadson.3

please i have a little problem creating a class and making it run. The class is created separately as a header file with it's source code. whenever i build the source code of the class, i get an error that says: undefined reference to 'WinMain@16'. And whenever I run the …

Member Avatar for samson.dadson.3
0
428
Member Avatar for themaestro

I'm doing a program on a quiz using DEV C++ and i want to set a countdown timer for it. As the user is doing the quiz, he's able to see the timer and once the timer reaches 0, the quiz automatically stops. Is it possible to do this? Thanks …

Member Avatar for viorel994
0
3K
Member Avatar for learner_new

Hi i developed a C++ code for tracking a yellow colored object. IDE: CodeBLocks Opencv Version:2.4.6 Language: C++ Following is the code for yellow color detection, which i was able to successfully perform. #include "opencv2/imgproc/imgproc.hpp" #include "opencv2/highgui/highgui.hpp" #include <iostream> using namespace cv; using namespace std; Mat GetThresholdedImage(Mat image_here) { Mat …

0
164
Member Avatar for m.a.u.

Greetings everybody, I would like to ask you if there is any tutorial about libusb I could learn how to use quickly. Additionally, how could I use libusb in visual studio, currently have VS2010? I can already access it in Ubuntu, but desire to use in also Windows. Thanks

Member Avatar for m.a.u.
0
1K
Member Avatar for learner_new

Hi guys, Error- collect2.exe:fatal error:cannot find 'ld' compilation terminated Compiler:gcc library:mingw I have done quite a bit of internet search and followed a discussion pertaining to this on daniweb,but to no avail.Am working on code blocks. Initially there was no problem, then i linked libws2_32.a and even though it compiled …

Member Avatar for learner_new
0
4K
Member Avatar for chubbyy.putto

Hi, anyone like to offer some extra eyes on this problem? I am having trouble with the array pointer and with the variables. I don't seem to have the pointer set up because the additional times the array is called it is empty. Also, if I don't use integers the …

Member Avatar for wrathness
0
494
Member Avatar for mmegue

guys i need help with my program.if i run this code its crashing. if there is a value in my QLineEdit the button **BMIINTERPRETATION** must activate, i set it like this( **bimout->setDown(true)**) so here is my code. i don't know where i am going wrong any help will be appreciated.thanx …

Member Avatar for wrathness
0
286
Member Avatar for thecoolman5

Hello everybody. After 3 hours of constant searching, I have finally given up on finding a program that recovers a password protected word document. So, I coded my own program that goes through every single letter combination of any desired length. Now, all I need to do is have the …

Member Avatar for thecoolman5
0
115
Member Avatar for neeraj_shri
Member Avatar for andreas.petrou.967
Member Avatar for Kcollier

Write a program that inputs (from the user) the number of hours worked and hourly pay rate for employees and outputs their total pay. The program should process an arbitrary number of employees; the user will terminate input by entering 0 for hours worked and pay rate. Use a class …

Member Avatar for rubberman
0
116
Member Avatar for Emma_3

Line 49 is giving me a C2679 error and I'm not sure how to fix it. Help? #include <iostream> #include <fstream> using std::cout; using std::cin; using std::ifstream; using std::ofstream; const int MAX_SSN = 12; const int MAX_WAGE = 6; const int MAX_HOURS = 3; const char STATUS = 1; int …

Member Avatar for Ancient Dragon
0
389
Member Avatar for mrmonkee

[code=C++] #include <iostream.h> int main() { char word[32]; int x = 0; cout << "Please enter the word (maximum 32 characters):\n"; cin >> word; cout << "The ASCII for this word is:\n"; while (word[x] != '\0') // While the string isn't at the end... { cout << int(word[x]); // Transform …

Member Avatar for erim.aljerrah
0
20K
Member Avatar for Covinus

greetings just started with C/C++. Im not quite comfortable porting from java to c/c++. Pointers are quite hard at start. So pls help me with this problem I want to copy the exact data of a certain pointer to an array of struct. Not just point a pointer from another. …

Member Avatar for Tuyen
0
5K
Member Avatar for shurooqalhodar

hello there i have a homework in c++ and a i dont know how to do can you help me please...

Member Avatar for Kristian_2
0
103
Member Avatar for syasya

Hi guys , I would you to help me to solve this problem First , user need to input 10 numbers Ex : 85 11 36 174 112 24 73 52 183 149 Next , user need to input the initial number . This initial number will determine whether the …

Member Avatar for Kristian_2
0
14K
Member Avatar for kal_crazy

Creating a text editor. Thread 1 creates a file and listens for user input. Thread 2 checks for spelling mistakes. How do I show spelling mistakes on the console? Should I highlight the text that has the spelling mistake? I tried that but it just highlights the following text in …

Member Avatar for Moschops
0
219
Member Avatar for fiizaar.baiikk

Ada Yang Bisa Bantu Agan2 Master mau tanya penjelasan dari baris per baris program C++ ini gan apa ya #include<iostream.h> #include<string.h> #include<stdio.h> void main() { int i,j; char tabStr[50]; char temp[50]; cout<<"Masukkan kalimat "; gets(tabStr); i=0; j=strlen(tabStr)- 1; while (i<=j) { temp[i] = tabStr[i]; tabStr[i] = tabStr[j]; tabStr[j] = temp[i]; …

Member Avatar for pritaeas
0
150
Member Avatar for ala_2

I need to monitor disk, to know how much data is being written on my disk per day. I came across "**Win32_PerfFormattedData_PerfDisk_PhysicalDisk**" Class.But the problem is that returns different values among them 0 values.My questions are -why these values keep changing? -i got 2 instances from this Class and i …

0
104
Member Avatar for Mohammed_Ahm

I have made a 6 bit Linear Feedback Shift Register, the user enters 6 bits as the initial card, this bitset is called inpSeq, the user also enters 6 bits representing the polynomial. A for loop examines this polynomial bitset for bit 1's, bit 1's position in the bit set …

0
161
Member Avatar for runningirl

Hi, I would like to know the code for this problem: Write a program that asks the user to enter 5 numbers and display the numbers in descending order in iostream.

Member Avatar for dereje mulie
0
87
Member Avatar for agrbinoo.albaker

Create a BMI calculator that reads the user’s weight in pounds and height in inches (or, if you prefer, the user’s weight in kilograms and height in meters), then calculates and displays the user’s body mass index.

Member Avatar for jwenting
0
176
Member Avatar for klevis.shkembi

can sb help me?İ have to make a project.... 4.power polinoms i have to find the real roots an complex root. anybody any idea for these. Thanks....!

Member Avatar for David W
0
121
Member Avatar for DS9596

What's the difference between: int once; cout << "ok"; and this: char twice; cout << "ok"; Is the output for the first one just ok and the second one ok ok ?

Member Avatar for Ancient Dragon
0
413

The End.