175 Discussion / Question Topics

Remove Filter
Member Avatar for
Member Avatar for can-mohan

Hi All, I below code snippet I have been using diff-2 structure with same variable due to having different -2 default values for the variable (var) in current implementation for both the structure a and b. This way i need to create 17 structure with same variable (var) but different …

Member Avatar for AssertNull
0
463
Member Avatar for Mr.M

Hi guys. Well according to the research I had, and MP3 file structure is as follows: ` AAAAAAAA AAABBCCD EEEEFFGH IIJJKLMM ` which is refered to as frames, and each. Each letter is one bit. I've seen samples demonstrating how to get data from this but what I want is …

Member Avatar for AssertNull
0
955
Member Avatar for Stefce

Hello everyone i really need some help about my website structure.. i have almost the full website but the structure is too bad and i cannot continue working... is there some good man/women to help me about it ?

Member Avatar for pacav69
0
416
Member Avatar for Syed Ammar

Hey guys im having a problem in structures.. i dont know how to initialize a an array of 10 contact instances.. plz help me out. this is my question statement.. "Declare a structure Contact that has a name, address, mobile number. Now create and (hardcoded) initialize an array of 10 …

Member Avatar for Moschops
0
230
Member Avatar for ilovec++

I have some doubts concerning some basic C++ concepts, and would be very thankful, if someone would kindly clear the doubts: a) Every variable of a data type occupies a specific amount of memory, like int occupies 2 bytes and so on. So, if I declare a reference variable as, …

Member Avatar for yoavip
0
559
Member Avatar for Himanshu Chawla

**Construct a binary tree using the following pre - order and in - order trasversals : Pre-order:ABGHMCDEF In-order:BHMGADFEC ** I Just Need a Diagram of Binary Tree . I have tried a lot with youtube tutorials but not getting the answer plz help.

Member Avatar for deceptikon
0
290
Member Avatar for kortneycoles

I'm working on this code for class, I am not expecting anyone to do my homework but help would be appreciated. Nodes are confusing for me and my professor did not explain well. The errors I am getting are where I declare the functions, I dont know the nodeType(?) that …

Member Avatar for nataraja833
0
332
Member Avatar for mpike

Hello there. I recently have been teaching myself C++ and have come across something that I just can't seem to grasp. I undersatdn the basics of structures but when it comes to this nesting type situation I just can't figure out what is going on. If someone could explain in …

Member Avatar for mpike
0
258
Member Avatar for can-mohan

Hi guys, I want to access the element of structure from structure pointer using indexing for below code snippet. apart from this I also would like to know is there any way to find the type of member variable of structure on run time. #include <stdio.h> #include <assert.h> #include <stdlib.h> …

Member Avatar for Schol-R-LEA
0
227
Member Avatar for can-mohan

Hi Guys, Any body knows what is the efficient way to create the map (key,value pair ) using linklist using c .Apart from this in this map one key can have multiple values and i need to display those values. I don't want implementation in c++. example string1->"james" string1->"mike" string1->"harry";

Member Avatar for Schol-R-LEA
0
2K
Member Avatar for oanahmed

Hi! I was doing my exercise of C Language. In the exercise I was encountered by a question in which author says you to perdict the correct answer; I was uable to perdict it, so I compiled it to get the answer, the source code is this: #include <stdio.h> int …

Member Avatar for cayman
0
243
Member Avatar for hg_fs2002

I want to convert this piece of code using this memory layout transformation : https://software.intel.com/en-us/articles/memory-layout-transformations (Array of Structures to Structure of Arrays) Here are the codes before and after applying the transformation and I want to know whether I'm doing it right or not? Before: typedef struct { double x; …

Member Avatar for Hiroshe
0
263
Member Avatar for can-mohan

Guys, In below code after reading string values from vector , I can have output like("VarID","flag","count") for(int i=0; i < v.size(); i++){ cout<<v[i]<<endl; } All are (varID,flag and count)are string literal , now i need to populate the structre with this string literal. where VarID = int,flag=bool, count=Int. Can anybody …

Member Avatar for tinstaafl
0
296
Member Avatar for ClaudeRhay

Say I have this definition: #define SIZE 2000 typedef enum { TRUE, FALSE }Boolean; typedef struct{ char jobTitle[30]; char jobDesc[255]; char jobLoc[255]; float salaryMin; float salaryMax; Boolean isAvailable; }jobInfo; typedef struct cursorNode{ jobInfo jobRec; int next; }HeapSpace[SIZE]; typedef struct hnode{ HeapSpace heap; int Avail; }*VHeap; typedef int List; typedef struct{ …

0
189
Member Avatar for ussra2

