49,761 Topics

Member Avatar for
Member Avatar for Chrisadams

OS:windows 8,compiler:g++,mysql version:5.6 //bookshop.cpp #include <my_global.h> int main() { return 0; } //bookshop.cpp //Makefile CC = g++ LIBS = -L"C:\Program Files\MySQL\MySQL Server 5.6\lib\" -lmysqlclient INCLUDES = -I"C:\Program Files\MySQL\MySQL Server 5.6\include" all:bookshop bookshop: bookshop.cpp $(CC) -fpermissive -o bookshop $(INCLUDES) bookshop.cpp $(LIBS) //Makefile error: In file included from C:\Program Files\MySQL\MySQL Server 5.6\include/my_global.h:68:0, …

Member Avatar for Chrisadams
0
1K
Member Avatar for moudy.mak

I need the way for allow users input text by writing , while users input text they see what's they input when user press enter jump for next line and when user end press on button to finish ?

Member Avatar for meta.quota
0
2K
Member Avatar for Junior_1

hello! i want to add 3rd party EXE into form. but problem is i think it almost impossible to change without using dll injection . before i was try several method but all failed. actually i was try with vb or vb.net because i almost don't know c++ but vb …

Member Avatar for meta.quota
0
318
Member Avatar for Builder_1

my problem is that how can we intialize a string using cin in output console like this. eg. My class is very good through cin...as the spaces put the null character so only first alphabet is initialized....kindly someone give me solution..

Member Avatar for Ancient Dragon
0
701
Member Avatar for yogesh_6

#include<iostream> using namespace std; int main() { int n;int*p; int i=0,j=0,temp=0; cin>>n; p=new int[n]; for(int i=0;i<n;i++) { cin>>p[i]; } for(j=0;j<n;j++) { for (i=j;i<n;i++) { if(p[i]>p[i+1]) { temp=p[i]; p[i]=p[i+1]; p[i+1]=temp; } } } for(i=0;i<n;i++) cout<<p[i]<<endl; return 0; }

Member Avatar for Moschops
0
149
Member Avatar for khader(ldo)
Member Avatar for davorka.tonkovic_1

hi. i'm trying to convert program from c++ to pyhton, but i don't have any experience with python. can someone help me? #include <stdio.h> #include <conio.h> main() { float uplata,i; do { printf("Unesite pocetnu uplatu:"); scanf("%f", &uplata); if(uplata>3000) { printf("Pocetna uplata ne smije biti veca od 3000 kuna."); } } …

Member Avatar for Ancient Dragon
0
674
Member Avatar for Lee_2

Hi basically I am creating a zombie survival game using Irrlicht. I have a base class Survival.cpp with my game loop in a method called `Survival::Run()` I am trying to call a `Shoot()` method from within the game loop from another class within Bullet.cpp I have included the `Shoot()` method …

Member Avatar for L7Sqr
0
301
Member Avatar for CreatorZeus

okay i have a file with data orgainzed like this in a dat file to be read: apple.0.0.end. and i want it to be read by char until it sees "." then print that, then read again repeated until the end of the line. so i can show the data …

Member Avatar for deceptikon
0
256
Member Avatar for hemanshurpatel

Hi friends, I want to implement code which can take input from some other application. Like say for example ls | less Here, less is the application/utility which takes input from ls via pipe. I want to implement the same in C. I Did following things 1. Created PIPES using …

Member Avatar for Tumlee
0
698
Member Avatar for Kumi_1

