49,761 Topics

Member Avatar for
Member Avatar for raliot

File does not work.Does not record information.Please help! -Enter of a keyboard and a file into an array (by adding) data to 30 girls #include <iostream> #include<fstream> #include <stdio.h> #include <stdlib.h> #include <string> using namespace std; #define N 30 FILE *fp; struct girl { char number[10]; int age; int bust …

Member Avatar for cherrymae.calma
0
312
Member Avatar for folabidowu

write a C++ program which inputs litre consumption given in miles/gallon and which translates these figures into the litres/kilometre format which is more common in Europe.Use the following conversion factors: 1 mile=1.609km and 1 gallon= 3.785litres

Member Avatar for cherrymae.calma
0
274
Member Avatar for phorce

Assume that I have a vector: x = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14] What I need to do is split this vector into block sizes of `blocksize` with an `overlap` `blocksize = 4` `overlap = 2` The result, would be a …

Member Avatar for vmanes
0
185
Member Avatar for ryan.jay.ong

Hi, I'm now studying Bachelor of Science in Information Technology. I want to ask everyone if I can count on you if I ever bump into some problems coding. I'm new to programming. Thank you.

Member Avatar for ryan.jay.ong
0
94
Member Avatar for thomas_14

I am using c++ with sqlite3 I have a database(test.db) with a table of testTable inside the testTable it has the following attribute _id|randomText I tried inserting a randomText into the database after my input but it's not inserting into the database. my code http://pastebin.com/TvuNqFsF need help. thanks

Member Avatar for thomas_14
0
322
Member Avatar for suela

can anyone help me to create a program that alows me to make a regular conversation with the computer?

Member Avatar for Ancient Dragon
0
176
Member Avatar for lara_

i just want to whether there is a replacement for getch() in C++. my friend said getch() is C function. thanks!

Member Avatar for nootan.ghimire_1
0
7K
Member Avatar for nhrnjic6