I have searched these forums and have seen multiple threads on the Weather Structure C++ program. I don't believe they have been resolved. I am tasked with the following: Write a program that uses a structure to store the following weather data for a particular month: Total Rainfall High Temperature …

Member Avatar for jwenting
0
8K
Member Avatar for software girl

#include<iostream.h> #include <stdlib.h> //FOR exit(1) struct Flight { char flightNo[5]; char date[12]; char time[6]; char gate[3]; }; Flight flight={"AB11","10-12-2008","20:30","RT"}; struct Seat { char name[40]; char booking_ID[3]; int seats; }; Seat choice[4][5]; void displaymenu(); void booking(); void seat(); void ticket(); void records(); void menu(); void exit(); //Variables int selection,i,j,password; int seats_num[20]={0}; …

Member Avatar for Ancient Dragon
-1
282
Member Avatar for nadiam

hey guys, so im creating a page using php html js etc and what i wanna do is have two tables on that page. the first table is populated by data from database(easy) the second table is tricky for me. in the second table i want to be able to …

0
149
Member Avatar for waleedahmad

Here's a little program i wrote, i'm trying to pass my structure book to function input. The code works fine on Code::Blocks but VS12 is giving an error on compliation " error C4700: uninitialized local variable 's' used ". What i'm doing wrong? #include <string.h> #include <iostream> using namespace std; …

Member Avatar for Ancient Dragon
0
2K
Member Avatar for Shehroze
Member Avatar for Shehroze
0
241
Member Avatar for fadoua_1

Hi, I created a structure Vector and implement some functions to make the new defined type (vector) dynamically allocated and resized (inspired from the C++ implementation of the dynamic arrays : vector). I need to assign a structure to every vector element but I am not sure that I am …

Member Avatar for Ancient Dragon
0
380
Member Avatar for Yugalpsd

need a program to perform polynomial division with linked lists or arrays. i already tried multiplication,subtraction and addition but stucked in division can anyone help me out on this.

0
146
Member Avatar for nikolaos

I am trying to understand the structure of .class file in Java. Wrote a very simple program : package javautilities; public class Class_File_Structure { public static void main(String[] args) { int a = 10; int b = 20; int c = a + b; } } used the command javap …

Member Avatar for nikolaos
0
378
Member Avatar for MikeBah

I have been asked to build a group of functions that carry out set theory operations such as intersection and union. The functions below that I must complete are set_intersectWith, set_unionWith, set_minusWith, set_powerset, where: > set_intersectWith = A ∩ B > set_unionWith = A ∪ B > set_minusWith = complement …

Member Avatar for rubberman
0
538
Member Avatar for Aljaz

My programm wont let me input all the data I need. And when I try to display them it won't even use the data that I could input. Please help me and sorry for my bad English it is not my native language, that's why all the data is in …

Member Avatar for Aljaz
0
224
Member Avatar for GeneClaude

So we were asked to reproduce the function generator and oscilloscope as a virtual instrument for our final exam. But I'd like to focus on the function generator. The audio generator GW Instek GAG-809/810 has only a single button for the waveform wherein the user would just press it repeatedly …

Member Avatar for Alberto Bucur
0
200
Member Avatar for bogoreh

hi dear fellow i have tried to add structure array in my program and i had a few issue to add. please can anyone tell me how can i add a structure array in the following program #include <stdio.h> #include <stdlib.h> #include<string.h> #include<conio.h> struct books{ char name[22], book[25],date1[10], date2[10],id[7],bid[7]; } …

Member Avatar for bogoreh
0
273
Member Avatar for Josh Connerty

Hello all, I'm trying to build a system to provide an easy access but very clever service select (sounds confusing, I will explain). Essentially I'm trying to create a system then will firstly store devices of different types, these types are: - Device type (iPhone, iPod, iPad) - Generation (4th …

Member Avatar for diafol
0
300
Member Avatar for rb1234567

Hi, How do you stop divs from moving all over the place when you zoom in and out of browsers? The website I am going to create has to be centered in the middle of the webpage. I need to create a header with an animated gif in the left …

Member Avatar for JorgeM
0
13K
Member Avatar for srao1

I am unable to convert my C file to mex file. Here is the C file I wrote to read in a tab-delimited file. The C program in running, but I am not able to successfully convert it to a mex file. I have also pasted the mex file I …

Member Avatar for srao1
0
563
Member Avatar for priyanka.choudhary.90038

Hi, In below code snippet , can anyone let me know how to print the functor value output (3,4,5,6,7) without embedding add function in class. #include<iostream> #include<vector> #include<algorithm> using namespace std; void add ( int i) { i=i+2; } int main() { vector <int> vec ={1,2,3,4,5}; for_each(vec.begin(), vec.end(),add); for (auto …

Member Avatar for richieking
0
253

The End.