` Inline Code Example Here #include <iostream> #include <stdio.h> #include <string.h> #include <stdlib.h> struct contact_detail { int id; char user_name[15]; char email_address[15]; int phone_number[10]; char address[10]; }; struct meeting/appointment { int date_of_meeting/appointment[7]; int time_of_meeting/appointment[4]; char location[15]; }; struct new_user; struct meeting; void add_new_record(void); void binary(void); void delete_record(void); void edit_record(void); void …

Member Avatar for Ancient Dragon
-1
1K
Member Avatar for ArashVenus

I've tried lots of times to get this to work but , no luck . the problem is this program shows white screen , and It doesn't display the polygon . Here's the code , take a look : /*Headers*/ #include <GL/glut.h> /*End of headers*/ /* Check Compiler*/ #ifdef __FLAT__ …

Member Avatar for ArashVenus
0
8K
Member Avatar for MisterGlow

I am student just finished an introductory class on C++. Can any one help me build a GUI for my programs? Maybe a template? Example? Any and all help would be greatly appreciated. Thanks.

Member Avatar for mrnutty
0
179
Member Avatar for Aisha_1

A queue is a restricted data structure that allows only the following operations: a.Enqueue" an item at the end" of the queue. b.Dequeue" an item from the beginning" of the queue. These should correlate with your intuitive notion of a queue (line) in the physical world. In queues the first …

Member Avatar for nahi
0
239
Member Avatar for samer.aboufakher.3

// my problem is in the playerscore and computerscore always gives me 0 or 1 // i cant know who finally won plz i need ur help //at the end of the program it should gives me the score of computer and the user out of 5 of the total …

Member Avatar for samer.aboufakher.3
0
185
Member Avatar for haider885

Helloo... I am making a simple notepad program. I don't know how to move cursor using ASCII Table. I am using Two way doubly Linked List method to insert characters. And file handling to save on file. I don't know how to move cursor on up, down, right and left. …

Member Avatar for Ancient Dragon
0
653
Member Avatar for salah_saleh

Hi, I have followed the tutorial in this link: http://www.cs.ucla.edu/~zhu/tutorial/Using_MS-MPI.pdf to use MPI on my local windows machine with vs. The simple Hello wold work as expected, I have 2 processors and I get the expected result. The problem is when I try a very simple send receive program I …

Member Avatar for salah_saleh
0
185
Member Avatar for haider885

Can Any body do it???? These are Some Info..... Create a notepad that allows the user to write text on the console. For this purpose, the user should be able to control and track the movement of the cursor. The user can access, add and delete any part of the …

Member Avatar for Ancient Dragon
0
760
Member Avatar for princessophia

I am supposed to write a program that displays the first 10 lines of a file. I have a file named "characters.txt" in the same folder that my .cpp is saved in, but when I try to compile the program, it says the file cannot be found. Here is my …

Member Avatar for ling_tj
0
318
Member Avatar for mixelplik

I'm trying to get a better understanding of ifstream, and was playing with it using the program below. It's purpose was to grab the first and last entries in the file, instead I get some perplexing output leading me to realize I've very little clue as to how streams really …

Member Avatar for mixelplik
0
1K
Member Avatar for Bilal93

int rad; int rad; float PI = 3.14 ,area,ci; printf("\n Enter radius of a circle:"); scanf("%d",&rad); area = PI*rad*rad; printf("\narea of a circle is %f",area); ci = 2*PI*rad; printf("\ncircomeference of a circle is %f",ci);

Member Avatar for vegaseat
-1
195
Member Avatar for mixelplik

I see a lot of people list code using this "::" as in: #include <iostream> int main() { std::cout << "Blah, blah, blah"; return 0; } and others use "using" #include <iostream> using namespace std; int main() { cout << "Blah, blah, blah"; return 0; } Is there a downside …

Member Avatar for mixelplik
0
277
Member Avatar for MacErich

Dear all Can anyone explain to me how a (local) counter can be modified in a loop without being touched in the code? ... and how I am best to debug this? Thanks Erich void test(double *x, int l, int N, int K, double *p, Comp * y) { int …

Member Avatar for MacErich
0
196
Member Avatar for Annettest

Hello all: I have written a function that gets data (numbers) from a text file. My function works by taking a line from the text file, discarding unnecessary symbols, and putting the numbers into a vector. Here's a snippet: // Get data from text file. Values then put into one …

Member Avatar for haider885
0
392
Member Avatar for girmanigatu
Member Avatar for Slavi
0
136
Member Avatar for geotrixe

plz write this program for me write a program that input 2 time from the user and display the sum of this time in this format HH.MM.SS

Member Avatar for Deepak_17
-1
151
Member Avatar for michelle.trinsky

Hi, I'm relatively new to C++. I'm trying to search for a double quote and replace it with 2 double quotes ( for CSV format conversion). The code compiles and works fine when Quote is any string. But it freezes when I try to search for a "\"". Help appreciated. …

Member Avatar for mrnutty
0
4K
Member Avatar for mythos061

I am having trouble understanding an external sort. I have to code up an implementation for the following below. I have to sort 120 records(they are really just integers), and have a memory restriction of 20 records. So I will have 6 blocks. Let me know if this is right: …

Member Avatar for tinstaafl
0
283
Member Avatar for dp121307

I started using C++ after learning Python, so I'm very very new to this. I'm writing a program and have 2 files in the project. I have my list.h class and my program. The list.h class, despite the fact that its a given class and should work, is ridled with …

Member Avatar for Ancient Dragon
0
291
Member Avatar for Jiggle

I was wondering about something: LazyFoo, the author of some amazing SDL tutorials has put copyright on his source code. Does this prevent people from writing functions that are largely, if not entirely similar to his? For example, his 'load_image' function used in a lot of the tutorials is extremely …

Member Avatar for Gabriel_2
0
330

The End.