49,757 Topics

Member Avatar for
Member Avatar for Seba Sama

Hello, I need to start using databases with c++. I know in VB or VBA is simple and easy to find tutorials. I've done a lot of database apps in VBA and VB. I couldn't find help for c++, only for vc++. I use Code::Blocks and mingw. If anyone knows …

Member Avatar for Seba Sama
0
1K
Member Avatar for Justin_9

Im developing a windows form application is Visual Studio Express 2013 I made a New Project -> Empty CLR Project then i added the windows form UI and i coded the (myprojectname).cpp this code #include "MyForm.h" using namespace winformapp; [STAThreadAttribute] int main(array<System::String ^> ^args) { // Enabling Windows XP visual …

0
106
Member Avatar for mixelplik

I'm trying to scroll through a list of cstrings and if they end in an 's' I want to replace it with a '\0' the problem is somtimes it catches the word and corrects it for a comparison, but other times it doesn't while (ptr != NULL) { if(ptr[sizeof(ptr)] == …

Member Avatar for vmanes
0
130
Member Avatar for rat.man.9277
Member Avatar for vmanes
0
58
Member Avatar for nhrnjic6

I have hard time understanding how does it happen. I mean how does : 6 / \ 3 8 / 2 I get that program finds the num on the left side whos equal to null so its smallest and it prints out 2. But how does it go back …

Member Avatar for userasad
0
154
Member Avatar for chubbyy.putto

here is question: Write a function that accepts an array of integers and its size as arguments. The function should create a new array that is one element larger than the argument array. The first element of the new array should be set to 0. Element 0 of the argument …

Member Avatar for Ancient Dragon
0
328
Member Avatar for mixelplik

Can someone explain this line a bit for me, I get the big picture, but the under-the-hood aspects are eluding me. testFile.getline(buffer, sizeof(buffer)); I have a char array buffer of size 80. Get line extracts a line from my testFile, and puts it into the buffer. When I "cout" the …

Member Avatar for Ancient Dragon
0
122
Member Avatar for Neelam_1

why we can't declare a static variable incide local class(class inside a function) ?

Member Avatar for Neelam_1
0
270
Member Avatar for xednycrex

Hi my name is Xednyc, I'm very new to C++ since this is my first year in college, I am taking an IT course. I am currently out of ideas on what program to make, anyone could suggest an interactive, fun, yet not so simple program for a newbie like …

Member Avatar for Lucaci Andrew
0
184
Member Avatar for Seba Sama

Hello, I lost some hours trying to set up wxWidgets and starting a simple program using Code::Blocks. wxWidgets is installed and built, following [this](http://wiki.codeblocks.org/index.php?title=WxWindowsQuickRef) tutorial. But when I start a new project I get into some message saying: "A matching debug configuration cannot be found in the wxWidgets directory you …

Member Avatar for Seba Sama
0
2K
Member Avatar for mixelplik

I'm reading a file in line by line. At the end of the file there wackily are to carriage returns. I'm reading the lines in like this (code below) then parsing them. Because there are two wonderful returns the wonderful program crashes everytime I run it. char* ptr; ptr = …

Member Avatar for Lucaci Andrew
0
187
Member Avatar for lmuller89

Hi All, I am having trouble trying to locate the problem with this code. When I run it I get the follow error "First-chance exception at 0x0FADA9E8 (msvcr120d.dll) in ConsoleApplication2.exe: 0xC0000005: Access violation reading location 0xCCCCCCC0." It seems to show an error on the dbgdel.cpp but I am completley lost …

Member Avatar for AndrisP
0
167
Member Avatar for mixelplik

I'm trying to parse an input file line by line. I want to grab each line one at a time, put it into a null terminated char array. I can't seem to do it. I tried something like this and just got weird ass results. int q = 0; do …

Member Avatar for Ancient Dragon
0
4K
Member Avatar for jocker403

I try to compile the next code but the compiler says that **`int base::i' is private ** #include <cstdlib> #include <iostream> class base { int i; public: base (int i=0); void set (); int get (); }; class derivada:public base { public: void set (); } ; using namespace std; …

Member Avatar for Ancient Dragon
0
129
Member Avatar for mixelplik

I'm trying to search for a word in an array of strings, everytime it gets to the while loop it just loops infinitely. It's getting the words and comparing just that when it gets to the second else, It just takes a fat dump. Can anyone help? So damn frustrating. …

Member Avatar for mixelplik
0
140
Member Avatar for cambalinho
Member Avatar for akfjmalcmask

Hi guys, i am so new here, but i work c++ for 3 years but i have a hard. i have a executable file and i want to encrypt this, how i manipulate an exe file ? i have a little bit asm x86. Thanks for your comments.

Member Avatar for akfjmalcmask
0
2K
Member Avatar for rocking.ganesh.9

Iam a student of computer science and i am in the first year of my college(I am studying computer science and engineering). I am thinking of doing a project in c++ which analyses the amount of oops concept used in a specific code. To speak more elaborately, I want to …

0
42
Member Avatar for H_beginner

I am using the gcc compiler and I am new to using flags. Can any one tell me a source for it. e.g. I wanted to use *-funroll-loops* but I dont know the proper syntax. Can any one help.

Member Avatar for L7Sqr
0
245
Member Avatar for Harsh rocks
Member Avatar for javed.iqbal.3979

Write a C++ program which takes a positive integer N from the user, and prints the multiplication table of size N by N. For example, if the user enters 10, the following table should be displayed by your program. 1 2 3 4 5 6 7 8 9 10 +---------------------------------------- …

Member Avatar for rubberman
0
99
Member Avatar for hitesh suthar
Member Avatar for sohail.butt.144

I need a program which shows the number is even or odd and print the table of 2 if the any even number we enter and when we enter the any odd number the program print the table of three please help as soon as possible

Member Avatar for Learner010
0
285
Member Avatar for chrisl007

Hello, as it can be inferred from profile, I am new. I have read the community guidelines and I have done prior research. I am a very weak coder(through my own fault). However, I like to believe I firm conceptual understanding. **So What is my problem?** I have an assignement …

Member Avatar for chrisl007
0
223
Member Avatar for zaim.notty

write a program using function in 'cmath.h' to demonstrate the usage of 9 commnads in cmath header file . using 'loop control structures' #thanks for any help

Member Avatar for Ancient Dragon
0
97
Member Avatar for Learner010

I read about pointers and it says that array names can be used as pointer constants and pointers can be used as array names and here is an example that prove the first statement (`array names can be used as pointer constants`) #include<iostream> using namespace std; int main() { int …

Member Avatar for deceptikon
0
154
Member Avatar for EDWIN MUGAMBI

Hi Daniweb programmers.I am a kenyan guy in University of Nairobi Doing an undergraduate degree in CIVIL ENGINEERING but I am a teaching myself C++ because I feel an inborn calling for coding. I appreciate the forums i have already seen. like Bjarne stroutsup said in an interview with Daniweb, …

Member Avatar for Dani
0
293
Member Avatar for jocker403

I defined two class, one it's call Movil and the other it's call Camion which it's a derived class of Movil. The code that I am talking is: #include <cstdlib> #include <iostream> //class definition class Movil { int ruedas; float velocidadMax; public: Movil (int ruedas=0, float velocidad=0); void setRuedas (int …

Member Avatar for rubberman
0
201
Member Avatar for sfuo

This is a timer class that I wrote a while ago (cleaned up a bit for the snippet) for adding delays in some of the games I have written over the years. Note: I normally have the class functions in a .cpp file but since it looks like I can …

Member Avatar for dexblack_1
0
12K
Member Avatar for Ketan022

I feel that following is the conclusion in C++ coding related to Class and access specifiers. We know that we are hiding the data by making private or protected. But there are ways to access it. The one who does not know how to access it will be confused but …

Member Avatar for mike_2000_17
0
170

The End.