so if I have const int SIZE = 4; and a while loop const int SIZE = 4; int counter = 0; while(true) { // do something ... if(SIZE == counter+1) {cout << "Hello world"} } why is this not working? and how is the right way to do it?

Member Avatar for nhrnjic6
0
123
Member Avatar for princessophia

This is the problem: Write a class whose constructor takes a vector of Student objects, where each Student has a name of type string and a score of type int. The class internally stores the data passed to it in its constructor. The class should have an overloaded output operator …

Member Avatar for dabotoshkundu.bappa
0
303
Member Avatar for np complete

I want this program to wait untill I copy some text into my clipboard. This is what I have done so far char text[500] ; HANDLE clip ; if ( OpenClipboard (NULL) ) cout << "\nClipboard opened" ; EmptyClipboard () ; cout << "\nStart" ; while ( true ) { …

Member Avatar for Ancient Dragon
0
306
Member Avatar for vishalonne

Hello Every body My question is very simple for you all experts, as I am learning how to write C++ program. I need a code for summing up the 4 corner of 2D array in turbo C++. Thank you all with regards

Member Avatar for Ancient Dragon
0
1K
Member Avatar for CoolAtt

Hi All, I got this code from a forum & tried it on g++/Linux. In the code below i put NULL to a pointer variable but didnt get any errors. #include <iostream> using namespace std; class A { private: int _dmember; public: void func() { cout<<"Inside A!! "<<endl; cout<<_dmember; // …

Member Avatar for CoolAtt
0
316
Member Avatar for kemo_saleh

As any experienced programmer must know the famous problem of "Edit Distance", however this problem is considered an “alternating chain” if you have alternately made case sensitive. Example: "AaAaAbB" "B" "a" "aBaCdEf" Alternating chains are considered in our problem. We only have one operation that is permitted in exchange for …

0
59
Member Avatar for nhrnjic6

Can somebody please tell me what is wrong in here or what does this error message means : " error : reguest for member 'name' in 'person',which is of non-class type 'Person[2]' " struct Person{ int days; string name; }; const int size = 2; bool way_to_Sort(const Person &a, const …

Member Avatar for mathijs
0
184
Member Avatar for folabidowu

Please can somebody help me with the line of codes of this question:write a C++ program which inputs litre consumption given in miles/gallon and which translates these figures into the litres/kilometre format which is more common in Europe.Use the following conversion factors: 1 mile=1.609km and 1 gallon= 3.785litres

Member Avatar for Banfa
0
785
Member Avatar for haider885

I am using visual studio 2013. I am just a Beginner. Trying to make a shutdown Program in c++. its give the errors. 'Shutdown.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ntdll.dll'. Cannot find or open the PDB file. 'Shutdown.exe' (Win32): Loaded 'C:\Windows\SysWOW64\kernel32.dll'. Cannot find or open the PDB file. 'Shutdown.exe' (Win32): Loaded 'C:\Windows\SysWOW64\KernelBase.dll'. Cannot …

Member Avatar for Ancient Dragon
0
321
Member Avatar for clife

Hi, I am trying to prepare a shared library using another shared library. but the second shared library does not contian the definations of funtions which are defined in first shared library. lets say i have libfirst.so. in this there are no undefined functions. while creating libsecond.so, i am linking …

Member Avatar for L7Sqr
0
222
Member Avatar for nhrnjic6

Let me try to explain a problem I have.I have built array of structures that contains int(num of days) and string(Name).So basicy user should enter name of a friend and days they last talked,and then make a list sorted by the names of the friends of by how recently it …

Member Avatar for nhrnjic6
0
151
Member Avatar for lwarshaw19

Okay so I'm kinda stumped... here are our directions.. My code is at the bottom of this post "Write a program consisting of only the main function, called piApproximator.cpp. When your program begins, the user is prompted to enter a number n representing the number of terms to be used …

Member Avatar for p s suvin
0
3K
Member Avatar for cherrymae.calma

i just want to ask, why we need to declare the header on the upper part of our syntax.

Member Avatar for cherrymae.calma
0
119
Member Avatar for daino

Hi I'm having a little trouble understanding C++ string arguments if that's what you call them. The below example illustrates. I'm not sure I understand what line 14 does. The vector 'myvector' is passed to myfunction (called on line 35. I'm assuming string w takes in the first value of …

Member Avatar for daino
0
354
Member Avatar for James19142

I wrote this function I plan on using to load in .obj files from Blender into a DirectX application. The problem I'm having is that when when the model is loaded, it appears that every other triangle face is missing in a pattern, for every quad, only 1 traingle is …

Member Avatar for James19142
0
841
Member Avatar for Seba Sama

Hello, I'm trying to approach .dll's. Tried some tutorials and got into 2 problems: 1. Using rundll32 from the command line is not working as expected. I write in cmd: "rundll32 mydll.dll MsgBox -32". It shows the MessageBox with text "15991798", changing every time I run it. 2. Calling a …

Member Avatar for Seba Sama
0
192
Member Avatar for hsasgh

I need the programs to these algorithms. These are the algorithms of the programs of Insertion & Deletion. I need the C++ programs. Insertion temp1 & temp2 are strings 1. temp1= substring (T, 0, ip) 2. temp2= substring (T, ip, length(T) - ip + 1) 3. concatenate (temp1, P) 4. …

Member Avatar for deceptikon
0
143
Member Avatar for daniweb2013
Member Avatar for LordoDeGrim
0
747
Member Avatar for naji.awad1

Hey guys :) Can anyone show me a tutorial for game development in C++. Btw I'm on a mac so I can't go to the DirectX tutorial. Can you please avoid www.cprogramming.com because I dont like it. Thanx anyways :)

Member Avatar for stevecolin101
0
158
Member Avatar for mixelplik

I'm trying to run a binary sort that sorts through a list of randomly generated numbers, but for some reason isn't working. It will usually tell me if the highest or lowest numbers are in the array, but acts like a spaz on the middle ones. I keep fiddling with …

Member Avatar for vmanes
0
207
Member Avatar for amirali870

i want to write a program of 10 bank account users. then i want a help , how i write a program. in program i need a print or out put of 10 bank user like name,account no,branch no,account amount. if user press Yes then it gives the out put …

Member Avatar for vmanes
0
238
Member Avatar for pravej

Hi, Is there any way in C++ to select and read the last modified file from a unix directory? Let say the o/p of the ls -t is : abc.txt myfile.txt .... .... last_file.txt I want to select this last file ( can be of any name) and read the …

Member Avatar for iamthwee
0
6K
Member Avatar for bm42

Hi all, I would like to pose a design pattern to discussion that is achieved in two different ways. Imagine the situation where you have an interface "IFoo" (aka virtual) and implementations "FooA", "FooB", ... that inherit and implement "IFoo". Now you want the user (of the library you are …

Member Avatar for bm42
0
1K

The End.